Use the API instead and you should be able to
Use the API instead and you should be able to
npx wrangler d1 export can I blacklist a specific table (migrations)?--table ? From the docs it seem that you can either export all tables or only one specific. I would like all but migrations.export && execute but migrations mess everything up ✘ [ERROR] UNIQUE constraint failed: d1_migrations.id

user_id ?
execute or with migrations, it outputs this:--file) and as a command (--command "CREATE TRIGGER delete_item_tags after delete on list_item begin DELETE FROM list_item_tags WHERE item_id = OLD.id; END;")begin fully caps, i.e BEGINBEGIN (case-sensitive) to see if it's a compound statement.
d1_ btw5/22/24, 2:51 PM
npx wrangler d1 export--tableexport && execute✘ [ERROR] UNIQUE constraint failed: d1_migrations.idD1_ERROR: D1 storage operation exceeded timeout which caused object to be reset.export const getUser = async (
env: Bindings,
userId: number
): Promise<Resource | null> => {
const sqlQuery = env.DB.prepare(
`SELECT * FROM Users WHERE user_id = ?`
).bind(userId);
return await sqlQuery.first();
};user_idexecute--file--command "CREATE TRIGGER delete_item_tags after delete on list_item begin DELETE FROM list_item_tags WHERE item_id = OLD.id; END;"beginBEGINBEGINd1_"db:export": "npx wrangler d1 export db_name --remote --no-schema --output export.sql && npx wrangler d1 execute db_name --file=export.sql"✘ [ERROR] incomplete inputCREATE TRIGGER delete_item_tags
AFTER DELETE ON list_item
begin
DELETE FROM list_item_tags
WHERE item_id = OLD.id;
END;