Module

Yoga.Postgres

Package
purescript-yoga-postgres
Repository
rowtype-yoga/purescript-yoga-postgres

#Connection Source

#Transaction Source

#PGValue Source

data PGValue

#SQL Source

newtype SQL

Constructors

Instances

#param Source

param :: forall a. ToPGValue a => a -> Array PGValue

#params Source

params :: forall a. ToPGValue a => Array a -> Array PGValue

#Row Source

type Row = Foreign

#QueryResult Source

type QueryResult = { command :: String, count :: Int, rows :: Array Row }

#PostgresConfigImpl Source

type PostgresConfigImpl :: Row Typetype PostgresConfigImpl = (connect_timeout :: ConnectTimeout, connection :: ConnectionString, database :: PostgresDatabase, debug :: Boolean, host :: PostgresHost, idle_timeout :: IdleTimeout, max :: MaxConnections, onnotice :: Effect Unit, onparameter :: Foreign -> Effect Unit, password :: PostgresPassword, port :: PostgresPort, ssl :: Boolean, username :: PostgresUsername)

#postgresImpl Source

postgresImpl :: forall opts. EffectFn1 (Record opts) Connection

#postgres Source

postgres :: forall opts opts_. Union opts opts_ PostgresConfigImpl => Record opts -> Effect Connection

#queryOneSimple Source

#executeSimple Source

#Channel Source

#Notification Source

type Notification = { channel :: Channel, payload :: String }

#PreparedStatement Source

type PreparedStatement = { name :: StatementName, query :: SQL }

#optionsImpl Source

optionsImpl :: EffectFn1 Connection { database :: String, host :: String, port :: Int }

#options Source

options :: Connection -> Effect { database :: String, host :: String, port :: Int }