D1DatabaseLike
Defined in: types.ts:27
The native Cloudflare D1 binding.
Alchemy’s QueryDatabase client exposes this through its raw Effect, so
a Worker can pass yield* db.raw here. Wrangler’s env.DB satisfies it
directly.
Methods
Section titled “Methods”exec()?
Section titled “exec()?”
optionalexec(query):Promise<unknown>
Defined in: types.ts:29
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<unknown>
prepare()
Section titled “prepare()”prepare(
query):D1StatementLike
Defined in: types.ts:28
Parameters
Section titled “Parameters”string