sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
### Version 1.30.0 ### What happened? The included schema and query generates a function with this signature: `func (q *Queries) ListAttachmentsByReplySlice(ctx context.Context) ([]ListAttachmentsByReplySliceRow, error)` This is pretty useless as I...
Add a mode that skips parsing SQL entirely and relies on PostgreSQL for all analysis. This is very work-in-progress, as it won't support expanding `*` commands nor will it work...
### Version 1.30.0 ### What happened? Extra reproduction steps: - clone [this](https://git.singpolyma.net/jmp-schemas) repo and apply the migrations - `mkdir -p sqlc_gen/schema sqlc_gen/queries` - `pg_dump --schema-only > schema/schema.sql` ### Relevant log...
### What do you want to change? **Short version:** I don't understand why `emit_pointers_for_null_types` is not enabled when using `lib/pq` as the driver. It seems like it should work just...
### What do you want to change? Hello, I am wondering if `:copyfrom` supports `ON_ERROR`? With sqlc v1.30.0 I receive `syntax error at or near "ON_ERROR"` for a statment like:...
### Version 1.27.0 ### What happened? #### Generated `models.go` ```go // Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.27.0 package repository import ( "github.com/google/uuid" ) type...
Implements #4143
### What do you want to change? I've mentioned, that sqlc diff behaves differently on file change / removal. As far as both changing / deleting file will cause the...
### Version 1.30.0 ### What happened? I noticed a difference when generating queries with limit/offset between using a schema file vs a managed database connection. If the table uses an...