With the GA announcement ^, is there an update on the "group bindings"? Interested for multi tenancy
With the GA announcement ^, is there an update on the "group bindings"? Interested for multi tenancy bindings for D1
const result = await env.DB.prepare(
SELECT *
FROM weekly
WHERE weekNumber = ?1
)
.bind(weekNumber)
.first()result {"_id":1,"weekNumber":3,"topic":"What [object Object]
result {"type":"table","name":"weekly","tbl_name":"weekly","rootpage":7,"sql":"CREATE TABLE weekly (\r\n _id INTEGER PRIMARY KEY AUTOINCREMENT,\r\n weekNumber INTEGER NOT NULL,\r\n topic TEXT NOT NULL\r\n)"}wrangler d1 execute MYDB --file=MYFILE.sql it is suuperr fast,.prepare(..).bind(..).run(..), it takes on average 20 rows/second which is very slow.wrangler?
Give your binding a name under Variable name.

name is imminent)

You can restore a database back to a point in time up to 30 days in the past (Workers Paid plan) or 7 days (Workers Free plan). Refer to Limits for details on Time Travel’s limits.
const result = await env.DB.prepare(
SELECT *
FROM weekly
WHERE weekNumber = ?1
)
.bind(weekNumber)
.first()const result = await env.DB.prepare(
`SELECT *
FROM weekly
WHERE weekNumber = ?1`
)
.bind(weekNumber)
.first()
console.log('result', JSON.stringify(result))result {"type":"table","name":"weekly","tbl_name":"weekly","rootpage":7,"sql":"CREATE TABLE weekly (\r\n _id INTEGER PRIMARY KEY AUTOINCREMENT,\r\n weekNumber INTEGER NOT NULL,\r\n topic TEXT NOT NULL\r\n)"}await db.prepare("select * from notifications where ? = 1")
.bind(name)
.all()select * from notifications where imminent = 1