Skip to content

Commit

Permalink
Fixed .mock in postgres-js
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukairo-02 committed Dec 8, 2024
1 parent 7525e49 commit 734021d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drizzle-orm/src/postgres-js/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ export namespace drizzle {
): PostgresJsDatabase<TSchema> & {
$client: '$client is not available on drizzle.mock()';
} {
return construct({} as any, config) as any;
return construct({
options: {
parsers: {},
serializers: {},
},
} as any, config) as any;
}
}

0 comments on commit 734021d

Please sign in to comment.