Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

15 Commits

Repository files navigation

systemic-pg

A systemic pg component

Usage

constSystem=require('systemic')constpostgres=require('systemic-pg')newSystem().configure({postgres: {host: 'localhost',database: 'example'onConnect: ["SET client_min_messages = WARNING","SET search_path = custom,public"]}}).add('logger',console).add('postgres',postgres()).dependsOn('config','logger').start((err,components)=>{// Do stuff with components.pg})

<= 0.12

systemic-pg relies on the underlying pg library, which uses native promises and is therefore incompatible with node 0.12 and below. You can monkey patch Promise or use an alternative promise implementation by following these instructions.

About

A systemic pg component

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages