Will it be a good idea to start building an application with d1 now? Or should we use other dbs?
Will it be a good idea to start building an application with d1 now? Or should we use other dbs?
[mf:err] TypeError: head is not a functionwrangler dev then opening localhost, this is the error

npm i cf-workers-proxy. There are no other projects in the npm registry using cf-workers-proxy.
no such table error. wrangler d1 info shows table count correctly. Any ideas what I'm doing wrong?wrangler dev --remote works, so I'm guessing that this is related to local env./*update your wrangler first*/
>> wrangler update
npm install -g wrangler
>> create new db with beta engine
wrangler d1 create dbname
/*you can use your sqlite3 if you want I had xampp already so*/
make sure to run as admin
C:\xampp\MercuryMail\sqlite3.exe "backup-file-from-cf.sqlite3"
>> sqlite
.output c:/backup.sql
.dump
.exit
>> wrangler
wrangler d1 execute dbname --file="c:\backup.sql"[mf:err] TypeError: head is not a functionnpm i cf-workers-proxyno such tablewrangler d1 infowrangler dev --remote[[d1_databases]]
binding = "DB"
database_name = "<DATABASE_NAME>"
database_id = "<unique-ID-for-your-database>" const value = 0;
let d1Response: any;
await this.state.storage.transaction(async (txn) => {
try {
txn.put('value', this.value);
const stmt = this.db
.prepare(`INSERT INTO items (itemData) VALUES (?) RETURNING *`)
.bind(JSON.stringify({ value }));
d1Response = await stmt.all();
} catch (e) {
console.error(e);
txn.rollback();
throw e;
}
});