TypeScript
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",
});