class DrizzleRepository
Since 0.1.0

Repository backed by the Drizzle adapter.

Wraps Drizzle query builder operations and exposes them through the standard IRepository interface.

Constructors

DrizzleRepository(_dataSource: DataSource)

Type Parameters

Entity extends Record<string, unknown>

Entity shape

Id extends EntityKey = string

Primary key type, constrained to EntityKey

Usage

import { DrizzleRepository } from "database-plugin/src/index.ts";