feat: add a "dbdev create" command

Open
#135 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
postgresql, typescript
Domain
cli, database

Research direction

Start by tracing the existing dbdev install command and its --connection handling, then determine where a create subcommand belongs. Done means dbdev create accepts an extension name and connection, and runs the corresponding CREATE EXTENSION operation against the database. Check how the command is tested before adding coverage for this behavior.

Written by the indexing model from the issue text.

Description

enhancement

Chore

Describe the chore

(This one is up for debate but I think it would be useful especially for testing environments like GH actions)

The "dbdev install" command adds the TLE to the database but doesn't "enable" the extension. It could be useful to have a command like dbdev create pg_idkit --connection " which essentially runs:

CREATE EXTENSION pg_idkit;

Additional context

Add any other context or screenshots that help clarify the task.

Dominant language
TypeScript
Stars
443
Forks
31
Avg merge
1h 12m
Merged PRs (30d)
10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/dbdev

All issues in supabase/dbdev

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.