What does the meta of the D1 result give for timing?
What does the meta of the D1 result give for timing?


--remote to use the remote resources which does cost or add your data manually locally/help commands and such, so it's not clear that queries can be made here
does D1 require ES Modules?Yep
npx wrangler d1 execute deebee --local --file=./schema.sqlworker.ts using addEventListener or export default?[[d1_databases]] it then displayes a warning saying that I have to attach env.dev to it, but it doesn't bind it anyway
/helpnpx wrangler d1 execute deebee --local --file=./schema.sqlmain = "worker.ts"
account_id = "123" # Cloudflare account id
compatibility_date = "2023-10-13"
[env.prod]
name = "road2crypto-router-prod"
routes = [
{ pattern = "api.road2crypto.com", custom_domain = true }
]
[env.dev]
name = "road2crypto-router-dev"
routes = [
{ pattern = "api.dev.road2crypto.com", custom_domain = true }
][[env.dev.d1_databases]]
binding = "DB" # i.e. available in your Worker on env.DB
database_name = "road2crypto-db"
database_id = "123"✘ [ERROR] A request to the Cloudflare API (/accounts/123/workers/scripts/road2crypto-router-dev) failed.
D1 bindings require module-format workers. [code: 10021][[d1_databases]]env.devaddEventListener("fetch", (event: FetchEvent) => {
event.respondWith(handleRequest(event.request));
});
async function handleRequest(request: Request): Promise<Response> {
return handleResponse(request);
}SELECT json_valid(SELECT value FROM sessions WHERE key = 'test');SELECT json_valid((SELECT value FROM sessions WHERE key = 'test'));