So if a method on the worker api existed named db.foobar() then the endpoint /query/foobar would als
So if a method on the worker api existed named db.foobar() then the endpoint /query/foobar would also exist?


D1_DUMP_ERROR: Status + 404 when I call that endpoint


app.get('/posts/:lang/:slug/comments', async c => {
const { results } = await c.env.comDB.prepare();
return c.text(results, 200);
}
—local flag
.all() at the end of your prepare in order to use the statementError: D1_TYPE_ERROR: Type 'boolean' not supported for value 'true'email_verified BOOLEAN DEFAULT 0,true use 1 for your SQL queryMaximum arguments per SQL function 32D1_DUMP_ERROR: Status + 404INSERT INTO 'tablename' ('column1', 'column2') VALUES
('data1', 'data2'),
('data3', 'data4'),
('data5', 'data6'),
('data7', 'data8');`app.get('/posts/:lang/:slug/comments', async c => {
const { results } = await c.env.comDB.prepare();
return c.text(results, 200);
}—local.all()Error: D1_TYPE_ERROR: Type 'boolean' not supported for value 'true'email_verified BOOLEAN DEFAULT 0, --data '{
"params": [
"a",
"b",
"c",
"d",
"e",
"a2",
"b2",
"c2",
"d2",
"e2"
],
"sql": "INSERT INTO myTable (f1, f2, f3, f4, f5) VALUES (?, ?, ?, ?, ?), (?, ?, ?, ?, ?);"
}'const dump = await c.env.DB.dump();
return new Response(dump, {
status: 200,
headers: {
'Content-Type': 'application/octet-stream',
'Content-Disposition': 'attachment; filename="sqlite.db"',
}
});