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(createdb): Create ephemeral databases #2894

Merged
merged 5 commits into from
Oct 20, 2023
Merged

Conversation

kyleconroy
Copy link
Collaborator

@kyleconroy kyleconroy commented Oct 20, 2023

Add a new createdb subcommand to sqlc. This creates an ephemeral database and prints the database URL for that database.

internal/cmd/createdb.go Outdated Show resolved Hide resolved
internal/cmd/createdb.go Outdated Show resolved Hide resolved
internal/cmd/createdb.go Outdated Show resolved Hide resolved
internal/cmd/createdb.go Outdated Show resolved Hide resolved
@kyleconroy kyleconroy marked this pull request as ready for review October 20, 2023 19:49
},
}

func CreateDB(ctx context.Context, dir, filename, name string, o *Options) error {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name -> qs

internal/cmd/createdb.go Show resolved Hide resolved
internal/config/config.go Show resolved Hide resolved
@kyleconroy kyleconroy merged commit 01947a6 into main Oct 20, 2023
8 checks passed
@kyleconroy kyleconroy deleted the kyle/cli-createdb branch October 20, 2023 20:59
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants