@kittlekit/crud-drizzle-postgres
v0.1.1
Published
Drizzle Postgres helpers for Kittlekit CRUD packages
Readme
@kittlekit/crud-drizzle-postgres
Drizzle + PostgreSQL CRUD execution helpers for the Kittlekit CRUD package family.
What This Package Is
Use this package when your persistence layer is based on:
- Drizzle ORM
- PostgreSQL
This package mirrors the MySQL package but targets Postgres table types and query helpers.
Install
npm install @kittlekit/crud-drizzle-postgres @kittlekit/crud-core drizzle-orm uuidv7Main Exports
Query layer
resolveCrudListQueryCrudListQuery
Read layer
listCrudRecordsgetCrudRecordByIdgetCachedCrudDetail
Mutation layer
createCrudMutationupdateCrudMutationdeleteCrudMutation
Adapter Model
Like the MySQL package, this package expects injected adapters for:
- cache read/tag behavior
- event bus behavior
- audit logging
- diff calculation
- cache key invalidation
Relationship to Other Packages
crud-core -> crud-drizzle-postgresOut of Scope
- route registration
- auth/session middleware
- app-owned event/audit/cache services
Publish
npm run build --workspace @kittlekit/crud-drizzle-postgres
npm publish --workspace @kittlekit/crud-drizzle-postgres --access publicExamples
- smoke setup:
sandbox/crud-smoke
Release Notes
0.1.0
- first public extraction of Drizzle Postgres query/read/mutation helpers
