dwyl / abase

:house: A (solid) Base for your Web Application.
9 stars 0 forks source link

[WIP] Db plugin #70

Closed eliasmalik closed 7 years ago

eliasmalik commented 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.

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.

jrans commented 7 years ago

just to say this this PR has been taken and made into a new plugin 'abase-db' code can be found here