thanks, looks like my databases are running in WNAM... great for european users /s
thanks, looks like my databases are running in WNAM... great for european users /s
too many SQL variables at offset seems d1 supports only 10 parameters, so even simple inserts like this will fail:offset in errors ? syntax error at offset 245 On what line I should look for the error to correct it.
{"D1_RESET_DO":true} Any idea what is this?
Error: D1_TYPE_ERROR: Type 'object' not supported for value '123string,134,123string,0,0.17,comercial@ (...)
wrangler d1 execute appdb-dev --local --file=./1.sqlwrangler d1 execute appdb-dev --local --command="SELECT * FROM User" // worksname = "app-services"
compatibility_date = "2023-12-01"
route = "api.myapp.app/*"
compatibility_flags = ["nodejs_compat"]
[vars]
LOG_LEVEL="debug"
TEST_MODE="TRUE"
kv_namespaces = [
{ binding = "MYAPP_TOKENS", preview_id = "###", id = "###" },
]
[[d1_databases]]
binding = "DB"
database_name = "appdb-dev"
database_id = "###"
preview_database_id = "appdb-dev"
[env.dev]
route = "dev-api.myapp.app/*"FOREIGN KEY constraint failed (Code: 7500)sqlite3 locally) and the actual 'library' itself used by embedders doesn't show that.too many SQL variables at offsetoffsetsyntax error at offset 245Error: D1_TYPE_ERROR: Type 'object' not supported for value '123string,134,123string,0,0.17,comercial@wrangler d1 execute appdb-dev --local --file=./1.sqlwrangler d1 execute appdb-dev --local --command="SELECT * FROM User" name = "app-services"
compatibility_date = "2023-12-01"
route = "api.myapp.app/*"
compatibility_flags = ["nodejs_compat"]
[vars]
LOG_LEVEL="debug"
TEST_MODE="TRUE"
kv_namespaces = [
{ binding = "MYAPP_TOKENS", preview_id = "###", id = "###" },
]
[[d1_databases]]
binding = "DB"
database_name = "appdb-dev"
database_id = "###"
preview_database_id = "appdb-dev"
[env.dev]
route = "dev-api.myapp.app/*"FOREIGN KEY constraint failed (Code: 7500)sqlite3const 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);CREATE TABLE
user (
id TEXT NOT NULL PRIMARY KEY,
username TEXT NOT NULL,
email TEXT NOT NULL,
password_hash TEXT NOT NULL,
created_at INTEGER NOT NULL,
updated_at INTEGER NOT NULL
);
CREATE TABLE
session (
id TEXT NOT NULL PRIMARY KEY,
expires_at INTEGER NOT NULL,
user_id TEXT NOT NULL,
FOREIGN KEY (user_id) REFERENCES user (id)
);