A backend database library meant to actually interact with various databases in personal projects
npm install @aneuhold/be-ts-db-lib

This is used to actually interact with databases in personal projects.
To add to a repo, follow the instructions below for your environment:
Run pnpm add @aneuhold/be-ts-db-lib
The below instructions still allow for things like Renovate to work, and normal commands with pnpm such as pnpm up.
1. Add the required JSR configuration to a .npmrc file if not there already:
```
@jsr:registry=https://npm.jsr.io
pnpm add @jsr/aneuhold__be-ts-db-lib
1. Add the package with
Run deno add jsr:@aneuhold/be-ts-db-lib
Pull in one of the services and use it like so:
`ts
import { DocumentService } from '@aneuhold/be-ts-db-lib';
// If using Node with JSR
// import { DocumentService } from '@jsr/aneuhold__be-ts-db-lib';
export default function deepCopy() {
DocumentService.deepCopy({ someProperty: 'someString' });
}
`
See full documentation on usage at JSR!
Possible next tasks:
- Make the validators have an updateMany validation that is more performant.
1. Copy an existing one over
1. Create an associated validator
1. Make sure the validator is registered in the DbSchemaUpdater so the DB can be validated when needed.
If any of the base document types are updated, make sure to run pnpm validate to ensure that the DB is up-to-date as well.
Go ahead and run these as code in a test in the BaseRepository.spec.ts` file.