Module

Nonbili.Postgres.Config

Package
purescript-nonbili-postgres
Repository
nonbili/purescript-nonbili-postgres

#Config Source

type Config = { connectionString :: Maybe String, connectionTimeoutMillis :: Maybe Int, database :: Maybe String, host :: Maybe String, idleTimeoutMillis :: Maybe Int, max :: Maybe Int, password :: Maybe String, port :: Maybe Int, ssl :: Maybe Boolean, user :: Maybe String }

All fields are optional. pg will fallback to PGDATABASE, PGHOST, PGUSER, PGPASSWORD environement variables. See https://node-postgres.com/features/connecting.

#defaultConfig Source

defaultConfig :: Config

All fields are set to Nothing.