Package Exports
- @aneuhold/core-ts-db-lib
- @aneuhold/core-ts-db-lib/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aneuhold/core-ts-db-lib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Personal Core Database Library
This is used to export types used in various places for database interactions in personal projects.
Document structure
Project-specific documents can be held in a single collection. So those should inherit from the BaseDocumentWithType class.
When different document types are held under a specific collection, they should get their own folder.
Updating an existing document
If a property is being moved or a new required property is added, then take the following steps
- Update the document
- Update the validator
- Push the changes to NPM
- Go to
be-ts-db-liband update the versions there withyarn upgrade:core - Update the migration service in that repo and double check it looks okay
- Run the migration with
yarn migrate:drythenyarn migrate - Run validation to ensure everything is alright with
yarn validate:drythenyarn validateif needed - Run tests
- Push a new version of the
be-ts-db-libto NPM - Pull the new versions into
digital-ocean-functionsand deploy - Pull the new versions into
core-ts-api-liband push to NPM - Pull the new versions into any relevant frontends and deploy