Module

Effect.Postgres.Client

Package
purescript-postgresql
Repository
cakekindel/purescript-postgresql

#Client Source

data Client

Database connection

#Notification Source

type Notification = { channel :: String, payload :: Maybe String, processId :: Number }

A notification raised by NOTIFY

#Config Source

type Config :: Row Type -> Row Typetype Config r = (applicationName :: String, connectionString :: String, connectionTimeout :: Milliseconds, database :: String, host :: String, idleInTransactionTimeout :: Milliseconds, password :: String, port :: Number, queryTimeout :: Milliseconds, statementTimeout :: Milliseconds, user :: String | r)

Client connection config

#make Source

make :: forall @r @missing @trash. Union r missing (Config trash) => Record r -> Effect Client

Creates a new client, not yet connected to the database.

The config parameter r is Config with all keys optional.

https://node-postgres.com/apis/client#new-client

#ClientConfigRaw Source

#__uncfg Source

__uncfg :: { unwrapMillis :: Milliseconds -> Number } -> Foreign -> ClientConfigRaw

FFI

#NotificationRaw Source

type NotificationRaw = { channel :: String, payload :: Nullable String, processId :: Number }

FFI