sailfork / t3code-github / .repos/ alchemy-effect/ examples/ cloudflare-effect-sql-d1/ src/ database.ts
import * as Cloudflare from "@alchemy.run/cloudflare";
/**
* A D1 database with hand-written SQL migrations. Files under
* `./migrations` are sorted by numeric prefix and applied in order on
* every deploy; already-applied migrations are skipped.
*/
export const Database = Cloudflare.D1.Database("Database", {
migrations: "./migrations",
});