-
### What do you want to change?
I'm working on a repository where we have four sqlc-generated packages. Currently, sqlc generates the models.go file for each package; which leads to a lot of duplica…
-
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 return some kind of iterator on the rows, something l…
-
### What do you want to change?
Recently I had to write a plugin for slight alterations of the default behavior of the golang generator for postgres.
To build the plugin, I needed to
- copy over …
-
sqlc, like protoc, aims to generate code for multiple languages. The second language we're looking to add is TypeScript.
>
### Getting started
> [!WARNING]
> The TypeScript plugin (sqlc-g…
-
### Version
1.11.0
### What happened?
In v1.11.0, when I use an alias for a subquery table, sqlc will report an error for table alias does not exist, but when I change version to v1.10.0 everything…
-
これに対応したい
```sql
CREATE TABLE users
(
id integer NOT NULL PRIMARY KEY,
name varchar(255) NOT NULL,
age integer NULL
);
CREATE TABLE posts
(
id integer NO…
-
### Version
Other
### What happened?
This is on version 1.11.0, main from today.
I have an enum field where one of the values is "-", eg, in this line from a create table:
```
`my_enum_field` …
-
### 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,
-- Some helpful comment t…
-
Related to #1626.
It's a much nicer developer experience to have this single source of truth for the database schema and not have one-off table creation methods for each table and manual migrations…
-
### Version
1.25.0
### What happened?
I just need to perform a query that joins multiple rows from same table and i expect sqlc to take alias from query when build final go structs
In current ve…