Releases: lorefnon/ts-sql-codegen
Releases · lorefnon/ts-sql-codegen
Release list
v3.23.1
v3.23.0
- Fixed incorrect handling of non-relative path in connectionSourcePath
- Added new connectionSource option that replaces connectionSourcePath
-
Added resolveRelative option which can be set to
falseto prevent the generator from
attempting to resolve the file relative to the output fileFor example:
connectionSource: { path: "external-module/db-connection", resolveRelative: false }
will result inimport { DBConnection } from "external-module/db-connection";
-
v3.21.0
v3.20.2
v3.20.1
v3.20.0
v3.19.0
What's Changed
- Add support to new custom types by @juanluispaz in #14
Full Changelog: v3.18.0...v3.19.0
Support for CRUD Repos to simplify single table operations
- You can now pass
export: { crudRepository: true }toGeneratorto enable generation of CRUD repository classes that simplify common single table operations
Raw content injection support
-
You can now pass the
rawContentoption to inject arbitrary raw content into all the generated filesconst generator = new Generator({ rawContent: { before: "/* eslint-disable */", }, })
v3.9.0
- 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