Not currently. They did mention this was a possibility in the future, though
Not currently. They did mention this was a possibility in the future, though
CREATE TRIGGER statements work.
exec.ts, I will want to use this script for seeding against my local environment.npx tsx exec.tswrangler d1 execute command. The Miniflare in the exec.ts doesn't acknowledge the “users” table..wrangler/state/v3/d1/miniflare-D1DatabaseObject has only one set of files.

date, what's the output?import { Log, LogLevel, Miniflare } from "miniflare";
const nullScript =
"export default {fetch: () => new Response(null, {status:404})};";
const mf = new Miniflare({
modules: true,
script: nullScript,
d1Databases: { DB: "xxx-xxx" },
log: new Log(LogLevel.INFO),
});
const env = await mf.getBindings();
const { results } = await (env.DB as D1Database)
.prepare(`PRAGMA table_list;`)
.all();
console.log(results);
await mf.dispose();CREATE TABLE Players (
player_id INT PRIMARY KEY,
player_name VARCHAR(50) NOT NULL,
server_id INT,
FOREIGN KEY (server_id) REFERENCES Servers(server_id)
);CREATE TRIGGER