You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a database connection configured, sqlc generate will gather metadata from that database to support its query analysis. Turning this on resolves a large number of issues in the backlog related to type inference and more complex queries. The easiest way to try it out is with managed databases.
The database-backed analyzer currently supports PostgreSQL, with MySQL and SQLite support planned in the future.
New createdb command
When you have a cloud project configured, you can use the new sqlc createdb command to spin up a new ephemeral database with your schema and print its connection string to standard output. This is useful for integrating with other tools. Read more in the managed databases documentation.
Support for pgvector
If you're using pgvector, say goodbye to custom overrides! sqlc now generates code using pgvector-go as long as you're using pgx. The pgvector extension is also available in managed databases.
Go build tags
With the new emit_build_tags configuration parameter you can set build tags for sqlc to add at the top of generated source files.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What's new
Database-backed query analysis
With a database connection configured,
sqlc generatewill gather metadata from that database to support its query analysis. Turning this on resolves a large number of issues in the backlog related to type inference and more complex queries. The easiest way to try it out is with managed databases.The database-backed analyzer currently supports PostgreSQL, with MySQL and SQLite support planned in the future.
New
createdbcommandWhen you have a cloud project configured, you can use the new
sqlc createdbcommand to spin up a new ephemeral database with your schema and print its connection string to standard output. This is useful for integrating with other tools. Read more in the managed databases documentation.Support for pgvector
If you're using pgvector, say goodbye to custom overrides! sqlc now generates code using pgvector-go as long as you're using
pgx. The pgvector extension is also available in managed databases.Go build tags
With the new
emit_build_tagsconfiguration parameter you can set build tags for sqlc to add at the top of generated source files.What's Changed
databaseconfig in all cases by @andrewmbenton in fix(config): Validatedatabaseconfig in all cases #2856CommentSyntaxon windows by @andrewmbenton in fix(compiler): Use correct func signature forCommentSyntaxon windows #2867New Contributors
Full Changelog: v1.22.0...v1.23.0
This discussion was created from the release v1.23.0.
BetaWas this translation helpful?Give feedback.
All reactions