@pipeline-builder/pipeline-data
v3.3.29
Published
Database layer for Pipeline Builder: Drizzle ORM schemas, connection management, query builders, and the generic CrudService base class with multi-tenant access control.
Downloads
8,117
Maintainers
Readme
@pipeline-builder/pipeline-data
Database layer for Pipeline Builder: Drizzle ORM schemas, connection management, query builders, and the generic CrudService base class with built-in multi-tenant access control used by every backend service.
Key Exports
Connection
getConnection,db— Shared PostgreSQL pool and Drizzle clientConnectionRetryStrategy— Retry logic for transient connection failures
Schemas
schema— All Drizzle table definitions (pipeline, plugin, compliance, events, …)- Entity types:
Pipeline,Plugin,ComplianceRule,PipelineEvent,Message
CrudService
CrudService<TEntity, TFilter, TInsert, TUpdate>— Abstract base providingfind,findById,create,update,delete,findPaginated, plus per-entity lifecycle hooks and multi-tenant access controlFilterBuilder— Type-safe pagination/sort/filter builder
Query Builders
BaseQueryBuilder— Generic insert/update/deletepipelineBuilder,pluginBuilder— Entity-specific query helpers
Helpers
withTimestamps,softDelete— Common column decorators
License
Apache-2.0. See LICENSE.
