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

This implements type inference for MySQL mathematical expressions. Before this change, queries with arithmetic operations would generate `interface{}` types, which meant no compile-time type safety. Now the compiler properly infers...

### What do you want to change? ## Context https://github.com/sqlc-dev/sqlc/issues/1275 was resolved by adding `:batchexec`, `:batchone`, and `:batchmany` commands generating code for submitting multiple instances of the same query in...

enhancement
:books: postgresql
:wrench: golang

### What do you want to change? If I create a table like for example: ```SQL CREATE TABLE IF NOT EXISTS `session` ( `id` INT NOT NULL, `expiry` TIMESTAMP NOT...

enhancement
:books: mariadb

### What do you want to change? Consider the following sqlc config: ```yaml version: "2" sql: - schema: "migrations/*.sql" queries: - "db/schema1-queries.sql" engine: "postgresql" gen: go: package: "schema1" out: "db/schema1"...

enhancement

### What do you want to change? When I write this query ```sql -- name: Update :one UPDATE "user" SET firstname = $2, surname = $3 WHERE id = $1...

enhancement
:books: postgresql
:wrench: golang

### Version 1.30.0 ### What happened? Fail to generate go gode when using named argument >1 for optional SELECT WHERE query case see https://github.com/sqlc-dev/sqlc/issues/200 suggested solution does not work in...

bug
:books: mysql
:wrench: golang
:computer: darwin

### Version 1.30.0 ### What happened? Given the following override definition: ```yaml ... go: package: "somepackage" ... - column: "table.column" go_type: "github.com/import/from/within/the/module/somepackage/SomeType" ``` Where the column is of type TEXT,...

bug
:wrench: golang

### Version 1.29.0 ### What happened? If I use `$AAA` parameters with SQLite I will get an error but this is supported by the engine as said on SQLite [SQL...

bug
:wrench: golang
:books: sqlite
:computer: linux

### 💡 **Summary** Currently, sqlc does not provide a way to globally append `,string` to JSON tags for numeric types like `BIGINT` while preserving the Go type as `int64`. This...

:books: postgresql
:wrench: golang

### Version 1.28.0 ### What happened? When creating a virtual table like so: ```sql CREATE VIRTUAL TABLE my_fts USING fts5 ( name, description, content = '', contentless_delete = 1, tokenize...

bug
:computer: darwin
:books: sqlite