3.0.0 • Published 4 years ago

systemic-pg v3.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

systemic-pg

A systemic pg component

Usage

const System = require('systemic')
const postgres = require('systemic-pg')

new System()
    .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.

3.0.0

4 years ago

2.0.0

6 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago