import { EntityManager } from "joist-core"; //#region src/seed.d.ts /** * Seeds your local/test database with data created via the factories. * * Unlike `seed` from `joist-test-utils`, this defaults to the `PostgresDriver`, so you can just * `import { seed } from "joist-orm/pg"` and pass only your seeding function. * * This will delete all data in the database, so is restricted to only `local` and `test` * `NODE_ENV`s. We also assume the project does not require a context to seed. * * @example * ```ts * import { seed } from "joist-orm/pg"; * * seed(async (em) => { * // create your data via factories here * }); * ``` */ declare function seed(fn: (em: E) => Promise): void; //#endregion export { seed }; //# sourceMappingURL=seed.d.mts.map