Skip to content

πŸ“ Getting Started

Gustavo M. Paes edited this page Jul 6, 2022 · 4 revisions

Getting started

To get started we need to start Worm and declare your connection, use in main class:

public static void main(String[] args) {
    String host = "localhost";
    int port = 3306;
    String database = "worm_database";
    String user = "root";
    String password = "";

    WormConnection connection = new WormConnection(host, port, database, user, password);
    Worm.init(connection);
}

Limitations

Worm has one limitation, when you create a Entity and alter the columns the worm can't automatic update the mysql table, we recomend you drop the table in mysql then create Entity

Clone this wiki locally