Skip to content

Releases: tinyzimmer/sqlc-gen-zig

v0.0.13

Choose a tag to compare

@github-actions github-actions released this 14 Feb 09:23
e75d2e4

sqlc-gen-zig (2025-02-14T09:23:48Z)

To update to this version, use the following in your 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

Changelog

  • 715ddb1 chore: group templates by engine to allow support for others
  • 73ab656 chore: reoroganize for more engines
  • d6b91e3 ci: run engine tests concurrently
  • e9791c1 feat: build out sqlite templates more
  • 1788c55 feat: context support for sqlite and tests
  • 2105a29 feat: finish sqlite templates and add managed test cases
  • bf1e9eb feat: models template for sqlite
  • 6564a0d feat: one query sqlite methods
  • 43bcdef fix: fix release of sqlite pool conn
  • 1ed9859 refactor: toss around generate code to work better with variable engine inputs
  • b85658d tests: add unmanaged sqlite tests
  • 9c5fb8b tests: scaffold templates and framework for sqlite tests

v0.0.12

Choose a tag to compare

@github-actions github-actions released this 09 Feb 20:19
d5cb4b0

sqlc-gen-zig (2025-02-09T20:19:52Z)

To update to this version, use the following in your sqlc.yaml:

version: '2'
plugins:
- name: zig
  wasm:
    url: https://github.com/tinyzimmer/sqlc-gen-zig/releases/download/v0.0.12/sqlc-gen-zig.wasm
    sha256: 0f252f98cde9f277dc08260d3413b5e55b0102a31a87c5bf15b08dcd7b728239

Changelog

  • 85c9866 chore: cleanup templates
  • 74775c5 chore: more template tidying, consolidate models and enums
  • d5cb4b0 chore: use better errors in union tests

v0.0.11

Choose a tag to compare

@github-actions github-actions released this 07 Feb 09:52
a3a0e60

sqlc-gen-zig (2025-02-07T09:52:34Z)

To update to this version, use the following in your sqlc.yaml:

version: '2'
plugins:
- name: zig
  wasm:
    url: https://github.com/tinyzimmer/sqlc-gen-zig/releases/download/v0.0.11/sqlc-gen-zig.wasm
    sha256: 12f9a43c0223c6da64b623691b5264b5827f7acfca23674a1cbfd0494c845f61

Changelog

  • 327b7f0 feat: support context with error unions
  • a3a0e60 tests: add test cases for using context with pg.Error unions
  • 67d23f9 tests: tidy

v0.0.10

Choose a tag to compare

@github-actions github-actions released this 04 Feb 18:07
0bf816d

sqlc-gen-zig (2025-02-04T18:07:28Z)

To update to this version, use the following in your sqlc.yaml:

version: '2'
plugins:
- name: zig
  wasm:
    url: https://github.com/tinyzimmer/sqlc-gen-zig/releases/download/v0.0.10/sqlc-gen-zig.wasm
    sha256: 0508f0b6f582d08ee4bbfb6d2a7d52e4fcfa81f8cdea69af3b8b8b794e16bb8d

Changelog

  • 2f42d9b feat: add pg.Error unions to template
  • cff198e feat: finish first draft of pg.Error unions (still untested)
  • 8504e7a tests: add union test case
  • 202c758 tests: cleanup union test
  • 199463e tests: more pg.error union test cases

v0.0.9

Choose a tag to compare

@github-actions github-actions released this 03 Feb 19:29
bf6ddd1

sqlc-gen-zig (2025-02-03T19:29:37Z)

To update to this version, use the following in your sqlc.yaml:

version: '2'
plugins:
- name: zig
  wasm:
    url: https://github.com/tinyzimmer/sqlc-gen-zig/releases/download/v0.0.9/sqlc-gen-zig.wasm
    sha256: 13729bf8a9bf32943b24fc384ede7d9f60306b0df3315a00452b0e2603a9a967

Changelog

  • 236b023 fix: bind enum arrays directly, update test postgres version
  • 3689c3b tests: use refAllDecls
  • bf6ddd1 tidy: move context to first parameter

v0.0.8

Choose a tag to compare

@github-actions github-actions released this 01 Feb 14:31
ba52956

sqlc-gen-zig (2025-02-01T14:31:09Z)

To update to this version, use the following in your sqlc.yaml:

version: '2'
plugins:
- name: zig
  wasm:
    url: https://github.com/tinyzimmer/sqlc-gen-zig/releases/download/v0.0.8/sqlc-gen-zig.wasm
    sha256: dab1e339bc52ab38a7614953f35a0946ca754331034420fe52a7d5c6e4bd6440

Changelog

  • 03bbdbe feat: callback mode with zero additional allocations
  • ae3de5c fix: iterators in context callbacks, add test cases
  • 8befba5 fix: logic of emit exactl table names was backwards
  • 5c76e36 fix: support for enum array types

v0.0.7

Choose a tag to compare

@github-actions github-actions released this 01 Feb 08:24
9a442d8

sqlc-gen-zig (2025-02-01T08:23:57Z)

To update to this version, use the following in your sqlc.yaml:

version: '2'
plugins:
- name: zig
  wasm:
    url: https://github.com/tinyzimmer/sqlc-gen-zig/releases/download/v0.0.7/sqlc-gen-zig.wasm
    sha256: 9752fb1a2f1143780204adf8d53ef6ec1ac700563b3dc07a96dfa8bb0f9b8990

Changelog

  • 9a8f63c chore: tidy whitespace in templates
  • 0e4e758 feat: support unmanaged querier
  • 1983362 fix: structs with enums immediately marked scalar, cleanup template funcs
  • 9a442d8 tests: add test suite for unmanaged allocations

v0.0.6

Choose a tag to compare

@github-actions github-actions released this 31 Jan 15:15
27c437f

sqlc-gen-zig (2025-01-31T15:15:18Z)

To update to this version, use the following in your sqlc.yaml:

version: '2'
plugins:
- name: zig
  wasm:
    url: https://github.com/tinyzimmer/sqlc-gen-zig/releases/download/v0.0.6/sqlc-gen-zig.wasm
    sha256: e56c08768e411a7e8bee58ef8697cef73a37d917f84065248662bad89d1170e7

Changelog

  • 27c437f fix: scan array of cidr, add test cases

v0.0.5

Choose a tag to compare

@github-actions github-actions released this 31 Jan 14:26
f8b3f29

sqlc-gen-zig (2025-01-31T14:26:09Z)

To update to this version, use the following in your sqlc.yaml:

version: '2'
plugins:
- name: zig
  wasm:
    url: https://github.com/tinyzimmer/sqlc-gen-zig/releases/download/v0.0.5/sqlc-gen-zig.wasm
    sha256: ac318a2b70c8c835dee8480f3616ee895b22dcf1397249d3833a8d4dc2041889

Changelog

  • facd2ce fix: deinit of array of nonscalars
  • f8b3f29 fix: scan of scalar array

v0.0.4

Choose a tag to compare

@github-actions github-actions released this 31 Jan 13:48
5df77da

sqlc-gen-zig (2025-01-31T13:48:56Z)

To update to this version, use the following in your sqlc.yaml:

version: '2'
plugins:
- name: zig
  wasm:
    url: https://github.com/tinyzimmer/sqlc-gen-zig/releases/download/v0.0.4/sqlc-gen-zig.wasm
    sha256: fc513784c098860ed70ef8a208173f55ba27de2f6fa7a890fef57be7e16ce9fd

Changelog

  • 0bac7d2 chore: update example
  • 031a729 feat: scalar array support
  • 5df77da feat: support for arrays of nonscalars, numerics, and cidrs
  • 1c28542 fix: add deinit methods for array types
  • 219712c fix: try toOwnedSlice