Skip to content

Commit

Permalink
Merge pull request #80 from danihengeveld/79-use-drizzlekit
Browse files Browse the repository at this point in the history
Replaced Prisma and Kysely with Drizzle/DrizzleKit
  • Loading branch information
danihengeveld authored Oct 15, 2023
2 parents fc073bc + 1421d40 commit a518180
Show file tree
Hide file tree
Showing 18 changed files with 843 additions and 279 deletions.
14 changes: 14 additions & 0 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Config } from "drizzle-kit";

import * as dotenv from 'dotenv'

// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
dotenv.config({path: ".env.development.local"})

export default {
schema: "./src/db/schema.ts",
driver: "mysql2",
dbCredentials: {
connectionString: process.env.DATABASE_URL as string,
},
} satisfies Config;
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
"scripts": {
"build": "next build",
"dev": "next dev",
"postinstall": "prisma generate",
"lint": "next lint",
"start": "next start"
"start": "next start",
"db:push": "drizzle-kit push:mysql"
},
"dependencies": {
"@clerk/nextjs": "^4.25.4",
"@planetscale/database": "^1.7.0",
"@prisma/client": "^5.4.2",
"@radix-ui/react-avatar": "^1.0.2",
"@radix-ui/react-dropdown-menu": "^2.0.5",
"@radix-ui/react-label": "^2.0.2",
Expand All @@ -34,8 +33,8 @@
"class-variance-authority": "^0.6.0",
"clsx": "^1.2.1",
"date-fns": "^2.30.0",
"drizzle-orm": "^0.28.6",
"formik": "^2.4.2",
"kysely": "^0.25.0",
"kysely-planetscale": "^1.3.0",
"lucide-react": "^0.244.0",
"next": "^13.5.4",
Expand All @@ -58,12 +57,13 @@
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"autoprefixer": "^10.4.14",
"dotenv": "^16.3.1",
"drizzle-kit": "^0.19.13",
"eslint": "^8.36.0",
"eslint-config-next": "^13.2.4",
"postcss": "^8.4.31",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.3.0",
"prisma": "^5.4.2",
"tailwindcss": "^3.3.0",
"typescript": "^5.2.2"
},
Expand Down
Loading

1 comment on commit a518180

@vercel
Copy link

@vercel vercel bot commented on a518180 Oct 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.