wrangler.toml config? wrangler.toml config file and the CLI, the binding name seems to be used more like an environment variable that you can then use in your worker.1/31/24, 3:32 PM
npx wrangler d1 info <db-name>
SELECT * FROM sqlite_master; or use https://github.com/nora-soderlund/cloudflare-d1-backupsmax(indexed_column) should save some reads (i think)[env.staging]
d1_databases = [
{ binding = "DB", database_name = "staging", database_id = "unique_db_id_1", migrations_dir = "migrations", preview_database_id = "DB_STAGING" },
]
workers_dev = true
[env.production]
d1_databases = [
{ binding = "DB", database_name = "production", database_id = "unique_db_id_2", migrations_dir = "migrations"},
]max(indexed_column)