Module
Database.Postgres
- Package
- purescript-node-postgres
- Repository
- epost/purescript-node-postgres
#ConnectionString Source
type ConnectionString = String#connect Source
connect :: forall eff. ConnectionInfo -> Aff (db :: DB | eff) ClientMakes a connection to the database.
#withConnection Source
withConnection :: forall a eff. ConnectionInfo -> (Client -> Aff (db :: DB | eff) a) -> Aff (db :: DB | eff) aConnects to the database, calls the provided function with the client and returns the results.
#withClient Source
withClient :: forall a eff. ConnectionInfo -> (Client -> Aff (db :: DB | eff) a) -> Aff (db :: DB | eff) aTakes a Client from the connection pool, runs the given function with the client and returns the results.