You just run the migration command with the `--local` flag.
You just run the migration command with the
--local flag.wrangler d1 execute [queries] or is there some other goto, maybe gui, client that is more friendly?
D1_ERROR: Network connection lost. or D1_ERROR: D1 storage operation exceeded timeout which caused object to be reset. with 1k to 2.5k write request per day.CREATE TABLE IF NOT EXISTS using the D1 client api?idtimeFrom timeTotry{
const stmt = await env.soldb.prepare('CREATE TABLE IF NOT EXISTS Testing (blockId INTEGER PRIMARY KEY, blockTs INTEGER)').run()
console.log(stmt)
}
catch(err){
console.log(err)
}{
success: true,
meta: {
served_by: 'miniflare.db',
duration: 0,
changes: 0,
last_row_id: 0,
changed_db: false,
size_after: 3854336
},
results: []
}const createTable = await env.db.prepare(`
CREATE TABLE IF NOT EXISTS ${tableName} (
id INTEGER PRIMARY KEY AUTOINCREMENT,
blockTs INTEGER,
value TEXT,
INDEX idx_blockTs (blockTs)
)
`).run();