I also don’t understand if you are saying the curl works or not. Does it work?
I also don’t understand if you are saying the curl works or not. Does it work?
cf script or the database ID there’s not much we can do to help. Are you running an old alpha database at all? (see the docs for instructions on how to discern)default current_timestamp and it is working wellIf the default value of a column is CURRENT_TIME, CURRENT_DATE or CURRENT_TIMESTAMP, then the value used in the new row is a text representation of the current UTC date and/or time. For CURRENT_TIME, the format of the value is "HH:MM:SS". For CURRENT_DATE, "YYYY-MM-DD". The format for CURRENT_TIMESTAMP is "YYYY-MM-DD HH:MM:SS".from https://www.sqlite.org/lang_createtable.html
INTEGER and maintain the value by code logic..wrangler d1 info command. https://developers.cloudflare.com/workers/wrangler/commands/#info
too many SQL variables at offset seems d1 supports only 10 parameters, so even simple inserts like this will fail:const sqlite = new Database("db.sqlite");
const db = drizzle<typeof schema>(sqlite, { schema });
const books = new Array(35).fill({}).map((b, i) => ({
id: i.toString(),
title: "The Great Gatsby",
description: "A book about a rich guy",
}));
await db.insert(schema.books).values(books);cf