had anyone setup serverless framework with D1?
had anyone setup serverless framework with D1?

--experimental-backend and want to try D1's new Time Travel feature — you now can. This is a work-in-progress but sharing here. This preview branch may break at any time.npx wrangler@d1 d1 time-travel restore DB_NAME --timestamp=(unix timestamp|RFC3339 timestamp) to restore a database to any minute within the last 30 days.d1 time-travel restore DB_NAME overwrites your existing database (with confirmation). In the future, we'll allow you to fork and/or clone to a new DB or over the top of an existing database.bootstrap.sql / db-setup.sql similar to the one in the tutorial, executing that with fake data, and going on from there.wrangler.toml with a preview_database_id key that maps to the same name used for --d1=<BINDING> you pass to wrangler pages dev wrangler d1 commands with the --local flag against that local database to seed it / run migrations / etc - e.g. wrangler d1 execute db-name --file=seed.sql --local--d1=BINDING_NAME to any wrangler pages dev commands so that Pages references the same local DB.wrangler.toml doesn't need anything more than just a [[d1_database]] definition: e.g. https://github.com/elithrar/remix-plus-d1/blob/main/wrangler.toml#L1-L5--local some is not. My expectation is all should default to --local and --remote when needed.
wrangler d1 execute: (some details redacted)error.cause.message as well - https://developers.cloudflare.com/d1/platform/client-api/#errors
INSERT operation with fewer than 20 rows, so I can't imagine it was failing due to any kind of size limit
Error: D1_ERROR: Error: Network connection lost. errors with fairly simple (yet critical) queries my worker is running. The DB is using the experimental d1 backend. Is there a tried and true way to get to the bottom of why this is happening?wrangler d1 execute), which allows more granular control than the Ui in the dashboard, and repeatable creations.[[d1_databases]]
binding="DB"
database_name = "mydbname"
database_id = "db id string from the dashboard"# This will yell Unknown argument: local
wrangler d1 create SUBSCRIPTIONS --local
# That's OK, it's local by default so I try
wrangler d1 create SUBSCRIPTIONS
# Then migrate...
wrangler d1 migrations apply SUBSCRIPTIONS
# Then run the app and got...
Uncaught (async) Error: D1_ERROR: Error: SqliteError: no such table: Subscriptions
# So i realized that I will need --local for migration (Took me an hour)
wrangler d1 migrations apply SUBSCRIPTIONS --local# local
wrangler d1 create SUBSCRIPTIONS
wrangler d1 migrations apply SUBSCRIPTIONS
# remote
wrangler d1 create SUBSCRIPTIONS --remote
wrangler d1 migrations apply SUBSCRIPTIONS --remote✘ [ERROR] A request to the Cloudflare API (/accounts/<ACCOUNT_ID>/d1/database/<DATABASE_ID>/query) failed.
Internal error: Error sending request to D1 for database <DATABASE_ID>
[code: 7501]Error: D1_ERROR: Error: Network connection lost.d1