Skip to content

Commit

Permalink
update pg
Browse files Browse the repository at this point in the history
  • Loading branch information
irfnrdh committed Feb 11, 2024
1 parent f13ff37 commit dcca029
Show file tree
Hide file tree
Showing 3 changed files with 240 additions and 1 deletion.
233 changes: 233 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@nuxtjs/color-mode": "^3.3.2",
"@nuxtjs/tailwindcss": "^6.11.3",
"@sidebase/nuxt-auth": "^0.6.7",
"@types/pg": "^8.11.0",
"@vueuse/core": "^10.7.2",
"autoprefixer": "^10.4.13",
"nuxt": "^3.10.1",
Expand Down
7 changes: 6 additions & 1 deletion server/utils/db.instance.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Sequelize } from "sequelize";

import pg from "pg";

// SQLITE
// export const sequelize = new Sequelize({
Expand All @@ -16,8 +16,13 @@ export const sequelize = new Sequelize({
host: "ep-lingering-smoke-a1v62b72-pooler.ap-southeast-1.aws.neon.tech", // or your PostgreSQL host
port: 5432, // or your PostgreSQL port
username: "default",
dialectModule: pg,
password: "TCOyQm6tM9RV",
database: "verceldb",
define: {
charset: 'utf8mb4',
collate: 'utf8mb4_general_ci',
},
logging: false,
});

Expand Down

0 comments on commit dcca029

Please sign in to comment.