How did you get syntax highlighting on that example code?
How did you get syntax highlighting on that example code?

Do not know how to serialize a BigIntD1_ERROR: SqliteError: no such table: Casts
npx wrangler@3.4 <your commands> and report backD1Database wrangler deploy this.client.prepare is not a functionwrangler commands you're invoking? Here's a working Remix demo app: https://github.com/elithrar/remix-plus-d1
test testDo not know how to serialize a BigIntD1_ERROR: SqliteError: no such table: Castsnpx wrangler@3.4 <your commands>D1Databasethis.client.prepare is not a functionCREATE TABLE Casts (
id int8 NOT NULL PRIMARY KEY,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
deleted_at timestamp,
timestamp timestamp NOT NULL,
fid int8 NOT NULL,
hash bytea NOT NULL,
parent_hash bytea,
parent_fid int8,
parent_url text,
text text NOT NULL,
embeds text NOT NULL DEFAULT '{}',
mentions int8 NOT NULL DEFAULT '{}',
mentions_positions int2 NOT NULL DEFAULT '{}'
);const result = req.context.db.prepare("SELECT * from accounts");
const rows = await result.all();
console.log(rows);Error: D1_ERROR
at D1Database._send (C:\Users\hasx\OneDrive\Dokumentumok\Rókales\foxadopt\node_modules\@miniflare\d1\src\d1js.ts:148:13)
at D1PreparedStatement.all (C:\Users\hasx\OneDrive\Dokumentumok\Rókales\foxadopt\node_modules\@miniflare\d1\src\d1js.ts:242:7)
... 7 lines matching cause stack trace ...
at C:\Users\hasx\AppData\OneDrive\Dokumentumok\Rókales\foxadopt\functions\[[path]].js:3446:92 {
[cause]: Error: Error: SqliteError: no such table: accounts