Skip to content

Releases: ForbesLindesay/atdatabases

@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

@databases/[email protected]

18 Oct 17:19
8063f6b
Compare
Choose a tag to compare

Bug Fixes

  • Remove "private" in package.json so it is published to npm (#102)

@databases/[email protected]

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

Breaking Changes

  • @databases/pg-schema has been renamed to @databases/pg-schema-introspect (#101)

    It now finally has a public API that can be called to retrieve a JSON representation of a Postgres database schema that is rich in detail. This is designed to work with the various other @databases/pg-* packages. A future package under the @databases/pg-schema name will provide type safe access to Postgres databases using these generated schemas.

Bug Fixes

  • Table names and field names are now always alphabetically sorted (#101)

    This was the only way to make the output from introspect stable enough to be useful.

@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)

    This CLI lets you generate a folder full of types for all your database tables in Postgres.

@databases/[email protected]

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

Breaking Changes

  • Completely re-written (#96)

    This is an all new interactive CLI and also an all new TypeScript API.