Is there a way to Duplicate a D1 (including data) via APICall or CLI?
Is there a way to Duplicate a D1 (including data) via APICall or CLI?
Hi im a noob to d1 and my biggest concern is obviously avoiding something like tea app disaster.What is the "tea app disaster"?
What is the "tea app disaster"?Recent data breach from an app called Tea: https://www.bbc.com/news/articles/c7vl57n74pqo



"db:push": "drizzle-kit push --config=./drizzle.config.ts",

Error: D1_ERROR: Internal error while starting up D1 DB storage caused object to be reset.import { defineConfig } from "drizzle-kit";
import { config } from "dotenv";
config({
path: ".env.stage"
});
export default defineConfig({
schema: ["./src/app/schema.ts", "./src/app/auth-schema.ts"],
out: "./drizzle/app",
dialect: "sqlite",
driver: "d1-http",
dbCredentials: {
accountId: process.env.CF_ACCOUNT_ID,
databaseId: process.env.CF_DATABASE_ID,
token: process.env.CF_TOKEN,
url: ""
}
});Error: D1_ERROR: Internal error while starting up D1 DB storage caused object to be reset.