Skip to content

Releases: ForbesLindesay/atdatabases

@databases/[email protected]

19 Oct 17:25
d829ca9
Compare
Choose a tag to compare

Bug Fixes

  • Fix insertOrUpdate, insertOrIgnore and update (#110)

    All methods now also have at least one test covering them.

@databases/[email protected]

19 Oct 14:09
6d71c25
Compare
Choose a tag to compare

Bug Fixes

  • Allow re-exporting table types (#109)

@databases/[email protected]

19 Oct 11:34
4178ce5
Compare
Choose a tag to compare

New Features

  • Initial release (#105)

@databases/[email protected]

19 Oct 12:37
e8639a4
Compare
Choose a tag to compare

Breaking Changes

  • Output now requires TypeScript 3.8 or higher (#108)

    This is because we make use of the export type {Name} syntax required to support isolated modules and incremental build.

Bug Fixes

  • Add type keyword to exports to support incremental build & isolated modules (#108)

@databases/[email protected]

19 Oct 11:34
4178ce5
Compare
Choose a tag to compare

New Features

  • Show database comments & default values for tables and columns (#106)

  • Added "singular" and "plural" as filters for type names (#104)

    For example, if your table names are plural, and you prefer the interfaces to have singular names, you can add something like this to your package.json:

      "pg": {
        "types": {
          "tableTypeName": "{{ TABLE_NAME | singular | pascal-case }}"
        }
      },

    These filters can be used on all templated identifier names and file names.

@databases/[email protected]

19 Oct 11:34
4178ce5
Compare
Choose a tag to compare

Breaking Changes

  • Constraint.checkConstraint was renamed to Constraint.constraintDescription (#106)

    It now contains a description for all constraints, not just check constraints. It should match the syntax used to create constraints.

Bug Fixes

  • Replaced def.adsrc with pg_get_expr(def.adbin, def.adrelid) (required for Postgres 12) (#106)

  • Replaced c.consrc with pg_get_constraintdef(c.oid) (required for Postgres 12) (#106)

@databases/[email protected]

19 Oct 12:37
e8639a4
Compare
Choose a tag to compare

Breaking Changes

  • Output now requires TypeScript 3.8 or higher (#108)

    This is because we make use of the export type {Name} syntax required to support isolated modules and incremental build.

Bug Fixes

  • Add type keyword to exports to support incremental build & isolated modules (#108)

@databases/[email protected]

19 Oct 11:34
4178ce5
Compare
Choose a tag to compare

Bug Fixes

  • Update pg-schema-introspect to add support for Postgres 12 (#106)

@databases/[email protected]

18 Oct 17:39
e2b05bf
Compare
Choose a tag to compare

Bug Fixes

  • Some import paths were broken after publishing (#103)

@databases/[email protected]

18 Oct 16:29
89456fc
Compare
Choose a tag to compare

New Features

  • Initial release (#101)

    Once you have a schema from @databases/pg-schema-introspect you can pass it to this library to write out TypeScript definitions for all your database tables