sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

Generate type-safe code from SQL

Results 584 sqlc issues
Sort by recently updated
recently updated
newest added

I have a Supabase Postgres instance. I have used some ORMs (like SeaORM in Rust), which gives a link and login, can automatically generate the equivalent structs. The quickest option...

Hi, when a query return a myriad of objects, the slice based solution is not very efficient, it would be great if it was possible to have a way to...

enhancement

### Version 1.16.0 ### What happened? Attempting a query with an input parameter of type `jsonb not null`, using driver `pgx/v4`, and with `prefer_simple_protocol=true` results in the query failing with:...

bug
:wrench: golang
:computer: linux
pgx/v4

### What do you want to change? Oracle has a `varchar2` datatype, and it's the same as `varchar` (at least for now), but it can change in the future. Because...

enhancement

I'm using mysql with the following configuration: ``` version: "2" sql: - engine: "mysql" schema: "some-path/schemas" queries: "some-path/queries" gen: go: out: "some-path/tables" package: "internal" ``` I'd like to be able...

enhancement

### Version 1.18.0 ### What happened? Sqlc could not support table alias, the sql example is in below. The error message is "table alias "t1" does not exist" ### Relevant...

bug
:books: mysql
:wrench: golang

Fixed resolving refs to CTEs by adding CTEs to the aliasMap and indexing its columns when resolving catalog references. Fix #3219 --- This is may not be the fix you...

### What do you want to change? ### Current state In current state of the library, using queries with arrays generates code with a dependency to `github.com/lib/pq`, which is in...

enhancement

Use type name 'any' for ALTER TABLE t1 ADD COLUMN c1 where no type name for c1 is provided. This is the same logic as for CREATE TABLE. Fixes #3375

### Version 1.26.0 ### What happened? sqlc panics after i've added a migration which adds a [generated column](https://www.sqlite.org/gencol.html) which uses a [json function](https://www.sqlite.org/json1.html#jptr) ### Relevant log output ```shell panic: runtime...

bug