Create a Project

The getProject() and createProject() functions fetch an existing project or create a new one.

Get a project

Use the getProject() method to get the default mindsdb project:

Server server = MindsDB.connect();
Project mindsdb = server.getProject();

Use the getProject(String name) method to get other project:

Server server = MindsDB.connect();
Project mindsdb = server.getProject();

Create a project

Use the createProject() method to create a new project:

Server server = MindsDB.connect();
Project mindsdb = server.createProject("another_project");
Updated on