Closed eliasmalik closed 7 years ago
Split off DB functions into its own plugin.
Expose method to bind the schema and a pg.Pool to the DB functions, and attach them to the request object.
pg.Pool
request
Based off ideas in #50. @jrans use this if you think its a useful abstraction, otherwise feel free to change it up or throw it away.
just to say this this PR has been taken and made into a new plugin 'abase-db' code can be found here
Split off DB functions into its own plugin.
Expose method to bind the schema and a
pg.Pool
to the DB functions, and attach them to therequest
object.Based off ideas in #50. @jrans use this if you think its a useful abstraction, otherwise feel free to change it up or throw it away.