Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add a "dbdev create" command #135

Open
kiwicopple opened this issue Nov 3, 2023 · 2 comments
Open

feat: add a "dbdev create" command #135

kiwicopple opened this issue Nov 3, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@kiwicopple
Copy link
Member

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.

@olirice
Copy link
Contributor

olirice commented Nov 3, 2023

How about controlling this behavior on install with a flag --create-extension on the existing install command
e.g. dbdev install ... --create-extension rather than a separating it?

@kiwicopple
Copy link
Member Author

also good!

we might want something for updates too (alter extension ... update to NEW_VERSION);, although I'm not sure how far we need to go down this path - this might also mean that we need something to list the current version

@imor imor added the enhancement New feature or request label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants