Remote / foldkit-remote-drizzle

CountDerived

interface · packages/remote-drizzle/src/bind.ts:123

interface CountDerived<Relation extends PropertyKey = string> {
  readonly relation: Relation
  readonly where?: SQL | undefined
}

A Derived.make member counted over a many relation of its owner: what a join table with no Entity is counted by. A count the Entity can say (Derived.count) takes no entry.

Members

CountDerived.relation

property · packages/remote-drizzle/src/bind.ts:124

readonly relation: Relation

CountDerived.where

property · packages/remote-drizzle/src/bind.ts:126

readonly where?: SQL | undefined

An optional filter on the counted rows.