Handbook
Glossary
connect-postgres ( host port pgopts pgtty db user pass -- conn )
Vocabulary
db
.
postgresql
.
lib
Inputs
host
an
object
port
an
object
pgopts
an
object
pgtty
an
object
db
an
object
user
an
object
pass
an
object
Outputs
conn
an
object
Definition
USING:
db.postgresql.ffi
kernel
math
;
IN:
db.postgresql.lib
:
connect-postgres
( host port pgopts pgtty db user pass -- conn )
PQsetdbLogin
dup
PQstatus
zero?
[
[
(postgresql-error-message)
]
[
PQfinish
]
bi
throw
]
unless
;