Skip to content

Releases: wsporto/typesql

v0.24.0

Choose a tag to compare

@wsporto wsporto released this 25 May 22:54

What's Changed

SQLite:

  • fix(codegen): use | null in sqlite and mysql by @okuuva in #120
  • fix(sqlite): UPSERT reused-named-param arg miscount by @okuuva in #119
  • test: improve compatibility by @okuuva in #121
  • fix(postgres): EXTRACT() returns numeric (PG14+) by @okuuva in #123
  • fix(sqlite): single row RETURNING codegen by @okuuva in #124
  • Sqlite dml multi row by @wsporto in #126
  • improve generated code style and empty RETURNING handling by @wsporto in #127
  • fix(sqlite): handle DELETE statements without WHERE by @wsporto in #128
  • expand array parameters in UPDATE/DELETE stmts by @wsporto in #129

New Contributors

Full Changelog: v0.23.0...v0.24.0

v0.23.0

Choose a tag to compare

@wsporto wsporto released this 20 Apr 14:04

What's Changed

  • improve explanation for config values in readme by @bertyhell in #108
  • fix(parser): correctly handle quotes in mysql and sqlite column names by @bertyhell in #112
  • feat: add option to disable index.ts files generation by @bertyhell in #114
  • codegen: use \n as default line ending

New Contributors

Full Changelog: v0.22.0...v0.23.0

v0.22.0

Choose a tag to compare

@wsporto wsporto released this 06 Dec 17:02

What's Changed

SQLite:

  • sqlite: add support for RETURNING clause by (#103)

Full Changelog: v0.21.2...v0.22.0

v0.21.2

Choose a tag to compare

@wsporto wsporto released this 01 Oct 23:27

What's Changed

  • fix(codegen): correct enum type generation in dynamic queries (#99)

Full Changelog: v0.21.1...v0.21.2

v0.21.1

Choose a tag to compare

@wsporto wsporto released this 19 Sep 23:32

What's Changed

Postgres:

  • fix(postgres): correct parameter binding for dynamic query with LIMIT and OFFSET (#95)
  • fix(postgres): ensure column order matches COPY FROM CSV input (#96)

Full Changelog: v0.21.0...v0.21.1

v0.21.0

Choose a tag to compare

@wsporto wsporto released this 29 Aug 23:17

What's Changed

General

  • Switch from tuple to object syntax in dynamic queries

Postgres

  • support dynamic ORDER BY parameter (#90)

Full Changelog: v0.20.0...v0.21.0

v0.20.0

Choose a tag to compare

@wsporto wsporto released this 14 Aug 23:20

What's Changed

General:

  • feat(config): support environment variable in databaseUri and authToken config (#88)
  • feat(config): add outDir option to config (#89)

Postgres:

  • feat(postgres): add support for row-wise null check (WHERE t.* IS NULL) (#85)
  • feat(postgres): handle implicit lateral cross join (#86)
  • fix(codegen): use | null instead of optional ? in result types (#87)

Full Changelog: v0.19.2...v0.20.0

v0.19.2

Choose a tag to compare

@wsporto wsporto released this 09 Aug 22:20

What's Changed

Postgres

  • feat(postgres): add schemas option to config (#82)
  • feat(postgres): handle multiple schemas (#83)
  • fix(postgres): handle ORDER BY with FETCH clause (#84)

Full Changelog: v0.19.1...v0.19.2

v0.19.1

Choose a tag to compare

@wsporto wsporto released this 05 Aug 02:15

What's Changed

SQLite

  • fix(codegen): handle zero param updates by @lilnasy in #77

Postgres

  • feat(codegen): improve CRUD generation for tables with default values (#78)
  • feat(codegen): support pg.PoolClient in function parameters

New Contributors

Full Changelog: v0.19.0...v0.19.1

v0.19.0

Choose a tag to compare

@wsporto wsporto released this 03 Aug 18:10

What's Changed

General:

  • fix(cli): adjust config path resolution (#76)

Postgres:

  • fix(postgres): default value does not imply NOT NULL (#74)

Full Changelog: v0.18.7...v0.19.0