Skip to content

Commit

Permalink
docs(readme): add $config usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiin committed Sep 18, 2022
1 parent c48f18b commit a333fd2
Show file tree
Hide file tree
Showing 5 changed files with 455 additions and 443 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"Pgpromise"
]
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ import { NestPgpromiseModule } from 'nestjs-pgpromise';
export class AppModule {}
```

Note: You can then access the underlying PGP object through the $config property, for example:
```javascript
new this.pg.$config.pgp.helpers.ColumnSet(['col1', 'col2']);
```

You can find the details about them in the [pg-promise](https://vitaly-t.github.io/pg-promise/index.html) documentation

## Contributors ✨
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,30 @@
"@nestjs/core": ">7.0.0"
},
"dependencies": {
"pg-promise": "^10.11.1"
"pg-promise": "^10.12.0"
},
"devDependencies": {
"@nestjs/common": "^9.0.8",
"@nestjs/core": "^9.0.8",
"@nestjs/platform-express": "^9.0.8",
"@nestjs/testing": "9.0.8",
"@types/express": "4.17.13",
"@types/jest": "28.1.6",
"@types/node": "18.6.4",
"@nestjs/common": "^9.0.11",
"@nestjs/core": "^9.0.11",
"@nestjs/platform-express": "^9.0.11",
"@nestjs/testing": "9.0.11",
"@types/express": "4.17.14",
"@types/jest": "29.0.3",
"@types/node": "18.7.18",
"@types/supertest": "2.0.12",
"cz-conventional-changelog": "3.3.0",
"husky": "^8.0.1",
"jest": "28.1.3",
"jest": "29.0.3",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.5.6",
"supertest": "6.2.4",
"ts-jest": "28.0.7",
"ts-jest": "29.0.1",
"ts-node": "10.9.1",
"tsconfig-paths": "4.1.0",
"tslint": "6.1.3",
"typescript": "4.7.4"
"typescript": "4.8.3"
},
"jest": {
"moduleFileExtensions": [
Expand Down
Loading

0 comments on commit a333fd2

Please sign in to comment.