sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
Hello, i would like to propose the addition of new command that simply output yaml containing the result of running `EXPLAIN`, where each items contains the query, the arguments used...
This PR addresses issue: https://github.com/sqlc-dev/sqlc/issues/3589 I figured passing the raw comment to the plugin author was probably best since metadata seemed to have an opinion around generating go code for...
### Version 1.27.0 ### What happened? I am trying to create a query that will return a set of results based on a dynamic filter. I am using the pattern...
### Version 1.20.0 ### What happened? I have the following example overrides: ```yaml overrides: - column: "c.c" go_type: "string" - column: "c.c" nullable: true go_type: "sql.NullString" - column: "a.a" nullable:...
### Version 1.27.0 ### What happened? Running on Windows I get the `libwinpthread-1.dll` error. From a brief search it looks like it might be due to not having statically linked...
### Version 1.27.0 ### What happened? sqlc fails to parse [UPDATE statements](https://www.sqlite.org/lang_update.html#optional_limit_and_order_by_clauses) that include both RETURNING and ORDER BY / LIMIT clauses. ### Relevant log output ```shell line 53:13 no...
### What do you want to change? In the [overrides link](https://github.com/sqlc-dev/sqlc/blob/main/internal/codegen/golang/sqlite_type.go#L13), the sqlite type information is missing. I copied the paragraph below: > A database type to override. Find the...
### Version 1.27.0 ### What happened? The generated code is not what I expected. Originally, the part specified by `sqlc.arg()` was `?` but it is output as it is. ##...
### What do you want to change? Currently, when the `WithTx` method is generated, it accepts a concrete type: either an `*sql.Tx` or a `pgx.Tx`. However, the arguments ends up...
### What do you want to change? Currently, I am in the process of replacing Ent with SQLC. Our workflow involves writing our database schema, generate functions that map to...