Skip to content

Commit be94c60

Browse files
MichielDeMeycemremengu
authored andcommitted
Bring your own node-postgres (#43)
* Bring your own node-postgres version * Updated installation instructions * Revert package version number
1 parent 97ff8ce commit be94c60

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Under the hood the [node-postgres](https://github.com/brianc/node-postgres) is u
99

1010
## Install
1111
```
12-
npm i fastify-postgres --save
12+
npm i pg fastify-postgres --save
1313
```
1414
## Usage
1515
Add it to you project with `register` and you are done!

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@
2727
},
2828
"homepage": "https://github.com/fastify/fastify-postgres#readme",
2929
"dependencies": {
30-
"fastify-plugin": "^1.4.0",
31-
"pg": "^7.8.0"
30+
"fastify-plugin": "^1.4.0"
3231
},
3332
"devDependencies": {
3433
"fastify": "^1.13.4",
34+
"pg": "*",
3535
"pg-native": "^3.0.0",
3636
"standard": "^12.0.0",
3737
"tap": "^12.5.2"
38+
},
39+
"peerDependencies": {
40+
"pg": ">=6.0.0"
3841
}
3942
}

0 commit comments

Comments
 (0)