https://github.com/naturalcycles/datastore-lib
Opinionated library to work with Google Datastore
https://github.com/naturalcycles/datastore-lib
dao datastore model typescript
Last synced: 23 days ago
JSON representation
Opinionated library to work with Google Datastore
- Host: GitHub
- URL: https://github.com/naturalcycles/datastore-lib
- Owner: NaturalCycles
- Created: 2019-03-08T22:58:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-05T20:23:13.000Z (28 days ago)
- Last Synced: 2025-04-05T21:24:37.315Z (27 days ago)
- Topics: dao, datastore, model, typescript
- Language: TypeScript
- Size: 2.46 MB
- Stars: 1
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
## @naturalcycles/datastore-lib
> Opinionated library to work with Google Datastore
[](https://www.npmjs.com/package/@naturalcycles/datastore-lib)
[](https://circleci.com/gh/NaturalCycles/datastore-lib)
[](https://github.com/prettier/prettier)# Features
- BaseDao abstract class for extension
- DBM / BM / FM models, conversion, validation
- DB fields convention (`created`, `updated`, `_ver`)
- Simplified ID handling (always String ids)
- Simple and powerful In-Memory Datastore emulator for faster and safer unit testing (!)
- Streaming with RxJS Observable interface
- Anonymization hook to be able to plug your implementation (privacy by design)
- ...# Packaging
- `engines.node >= 10.13`: Latest Node.js LTS
- `main: dist/index.js`: commonjs, es2018
- `types: dist/index.d.ts`: typescript types
- `/src` folder with source `*.ts` files included