Title: Managed databases with any accessible server · Issue #3415 · sqlc-dev/sqlc · GitHub
Open Graph Title: Managed databases with any accessible server · Issue #3415 · sqlc-dev/sqlc
X Title: Managed databases with any accessible server · Issue #3415 · sqlc-dev/sqlc
Description: 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 i...
Open Graph Description: 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 confi...
X Description: 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 c...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/3415
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Managed databases with any accessible server","articleBody":"[Managed databases](https://docs.sqlc.dev/en/latest/howto/managed-databases.html) 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.\r\n\r\nDatabase servers will be configured in a separate `servers` collection in the configuration file.\r\n\r\n```yaml\r\nversion: \"2\"\r\nservers:\r\n - uri: postgres://localhost:5432/postgres\r\n```\r\n\r\nEach 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.\r\n\r\n```yaml\r\nversion: \"2\"\r\nservers:\r\n - uri: postgres://localhost:5432/postgres\r\nsql:\r\n - engine: \"postgresql\"\r\n queries: \"query.sql\"\r\n schema: \"schema.sql\"\r\n database:\r\n managed: true\r\n gen:\r\n go:\r\n package: \"tutorial\"\r\n out: \"tutorial\"\r\n sql_package: \"pgx/v5\"\r\n```\r\n\r\nWhen 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.\r\n\r\n","author":{"url":"https://github.com/kyleconroy","@type":"Person","name":"kyleconroy"},"datePublished":"2024-06-05T00:22:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3415/sqlc/issues/3415"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:52e054cf-a81d-9c95-a735-ff437dfe6e9c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E85E:1CD42A:55BB0B0:77B7864:6A510A27 |
| html-safe-nonce | b9b103b47adc65a20bb1d1e88e8f2dba27ff98fa7b3b50580940e451119b10c1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODVFOjFDRDQyQTo1NUJCMEIwOjc3Qjc4NjQ6NkE1MTBBMjciLCJ2aXNpdG9yX2lkIjoiODE2ODc3NDk2MjY0MDkxNDk4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 48c3113845110c30d65c748cb5de4e9965a55e3bb34799f75179372edb4ab1f0 |
| hovercard-subject-tag | issue:2334601044 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlc-dev/sqlc/3415/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2f978d02a25e3bb74f829c09c5910d9d115f96fda36756feb99e966bc7850c30/sqlc-dev/sqlc/issues/3415 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f978d02a25e3bb74f829c09c5910d9d115f96fda36756feb99e966bc7850c30/sqlc-dev/sqlc/issues/3415 |
| og:image:alt | 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 confi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kyleconroy |
| hostname | github.com |
| expected-hostname | github.com |
| None | b076e100febaa00374cd89239f915d00dd3187f7c68b12bc2b7688181305344d |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2d129404fc45ea64edb1b98567c53e55b395536f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width