KO
|
EN
gitlite — search
Search
#typescript
#ai-agents
#deepseek-harness
#dsh-plugin
#open-source
#ai
#cli
#dsh
#claude-code
#codex
#developer-tools
#react
sqlc-gen-zig
★ 28
Open GitHub ↗
Zig generation plugin for sqlc
Download README (.md)
Explore Similar Repositories
ModPrompt
:
[ICCV2025] ModPrompt: Visual Modality Prompt for Adapting Vision-Language Object Detectors
Parser-DRM
:
Device File Parser (PlayReady & Widevine)
noscroll
:
Disable scrollbar on your web-page
personal-blog
:
No description available.
JNU_CourseSnatcher
:
暨南大学抢课脚本
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
sqlc-gen-zig
?
Download (.md)
# sqlc-gen-zig A Zig code generator for [sqlc](https://sqlc.dev/). Currently only supports PostgreSQL and SQLite. ## Usage Head over to the [releases](https://github.com/tinyzimmer/sqlc-gen-zig/releases/latest) for instructions on how to configure your `sqlc.yaml`. Example projects can be found in the [examples/](examples/) directory. ### Configuration ```yaml # sqlc.yaml version: "2" plugins: - name: zig wasm: url: https://github.com/tinyzimmer/sqlc-gen-zig/releases/download/v0.0.13/sqlc-gen-zig.wasm sha256: 9afd6dea61c446fcfb217c1610132fb204595793a4a244bfaecdf1a96afb85f7 sql: - schema: schema.sql queries: queries.sql engine: postgresql codegen: - out: src/models plugin: zig options: {} ``` Below are the available `options` with their default values: ```yaml # The Zig backend to use # Currently only "pg.zig" for postgresql and "zqlite.zig" for sqlite is supported backend: pg.zig # Set to true to not force struct names to their singular form emit_exact_table_names: false # Exclude the following table names from being parsed into their singular form inflection_exclude_table_names: [] # The maximum number of query parameters before creating a struct to hold them query_parameter_limit: 3 # Mark the raw query string constants as public public_query_strings: false # Set to true to not have the Querier store an internal allocator. Each query # method will take an allocator as a parameter instead. unmanaged_allocations: false # Use context as parameters to generated methods. This is useful for code that # wants to execute queries with zero additional allocations. Context is a struct # with a `handle` method taking the return value of the query method. See the # tests/e2e/{engine}/src/context.zig tests for some examples for now. use_context: false # Set to true to return a union of pg.Error and the query result instead of # returning just the result. This is useful for code that wants to handle server # side errors in a more granular way (e.g. checking for constraint violations). # See the tests in tests/e2e/postgres/src/unions.zig for examples for now. # This option is only applicable for the pg.zig backend. pg_error_unions: false ``` ## Development The code generator is written in Go and uses the `sqlc-plugin-sdk`. The end-to-end tests can be run with `make e2e`.