Skip to content

Commit

Permalink
[examples/basics] update for accel-record 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
koyopro committed Feb 4, 2025
1 parent 8b4a363 commit b7d4505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/basics/src/models/_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ declare module "accel-record" {
type Meta<T> = any;

export const schemaDir = "../../db/";
export const sourceFilePath = "../../db/schema/main.prisma";
export const dataSource = {
name: "db",
provider: "sqlite",
Expand All @@ -38,4 +39,4 @@ export const dataSource = {
* Retrieves the database connection settings based on the Prisma schema file.
*/
export const getDatabaseConfig = () =>
generateDatabaseConfig(dataSource, import.meta.url, schemaDir);
generateDatabaseConfig(dataSource, import.meta.url, schemaDir, sourceFilePath);

0 comments on commit b7d4505

Please sign in to comment.