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

Fixes https://github.com/sqlc-dev/sqlc/issues/2905

### `CREATE TYPE` ```sql CREATE TYPE myarg as ( id integer, name text ); -- name: BasicQuery :one select $1::myarg; ``` ### Automatic table types https://www.postgresql.org/docs/current/rowtypes.html > Whenever you create...

:books: postgresql
proposal
pgx/v5

### Version 1.23.0 ### What happened? When I run `sqlc generate`, it generates interface{} for my custom select fields. I couldn't find how to define type for this fields. Is...

bug
:books: mysql
analyzer

### What do you want to change? Neither `database/sql` or https://github.com/go-sql-driver/mysql supports nullable unsigned integers. It is easy to define a custom type for them however, so I'd like to...

enhancement

### Version 1.25.0 ### What happened? When using named parameters such as `@name`, sqlc doesn't recognize the parameter if there's no space before the `@` character. The generated code looks...

bug

### What do you want to change? Given this query: ```sql -- name: CategoryGetAllAndChildren :many SELECT swipe_category.*, sqlc.embed(swipe_sub_category) FROM swipe_category LEFT JOIN swipe_sub_category on swipe_category.swipe_category_id = swipe_sub_category.swipe_category_id WHERE swipe_category.organization_id =...

enhancement

sqlc only supports a few query types: SELECT, UPDATE, INSERT, DELETE. It should be able to support any DDL or DML query.

enhancement

### Version 1.13.0 ### What happened? All DDL statements in queries.sql are parsed as schema definition, rather than as queries that can be executed at runtime. I want to create...

enhancement
:books: postgresql
:wrench: golang

### What do you want to change? Currently, the Prepare SQL Statement Function is being set up with all SQL statements. In sql, there are statements I want to set...

enhancement
triage