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

### Version 1.26.0 ### What happened? A bug happened! Running: ``` go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest sqlc generate ``` errors with: > relation "pg_matviews" does not exist. tried `:exec`, `:many` as well...

bug
triage

### Version 1.26.0 ### What happened? Been playing with this since yesterday - I have a sample query that is modified to remove columns and change table names. Starting to...

bug
triage

### Version 1.26.0 ### What happened? when i run `docker run --rm -v "$(PWD):/src" -w /src sqlc/sqlc:1.26.0 generate`, but the generated files have `v1.25.0`. ### Relevant log output _No response_...

bug
triage

### What does this PR fixed? - This PR addresses issues with SQL formatting tools [pgFormatter](https://www.postgresql.org/about/news/pgformatter-v55-released-2589/) and [sql-formatter](https://github.com/sql-formatter-org/sql-formatter). These tools are used to format SQL, similar to how `go fmt`...

### What do you want to change? Currently, generating a table from the basic SQL will strip the field comments completely: ``` CREATE TABLE test ( id text PRIMARY KEY,...

enhancement

### Version 1.26.0 ### What happened? I'm just strarting to explore this tool and added a couple tables and some more queries straight from tutorial and... it's broken. Not sure...

bug
triage

### Version 1.26.0 ### What happened? When I run `sqlc generate` with `engine: "mysql` and I use `sqlc.slice(myslice)` inside queries, in the generated file with Go code it inserts an...

bug

### Discussed in https://github.com/sqlc-dev/sqlc/discussions/364 Originally posted by **mehdijoafshani** February 27, 2020 Does it make sense to support dynamic queries ? *(Dynamic `where` and `orderBy` clauses)*. Due to some requirements we...

### Version 1.26.0 ### What happened? When using `:copyfrom` query with `query_parameter_limit` set, generated code will still try to use parameter struct: ```go func (q *Queries) CreateAuthors(ctx context.Context, arg []CreateAuthorsParams)...

bug
triage

### What do you want to change? Hello, my use case is the following: I've a request with many WHERE clauses, invoked from a webservice with paging parameters (offset and...

enhancement
triage