why is the `first` return `Record<string, T>` but not `T`? 🤔
why is the 
first return Record<string, T> but not T? firstRecord<string, T>T4.20230518.0:DROP TABLE IF EXISTS [table001] statement, and wrangler returns an error no such table: main.[table001]?
main.table_name. Just table_name.
DROP TABLE IF EXISTS runs fine in DBeaver, but not wrangler@3.20
wrangler d1 execute report this.
--command='PRAGMA table_list'wrangler d1 execute <db> --command='PRAGMA table_list' --local--local is local. If you don't pass --local, and run wrangler d1 execute [...] execute DB_NAME --file=export.sql to import your old database.d1 release of the wrangler branch as it hasn't been merged into a release yet. If you do npx wrangler@d1 d1 time-travel info <db> then I believe it should workwrangler@d1 branch. It definitely works. I am using the same public version as everyone else. But also note that this isn’t final - I’d suggest holding off until we officially release it if you rely on your database.vite dev and the best I could find is re-running the production build. https://discord.com/channels/595317990191398933/1042974692186804295/1048148731670835290platform parameter needs to be able to receive the D1 client library when developing locally: https://github.com/sveltejs/kit/issues/4292--d1 flag to set up the database binding locally, but I assume that's for the wrangler CLI and not Vite.platform object and the APIs they need.4.20230518.0DROP TABLE IF EXISTS [table001]no such table: main.[table001]?main.table_nametable_nameDROP TABLE IF EXISTSwrangler d1 execute--command='PRAGMA table_list'wrangler d1 execute <db> --command='PRAGMA table_list' --local--local--localwrangler d1 execute [...]execute DB_NAME --file=export.sqld1npx wrangler@d1 d1 time-travel info <db>wrangler@d1vite devplatformplatform--d1wranglerdeclare abstract class D1PreparedStatement {
bind(...values: any[]): D1PreparedStatement;
first<T = unknown>(colName?: string): Promise<T>;
run<T = unknown>(): Promise<D1Result<T>>;
all<T = unknown>(): Promise<D1Result<T>>;
raw<T = unknown>(): Promise<T[]>;
}