Handbook
Glossary
with-db ( db quot -- )
Vocabulary
db
Inputs
db
a database configuration object
quot
a
quotation
Outputs
None
Word description
Calls the quotation with a database bound to the
db-connection
symbol. See
Custom database combinators
for help setting up database access.
See also
db-open
,
db-close
Definition
USING:
destructors
kernel
namespaces
;
IN:
db
:
with-db
( db quot -- )
[
db-open
db-connection
]
dip
[
[
drop
]
]
dip
compose
[
[
db-connection
get
]
]
dip
[
with-disposal
]
curry
compose
with-variable
;
inline