User Databases
User Databases are databases that belong to your workspace. Workflow steps such as DB Query, DB Write and DB Create Table use them to store and read data. They are kept completely separate from TAO's own platform database.
Open the page
Click User Databases under Builder (/builder/databases). It needs the User Databases permission. The page says: "Workspace-scoped databases used by workflow nodes. Completely isolated from the platform database."
Buttons at the top: New Database and Upload SQLite file (accepts .db, .sqlite and .sqlite3).
The list
When you have at least one database, three cards show Total databases, SQLite (local file) and External connections.
- Search by name… filters the list.
- Type chips: All (N) and one chip per type you have, such as SQLITE (n). They appear when you have two or more types.
- 20 databases show per page.
Each row shows the name, a type badge (SQLITE, POSTGRES, MYSQL, MARIADB, MSSQL, ORACLE, MONGODB or REDIS), a visibility pill (Private, Public or Project), an Active or Inactive badge, and "N tables".
- Under the name you see the table names and the created date. A SQLite row also shows the file path, with a copy icon ("Path copied.").
- A SQLite row opens the Database Explorer (described below) when you click it.
- An external row has a Test button. It shows "Testing…", then a green message such as "Connected" or a red error.
- Every row has a trash button (Delete).
| Situation | You see |
|---|---|
| Loading | "Loading…" |
| No databases | "No databases yet — Click "New Database" to create a SQLite file or register an external connection." |
| No match | "No matches — Try a different search term or filter." |
| It could not load | The server message, or "Failed to load databases" |
Create a database
Click New Database
The Create Database window opens.
Screenshot placeholderScreenshot to add: The Create Database dialog with Database Type, Visibility and connection fields. Choose a type
Under Database Type:
- SQL / Relational: SQLite (local file), PostgreSQL, MySQL, MariaDB, SQL Server (MSSQL), Oracle DB.
- NoSQL: MongoDB, Redis.
Choose who can see it
Under Visibility: Private (default; "Only you can see and use this database."), Public ("Any user with access to User Databases can see and use this database.") or Project ("Only members of the selected project can see and use this database."). A project must be chosen for Project.
Fill in the connection
- SQLite: a Database Name (for example
my_database). A check shows Available or Name already taken. - Other SQL types: Display Name, Host (default
localhost), Port (default for the type: PostgreSQL 5432, MySQL and MariaDB 3306, SQL Server 1433, Oracle 1521), Database Name, Username, Password. - MongoDB: a Display Name and either MongoDB URI (tick Use connection URI instead) or Host, Port (27017), Database, Username, Password and Auth Source (default
admin). - Redis: Display Name, Host, Port (6379), Password and DB Index (0 to 15).
- Tick Use SSL/TLS for any external type if needed.
- SQLite: a Database Name (for example
Create
Click Create Database (Creating…).
Messages you may see: "Name is required", "Name already taken — choose another", "Database name is required", "MongoDB URI is required" and "Select a project for project visibility". The server may also say "A database named '(name)' already exists in this workspace." or "You must be a member of the selected project to scope a database to it."
Upload a SQLite file
Click Upload SQLite file, pick the file, and enter a Database name when asked (it defaults to the file name). Toasts: "Database uploaded." or "Upload failed."
Delete a database
Click the trash button. The window Delete database? says: "This permanently removes the database record. For SQLite databases, the file is deleted too. Any workflow nodes referencing it will stop working." You must type the database's name to confirm, then click Delete. Toasts: "Database deleted." or "Delete failed."
The Database Explorer
Click a SQLite database to explore it at /builder/databases/(id). The Explorer only works for SQLite. For other types you see "The Database Explorer only supports SQLite databases."
Top bar: a back arrow, the name, a SQLITE tag, a search box ("Search tables, columns, records…"; press Enter) and New table. Search results are grouped as Tables, Columns and Records, with up to 20 records.
Left tree: tables, views, indexes and triggers.
Centre: pick a table to get three tabs.
- Data shows the rows in a grid.
- Search rows, change the page size, and page through.
- Per-row buttons: Edit, Duplicate, copy the row as JSON and Delete.
- Click a cell to copy it. Empty values show as NULL.
- Select several rows to delete them together, and import rows from a CSV file.
- Toasts: "Row inserted", "Row updated", "Row deleted", "Rows deleted", "Row duplicated", "Row copied", "Copied" and "Imported N row(s)". Confirmations: "Delete row?" ("This cannot be undone.") and "Delete N row(s)?"
- Structure shows the Columns (name, type, nullable, primary key, default), foreign keys, indexes, triggers and the table's SQL definition, with Alter table and Drop table.
- Query is a SQL editor with a History list (kept in your browser, per database), a results pane and an error box ("Run a query to see results").
Views, indexes and triggers show their definition as read-only text.
Create or alter a table: give a Table name and add columns. Each column has a name, a type (TEXT, INTEGER, REAL, BOOLEAN, TIMESTAMP, BLOB, JSON, UUID, NUMERIC, BIGINT or VARCHAR), primary key, nullable, unique, auto-increment and a default. Toasts: "Table created", "Table updated", "Table dropped", or a "failed" message.
Right panel:
- Database info: path, size, SQLite version, counts of tables, views, indexes, triggers and records, and the last modified time.
- Actions: Rename, Delete (type the name to confirm), Download, Export SQL, Backup, Restore… (confirm "Restore backup?" ("This overwrites the current database with (file).")), Vacuum, Analyze, Import SQL and Refresh.
- Backups: a list of backups, or "No backups yet".
Who can do what
| Action | Permission on User Databases |
|---|---|
| See the list and open the Explorer | read, and execute for browsing data |
| Create a database, upload a file | create |
| Create or alter tables | update |
| Drop a table, delete a database | delete |
| Vacuum, analyze, backup, restore | admin |