MindsDB Projects
MindsDB enables you to group all objects within projects.
Projects store all MindsDB schema objects except for handlers, connected data sources, and configured AI/ML engines. That is, projects can store models, views, jobs, triggers, agents, skills, knowledge bases, and chatbots.
MindsDB provides the default mindsdb
project where all objects created without defining a project are stored.
Working with MindsDB Projects
Create a Project
Use the below command to create a project.
Use lower-case letters for a project name.
List All Projects
Use the below command to list all projects.
Create an Object within a Project
Use the below command template to create an object within a project.
Drop a Project
Use the below command to remove a project.
Please note that if your project stores at least one object, it cannot be removed. In this case, you should first drop all the objects belonging to this project, and then, you can remove the project. Please see the Example section for details.
Example
Let’s create a project.
To verify that the project was created successfully, let’s run the command below to select all databases, including connected data sources and projects.
On execution, we get:
Please note that information_schema
is the system database, mindsdb
is the default project, and files
is the database to store all uploaded files. For more information, please visit our docs on MindsDB default structure.
Now we create a model within the project.
Also, let’s create a view.
Here is what we have in the my_project
project.
On execution, we get:
Let’s try to delete our project.
On execution, we get:
Users should remove all project content before dropping a project.
Now we can proceed to drop a project.
Next Steps
Below are the links to help you explore further.
- Find out how to create and use projects.
- Learn more about MindsDB Schema.
Was this page helpful?