--local flag and once without incomplete input [code: 7500]CREATE TRIGGER update_channels_updatedAt
AFTER UPDATE ON channels
FOR EACH ROW
BEGIN
UPDATE channels SET updatedAt = CURRENT_TIMESTAMP WHERE _id = NEW._id;
END;.get() method to retrieve a single row in the db. Not that it's the end of the world that I have to do .all()[0] but it seems... weird, that I can't just do db.prepare(blah).bind(somevar).get() ?.first()wrangler d1 create for each one https://developers.cloudflare.com/workers/wrangler/commands/#create
INSERT IGNORE?db.prepare(query).all(params)..first() instead of .get() is a separate "why would this be different" issue. Like, I don't want to sound rude, it just feels like there's no legitimate reason for these things to not use a more standardised sqlite APIdb.prepare(query).all() is valid.--json to wrangler.--local incomplete input [code: 7500]CREATE TRIGGER update_channels_updatedAt
AFTER UPDATE ON channels
FOR EACH ROW
BEGIN
UPDATE channels SET updatedAt = CURRENT_TIMESTAMP WHERE _id = NEW._id;
END;db.prepare(blah).bind(somevar).get()const table = this.#db
.prepare(
"SELECT count(*) FROM sqlite_master WHERE type='table' AND name = ?;",
).bind(this.#name).get();
// vs
const table = this.#db
.prepare(
"SELECT count(*) FROM sqlite_master WHERE type='table' AND name = ?;",
).bind(this.#name).all()[0];