Skip to content

Releases: lorefnon/ts-sql-codegen

v3.23.1

Choose a tag to compare

@lorefnon lorefnon released this 25 Feb 15:26
  • Bugfixes:
    • Prevent failure when constraints property is missing in tbls yaml output

v3.23.0

Choose a tag to compare

@lorefnon lorefnon released this 24 Feb 18:00
  • 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

Choose a tag to compare

@lorefnon lorefnon released this 02 Jun 12:25
  • Support generating inferred types as interfaces

v3.20.2

Choose a tag to compare

@lorefnon lorefnon released this 26 Apr 11:36
  • Fix type-wrappers not used by crud-repositories

v3.20.1

Choose a tag to compare

@lorefnon lorefnon released this 12 Mar 13:40
  • Fix templating issue with some of the generated imports when extension is specified

v3.20.0

Choose a tag to compare

@lorefnon lorefnon released this 11 Mar 18:11
  • Add support to configure extensions for imports
  • Make default type-based field mappings case-insensitive

v3.19.0

Choose a tag to compare

@lorefnon lorefnon released this 19 Feb 13:46

What's Changed

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

Support for CRUD Repos to simplify single table operations

Choose a tag to compare

@lorefnon lorefnon released this 06 May 10:12
  • 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

Choose a tag to compare

@lorefnon lorefnon released this 03 May 05:15
  • 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

Choose a tag to compare

@lorefnon lorefnon released this 11 Mar 11:35
  • 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