Releases: ForbesLindesay/atdatabases
@databases/[email protected]
Bug Fixes
-
Fix
insertOrUpdate
,insertOrIgnore
andupdate
(#110)All methods now also have at least one test covering them.
@databases/[email protected]
Bug Fixes
- Allow re-exporting table types (#109)
@databases/[email protected]
New Features
- Initial release (#105)
@databases/[email protected]
@databases/[email protected]
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]
Breaking Changes
-
Constraint.checkConstraint
was renamed toConstraint.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
@databases/[email protected]
@databases/[email protected]
Bug Fixes
- Update pg-schema-introspect to add support for Postgres 12 (#106)
@databases/[email protected]
Bug Fixes
- Some import paths were broken after publishing (#103)
@databases/[email protected]
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