@@ -24,7 +24,7 @@ transact: a utility to perform multiple queries _with_ a transaction
2424
2525Example:
2626``` js 
27- const  fastify  =  require (' fastify' 
27+ const  fastify  =  require (' fastify' () 
2828
2929fastify .register (require (' fastify-postgres' 
3030  connectionString:  ' postgres://postgres@localhost/postgres' 
@@ -54,7 +54,7 @@ fastify.listen(3000, err => {
5454
5555Async await is supported as well!
5656``` js 
57- const  fastify  =  require (' fastify' 
57+ const  fastify  =  require (' fastify' () 
5858
5959fastify .register (require (' fastify-postgres' 
6060  connectionString:  ' postgres://postgres@localhost/postgres' 
@@ -76,7 +76,7 @@ fastify.listen(3000, err => {
7676``` 
7777Use of ` pg.query ` 
7878``` js 
79- const  fastify  =  require (' fastify' 
79+ const  fastify  =  require (' fastify' () 
8080
8181fastify .register (require (' fastify-postgres' 
8282  connectionString:  ' postgres://postgres@localhost/postgres' 
@@ -99,7 +99,7 @@ fastify.listen(3000, err => {
9999
100100Use of ` pg.transact ` 
101101``` js 
102- const  fastify  =  require (' fastify' 
102+ const  fastify  =  require (' fastify' () 
103103
104104fastify .register (require (' fastify-postgres' 
105105  connectionString:  ' postgres://postgres@localhost/postgres' 
@@ -153,7 +153,7 @@ If you want to gain the maximum performances you can install [pg-native](https:/
153153Note: trying to use native options without successfully installation of ` pg-native `  will get a warning and fallback to regular ` pg `  module.
154154
155155``` js 
156- const  fastify  =  require (' fastify' 
156+ const  fastify  =  require (' fastify' () 
157157
158158fastify .register (require (' fastify-postgres' 
159159  connectionString:  ' postgres://postgres@localhost/postgres' 
@@ -179,7 +179,7 @@ fastify.listen(3000, err => {
179179If you want to provide your own ` pg `  module, for example to support packages like [ ` pg-range ` ] ( https://www.npmjs.com/package/pg-range ) , you can provide an optional ` pg `  option with the patched library to use:
180180
181181``` js 
182- const  fastify  =  require (' fastify' 
182+ const  fastify  =  require (' fastify' () 
183183const  pg  =  require (" pg" 
184184require (" pg-range" install (pg)
185185
0 commit comments