Skip to content

DrizzleQueryBuilder

Defined in: packages/client/src/index.ts:1243

Minimal shape of a Drizzle select builder: inspectable via .toSQL() and awaitable for its rows.

  • PromiseLike<TRows>

TRows extends readonly unknown[]

then<TResult1, TResult2>(onfulfilled?, onrejected?): PromiseLike<TResult1 | TResult2>

Defined in: node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1542

Attaches callbacks for the resolution and/or rejection of the Promise.

TResult1 = TRows

TResult2 = never

((value) => TResult1 | PromiseLike<TResult1>) | null

The callback to execute when the Promise is resolved.

((reason) => TResult2 | PromiseLike<TResult2>) | null

The callback to execute when the Promise is rejected.

PromiseLike<TResult1 | TResult2>

A Promise for the completion of which ever callback is executed.

PromiseLike.then


toSQL(): object

Defined in: packages/client/src/index.ts:1244

object

params: unknown[]

sql: string