Skip to content

Releases: lorefnon/ts-sql-codegen

v3.23.1

25 Feb 15:26
Compare
Choose a tag to compare
  • Bugfixes:
    • Prevent failure when constraints property is missing in tbls yaml output

v3.23.0

24 Feb 18:00
Compare
Choose a tag to compare
  • Fixed incorrect handling of non-relative path in connectionSourcePath
  • Added new connectionSource option that replaces connectionSourcePath
    • Added resolveRelative option which can be set to false to prevent the generator from
      attempting to resolve the file relative to the output file

      For example: connectionSource: { path: "external-module/db-connection", resolveRelative: false }
      will result in import { DBConnection } from "external-module/db-connection";

v3.21.0

02 Jun 12:25
Compare
Choose a tag to compare
  • Support generating inferred types as interfaces

v3.20.2

26 Apr 11:36
Compare
Choose a tag to compare
  • Fix type-wrappers not used by crud-repositories

v3.20.1

12 Mar 13:40
Compare
Choose a tag to compare
  • Fix templating issue with some of the generated imports when extension is specified

v3.20.0

11 Mar 18:11
Compare
Choose a tag to compare
  • Add support to configure extensions for imports
  • Make default type-based field mappings case-insensitive

v3.19.0

19 Feb 13:46
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.18.0...v3.19.0

Support for CRUD Repos to simplify single table operations

06 May 10:12
Compare
Choose a tag to compare
  • You can now pass export: { crudRepository: true } to Generator to enable generation of CRUD repository classes that simplify common single table operations

Raw content injection support

03 May 05:15
Compare
Choose a tag to compare
  • You can now pass the rawContent option to inject arbitrary raw content into all the generated files

    const generator = new Generator({
        rawContent: {
            before: "/* eslint-disable */",
        },
    })
    

v3.9.0

11 Mar 11:35
Compare
Choose a tag to compare
  • Added removeExtraneous generator option to support removing extraneous files in output directory
  • Exposed export options in the cli: --export-table-instances, --export-row-types, --export-table-classes, --export-values-types, --export-extracted-columns