Setu-TS
    Preparing search index...

    Class PrismaRepository<Entity, Id>

    Repository backed by the Prisma adapter.

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

    0.1.0

    Type Parameters

    • Entity extends Record<string, unknown>

      Entity shape

    • Id extends EntityKey = string

      Primary key type, constrained to EntityKey

    Hierarchy (View Summary)

    Index
    _dataSource: IDataSource

    The underlying data source for this entity.

    • Find a page of entities by cursor pagination.

      Refuses by name with UnsupportedQueryFeatureError when the bound data source does not expose a findPage member — which is true for every shipped adapter until the milestone that implements cursor paging on that backend. Absence means "cannot page by cursor", never "there are no more rows".

      Parameters

      • options: FindOptions

        Find options, optionally carrying a cursor

      Returns Promise<Page<Entity>>

      The page of entities plus a nextCursor

      When the data source lacks findPage

      When the query carries both a non-zero offset and a cursor (§3.10 — rejected, never a synchronous throw)