v1.23.0 #2909
kyleconroy
announced in
Announce
v1.23.0
#2909
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's new
Database-backed query analysis
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
commandWhen 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.What's Changed
database
config in all cases by @andrewmbenton in fix(config): Validatedatabase
config in all cases #2856CommentSyntax
on windows by @andrewmbenton in fix(compiler): Use correct func signature forCommentSyntax
on windows #2867New Contributors
Full Changelog: v1.22.0...v1.23.0
This discussion was created from the release v1.23.0.
Beta Was this translation helpful? Give feedback.
All reactions