class PrismaRepository
Since 0.1.0

Repository backed by the Prisma adapter.

Wraps the Prisma client's model operations and exposes them through the standard IRepository interface.

Constructors

PrismaRepository(_dataSource: DataSource)

Type Parameters

Entity extends Record<string, unknown>

Entity shape

Id extends EntityKey = string

Primary key type, constrained to EntityKey

Usage

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