Skip to content

v0.4.0: Features and improvements (#9) (#10)

Pre-release
Pre-release

Choose a tag to compare

@easeq easeq released this 28 Nov 06:19
296ef51

Configuration

version: "2"
plugins:
- name: rust
  wasm:
    url: https://github.com/easeq/sqlc-rust/releases/download/v0.4.0/sqlc-gen.wasm
    sha256: aff49b0838e05cd2fecad97b80286e79528e8bc9011c7948338de0feda9c5e87

Changelog

  • Removed Queries struct in favor of functions for individual queries.
  • Support transactions for sync and async
  • Batch query function params uses anything that implements IntoIterator rather than Vec
  • Each future in the stream returned by :batchmany query returns stream from an iterator over rows instead of a stream from Vec
  • :many query returns an Iterator over rows instead of a Vec
  • Generic client implentation for sync and async clients
  • Export sqlc-derive proc-macros from sqlc-core lib
  • Updated examples (with transactions)