Skip to content

discussions Search Results · repo:sqlc-dev/sqlc language:Go

256 results
 (78 ms)

256 results

insqlc-dev/sqlc (press backspace or delete to remove)

Problem Description When using sqlc with PostgreSQL and pgx/v5, columns of type JSONB are generated as []byte in the Go model. This causes standard JSON marshaling (e.g., via Gin or encoding/json) to ...

Hi, any thoughts on generating documentation with sqlc such as Markdown documents or PlantUML entity relationhsip diagrams. Is that something that could be added to sqlc proper, or would it have to be ...

Does sqlc have support to generate code for migrations that contain stored procedures?
  • skedeeposted
    on Jan 26, 2024
  • 3

Hi 👋🏻 I’m new to SQLC and Go, coming from a strong .NET background - so apologies in advance if this question sounds too “C#-oriented.” In Entity Framework (EF), there’s a feature called Global Query ...

What s Changed - build(deps): bump the production-dependencies group across 1 directory with 2 updates by @dependabot[bot] in https://github.com/sqlc-dev/sqlc/pull/3941 - build(deps): bump packaging ...

I m using sqlc with pgx/v5 in go, for a delete query with :one annotation for eg. -- name: DeleteEmployee :one delete from employee where employee_id = $1 returning employee_name; I was expecting it ...

Earlier this year we switched to using a version of the PostgreSQL parser that didn t require cgo. For v1.30, I m planning on releasing binaries that are build slightly differently. The old build command ...

I have this query: -- name: CreateSnippet :one INSERT INTO snippets (title, content, created_at, expires) VALUES($1, $2, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP + INTERVAL 7 days ) RETURNING *; I want ...

Current Behaviour : I have 3 .sql files and when I am compiling them using sqlc generate(keeping emit_interface flag true), a single interface is created for all the auto-generated SQL queries. Expected ...

I noticed that :many queries collect result objects in slices. That could be inefficient for large number of rows. I was wondering if you d be willing to add/allow support for some sort of :stream annotation, ...