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: Managed databases with any accessible server #3421

Merged
merged 4 commits into from
Jun 5, 2024

Conversation

kyleconroy
Copy link
Collaborator

@kyleconroy kyleconroy commented Jun 5, 2024

Automatically create databases in an accessible database server.

Replaces #3376
Fixes #3415

@kyleconroy kyleconroy changed the title First pass feat: Managed databases with any accessible server Jun 5, 2024
@kyleconroy kyleconroy merged commit 757187c into main Jun 5, 2024
8 checks passed
@kyleconroy kyleconroy deleted the kyle/managed-databases-for-all branch June 5, 2024 21:36
lisitsky pushed a commit to lisitsky/sqlc that referenced this pull request Jun 21, 2024
Managed databases only work using database servers hosted by sqlc Cloud. I'm going to add support for using managed databases with any database server you can access.

Database servers will be configured in a separate servers collection in the configuration file.

Each entry will have a mandatory uri field and an optional name. I may add an optional engine field if the URI scheme isn't enough to infer the engine type.

When using a database server not hosted by sqlc Cloud, sqlc will automatically create databases as needed based on the schema for the associated query set. All operations against these databases will be read-only, so they can be created once and re-used.
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.

Managed databases with any accessible server
1 participant