QueryBuilder
QueryBuilder<
TTable,TSchema> =object
Defined in: packages/db/src/types.ts:259
Type Parameters
Section titled “Type Parameters”TTable
Section titled “TTable”TTable extends DrizzleTable = DrizzleTable
TSchema
Section titled “TSchema”TSchema extends Record<string, unknown> = Record<string, never>
Properties
Section titled “Properties”findFirst()
Section titled “findFirst()”findFirst: <
TConfig,TRow>(options?) =>Operation<WithCan<TRow> |undefined>
Defined in: packages/db/src/types.ts:266
Type Parameters
Section titled “Type Parameters”TConfig
Section titled “TConfig”TConfig extends FindFirstOptions = Record<string, never>
TRow = InferQueryResult<TSchema, TTable, TConfig>
Parameters
Section titled “Parameters”options?
Section titled “options?”TConfig
Returns
Section titled “Returns”Operation<WithCan<TRow> | undefined>
findMany()
Section titled “findMany()”findMany: <
TConfig,TRow>(options?) =>Operation<WithCan<TRow>[]>
Defined in: packages/db/src/types.ts:263
Type Parameters
Section titled “Type Parameters”TConfig
Section titled “TConfig”TConfig extends FindManyOptions = Record<string, never>
TRow = InferQueryResult<TSchema, TTable, TConfig>
Parameters
Section titled “Parameters”options?
Section titled “options?”TConfig
Returns
Section titled “Returns”paginate()
Section titled “paginate()”paginate: <
TRow>(params,options?) =>Operation<CursorPage<TRow>> |Operation<OffsetPage<TRow>>
Defined in: packages/db/src/types.ts:269
Type Parameters
Section titled “Type Parameters”TRow = InferRow<TTable>
Parameters
Section titled “Parameters”params
Section titled “params”options?
Section titled “options?”Returns
Section titled “Returns”Operation<CursorPage<TRow>> | Operation<OffsetPage<TRow>>