Skip to content

Commit

Permalink
up drizle (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge authored Oct 16, 2024
1 parent c1fbbf7 commit 51b0657
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
4 changes: 2 additions & 2 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@vercel/postgres": "^0.10.0",
"drizzle-orm": "^0.34.1",
"drizzle-orm": "^0.35.1",
"drizzle-zod": "^0.5.1",
"zod": "catalog:"
},
Expand All @@ -40,7 +40,7 @@
"@acme/prettier-config": "workspace:*",
"@acme/tsconfig": "workspace:*",
"dotenv-cli": "^7.4.2",
"drizzle-kit": "^0.25.0",
"drizzle-kit": "^0.26.2",
"eslint": "catalog:",
"prettier": "catalog:",
"typescript": "catalog:"
Expand Down
6 changes: 5 additions & 1 deletion packages/db/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ import { drizzle } from "drizzle-orm/vercel-postgres";

import * as schema from "./schema";

export const db = drizzle(sql, { schema, casing: "snake_case" });
export const db = drizzle({
client: sql,
schema,
casing: "snake_case",
});
26 changes: 13 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 51b0657

Please sign in to comment.