Skip to main content

Create

To create a new data source, just click on the Add + button in the explorer view and add a file of type Datasource.

The form to create and manage datasources has two tabs: "General" and "Tables".

General

The "General" tab allows you to create or edit the details of a data source connection.

The available fields are:

FieldDescription
NameA descriptive name for the data source connection
DescriptionA short description of the data source connection
TypeThe database type, such as MySQL, PostgreSQL, etc.
EnabledA flag indicating whether the data source is enabled or not

Depending on the type of datasource you have chosen you will need to fill additional fields.

For server-based databases (PostgreSQL, ClickHouse, Oracle, MSSQL, MySQL):

FieldDescription
HostThe server address or host name of the database
PortThe port number used to access the database
UserThe user name used to log in to the database
PasswordThe password used to log in to the database
DatabaseThe name of the database to connect to

For file-based datasources (CSV, SQLite, DuckDB):

FieldDescription
File pathThe project file to query. Pick a .csv file for CSV sources, a .sqlite, .sqlite3 or .db file for SQLite sources, or a .duckdb or .ddb file for DuckDB sources
info

SQLite and DuckDB datasources are read-only and expose all the tables contained in the database file. After selecting the file, use the Tables tab to scan and enable the tables you want to query.

warning

The whole database file is read from project storage on every query, so its size is capped. Larger files are rejected. Administrators can change the limit with the DATASOURCES_SQLITE_MAX_FILE_SIZE_MB and DATASOURCES_DUCKDB_MAX_FILE_SIZE_MB settings.

Tables

The Tables tab displays a table of the tables in the database that have been scanned by MINEO.

The columns in the table are:

FieldDescription
Table nameThe name of the table
VisibleA flag indicating whether the table is visible or not. This allows you to control which tables are available for use in MINEO

Clicking on a table will take you to its detailed view.

Table detailed view

The Table Details pane displays information about a database table.

It is composed by three tabs:

FieldDescription
GeneralContains information about the table, including its name, enabled flag, UUID, table name, and description
ColumnsDisplays information about the columns in the table, including the column name, an editable description, the data type, and two flags indicating whether the column is a primary key and whether it's active or not
PreviewDisplays a preview of the first few rows of data in the table, showing a sample of the actual data stored in the table

Overall, the Table Details pane provides a comprehensive view of the metadata and data in a table, making it easier to understand and manage the table's structure and contents.