Open
Description
I'm quite sure I have seen this pattern in other CLI commands:
startBuiltinPostgres - codersdk.PostgresAuth - ConnectToPostgres
we may consider some base pattern for all commands using the database
Originally posted by @mtojek in coder/coder#17091 (comment)
We have a few commands now that can connect to the database directly and need to handle the conditional logic of builtin postgres:
- server
- server create-admin-user
- server regenerate-vapid-keypair
We should refactor and unify this.
We also have the server dbcrypt
commands under enterprise/
that could also benefit from this standardized logic.
Metadata
Metadata
Assignees
Labels
No labels