[Feat]: UI actions to create a database and a schema on a server-based connection
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- mysql, postgresql, typescript
- Domain
- database
Research direction
Start by tracing the existing database and schema creation workflows in the UI, then inspect the sidebar and connection Databases tab entry points. The issue names no source files or tests, so first identify how those views invoke database actions and how server-based drivers execute DDL. Done means users can create a database or schema through the UI, with a new database added to the connection's selection.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
There's no UI-based way to create a new database or a new schema on a server-based connection (PostgreSQL, MySQL) — the only way is to hand-write CREATE DATABASE .../CREATE SCHEMA ... in a SQL console. Confirmed while manually testing PR #822 (multi-database PostgreSQL support): to test importing a dump into a fresh database, I had to:
- Open a console and run
CREATE DATABASE tabularis_pr822_demo_restored;by hand. - Add it to the connection's "Databases" tab selection so it appears in the sidebar tree.
- Open another console scoped to the new database and run
CREATE SCHEMA store;by hand, since the dump file'sCREATE TABLEstatements assume the schema already exists.
Tabularis already has a dedicated creation workflow for SQLite (#131, PR #523 — "New SQLite Database": create file + open connection), but nothing equivalent exists for creating a database or a schema on a server-based driver. Both a database and a schema are the same class of gap — a structural container that every other object (table, view, trigger) can be created through a modal for, but that itself can only be created by hand-writing SQL — so filing them together rather than as two separate requests.
Describe the solution you'd like
- A "New Database" action (e.g. next to "DATABASES" in the sidebar, or in the connection's Databases tab) that prompts for a name and runs
CREATE DATABASEfor the connection's driver, then adds it to the selection automatically. - A "New Schema" action (e.g. next to "SCHEMAS" in the sidebar, or on a database node in the nested multi-db tree) that prompts for a name and runs
CREATE SCHEMA.
Both are thin wrappers around a single DDL statement — no per-driver dialect complexity like the table/view/trigger modals need to handle.
Additional context
Related: #131 (SQLite-specific database creation, a different mechanism — file-based, not CREATE DATABASE).
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 335
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 248
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TabularisDB/tabularis
-
[Feat]: Pagination: jump directly to a page numberPossibly taken A pull request linked to this issue is open or already merged. Openfeature request good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
TabularisDB/tabularis#1303 ·
Maintainers usually reply within 1 day
-
feature request good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
TabularisDB/tabularis#1301 ·
Maintainers usually reply within 1 day
-
[Bug]: Postgresql connections when set to access all databases do to state as such in the connection cardPossibly taken @itsmunzir claimed this 3 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
TabularisDB/tabularis#1281 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
feature request good first issue
Difficulty 4/5 3-5 days Newbie friendliness 55/100
TabularisDB/tabularis#1314 ·
Maintainers usually reply within 1 day
-
feature request good first issue
Difficulty 4/5 3-5 days Newbie friendliness 68/100
TabularisDB/tabularis#1313 ·
Maintainers usually reply within 1 day
All issues in TabularisDB/tabularis
Similar issues
-
[Bug]: Pen taps on sidebar rows start a drag and lose their clickPossibly taken @makhnatkin claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
b310-digital/teammapper#1515 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
puckeditor/puck#1884 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
outline/outline#14378 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nicobailon/pi-web-access#642 ·
Maintainers usually reply within 1 day