I guess "queries" here mean those all-important billable units, not queries, hopefully?
I guess "queries" here mean those all-important billable units, not queries, hopefully?


success: true on UPDATE
is that on purpose?

npm i @cloudflare/d1. There are no other projects in the npm registry using @cloudflare/d1.
wrangler, so you shouldn't need to install it for it to workctx.env object. wrangler.toml for Pages, you pass bindings via the CLI
wrangler d1 execute EmailTracker --command='SELECT * FROM SenderInfo WHERE email = "drnewt536@gmail.com";' fails, yet wrangler d1 execute EmailTracker --command="SELECT * FROM SenderInfo WHERE email = 'drnewt536@gmail.com';" passes"--" to '--'"..." means column, or general database objects - you want '...' for stringsexport default {
async fetch(req, env) {
// ...
const result = await env.D1.exec("SELECT * FROM db;");
// ...
}
}export const onRequestGet = ctx => {
const result = await ctx.env.D1.exec("SELECT * FROM db;");
// ...
};[[d1_databases]]
binding = "DataB"
database_name = "thing"
database_id = "dwadwadwad3213dsfasfdaeiu2"success: true