D1PreparedStatement
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:8061
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new D1PreparedStatement():
D1PreparedStatement
Returns
Section titled “Returns”D1PreparedStatement
Methods
Section titled “Methods”all<
T>():Promise<D1Result<T>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:8066
Type Parameters
Section titled “Type Parameters”T = Record<string, unknown>
Returns
Section titled “Returns”Promise<D1Result<T>>
bind()
Section titled “bind()”bind(…
values):D1PreparedStatement
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:8062
Parameters
Section titled “Parameters”values
Section titled “values”…unknown[]
Returns
Section titled “Returns”D1PreparedStatement
first()
Section titled “first()”Call Signature
Section titled “Call Signature”first<
T>(colName):Promise<null|T>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:8063
Type Parameters
Section titled “Type Parameters”T = unknown
Parameters
Section titled “Parameters”colName
Section titled “colName”string
Returns
Section titled “Returns”Promise<null | T>
Call Signature
Section titled “Call Signature”first<
T>():Promise<null|T>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:8064
Type Parameters
Section titled “Type Parameters”T = Record<string, unknown>
Returns
Section titled “Returns”Promise<null | T>
Call Signature
Section titled “Call Signature”raw<
T>(options):Promise<[string[],...T[]]>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:8067
Type Parameters
Section titled “Type Parameters”T = unknown[]
Parameters
Section titled “Parameters”options
Section titled “options”columnNames
Section titled “columnNames”true
Returns
Section titled “Returns”Promise<[string[], ...T[]]>
Call Signature
Section titled “Call Signature”raw<
T>(options?):Promise<T[]>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:8070
Type Parameters
Section titled “Type Parameters”T = unknown[]
Parameters
Section titled “Parameters”options?
Section titled “options?”columnNames?
Section titled “columnNames?”false
Returns
Section titled “Returns”Promise<T[]>
run<
T>():Promise<D1Result<T>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:8065
Type Parameters
Section titled “Type Parameters”T = Record<string, unknown>
Returns
Section titled “Returns”Promise<D1Result<T>>