DrizzleQueryBuilder
Defined in: packages/client/src/index.ts:1243
Minimal shape of a Drizzle select builder: inspectable via .toSQL() and awaitable for its rows.
Extends
Section titled “Extends”PromiseLike<TRows>
Type Parameters
Section titled “Type Parameters”TRows extends readonly unknown[]
Methods
Section titled “Methods”then()
Section titled “then()”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.
Type Parameters
Section titled “Type Parameters”TResult1
Section titled “TResult1”TResult1 = TRows
TResult2
Section titled “TResult2”TResult2 = never
Parameters
Section titled “Parameters”onfulfilled?
Section titled “onfulfilled?”((value) => TResult1 | PromiseLike<TResult1>) | null
The callback to execute when the Promise is resolved.
onrejected?
Section titled “onrejected?”((reason) => TResult2 | PromiseLike<TResult2>) | null
The callback to execute when the Promise is rejected.
Returns
Section titled “Returns”PromiseLike<TResult1 | TResult2>
A Promise for the completion of which ever callback is executed.
Inherited from
Section titled “Inherited from”PromiseLike.then
toSQL()
Section titled “toSQL()”toSQL():
object
Defined in: packages/client/src/index.ts:1244
Returns
Section titled “Returns”object
params
Section titled “params”params:
unknown[]
sql:
string