Handbook
Glossary
(ensure-collection) ( collection mdb-instance -- collection )
Vocabulary
mongodb
.
driver
.
private
Inputs
collection
an
object
mdb-instance
an
object
Outputs
collection
an
object
Definition
USING:
assocs
kernel
mongodb.driver
;
IN:
mongodb.driver.private
:
(ensure-collection)
( collection mdb-instance -- collection )
ensure-collection-map
dupd
key?
[
]
[
[
ensure-valid-collection-name
]
[
create-collection
]
[
]
tri
]
if
;