Skip to content

v0.2.0: Merge pull request #2 from easeq/update

Pre-release
Pre-release
Compare
Choose a tag to compare
@easeq easeq released this 16 Oct 12:25
· 33 commits to main since this release
7b9eacb

Configuration

version: "2"
plugins:
- name: rust
  wasm:
    url: https://github.com/easeq/sqlc-rust/releases/download/v0.2.0/sqlc-gen.wasm
    sha256: 8920bd7d234e7705f537979be05780fd08a8285fbae26afec268caad3d064867
sql:
  - schema: ...
    ...
    codegen:
      - out: ...
        plugin: rust
        # optional options
        options:
          use_async: true 
          use_deadpool: false

Changelog

  • Added async support using tokio-postgres. (use_async: true)
  • Added support for deadpool-postgres (use_async: true and use_deadpool: true)
  • Added support for the following complex types, which can be used by enabling sqlc-core crate features.
uuid
inet 
cidr
hstore
bit
varbit
point
box
path
date
time
timestamp
timestamptz
json
jsonb
  • Added sqlc_core::Error