sailfork / t3code-github / .repos/ alchemy-effect/ packages/ integration-tests/ test/ Cloudflare/ D1/ fixtures/ database.ts

import * as Cloudflare from "@alchemy.run/cloudflare";

/**
 * The single shared D1 database both the effect-worker and the
 * async-worker bind to. The two workers namespace their rows by a
 * `style` column so they can share one physical database without
 * stepping on each other.
 */
export const TestDatabase = Cloudflare.D1.Database("D1BindingDatabase");