Handbook
Glossary
ensure-collection-map ( mdb-instance -- assoc )
Vocabulary
mongodb
.
driver
.
private
Inputs
mdb-instance
an
object
Outputs
assoc
an
object
Definition
USING:
accessors
assocs
kernel
;
IN:
mongodb.driver.private
:
ensure-collection-map
( mdb-instance -- assoc )
dup
collections>>
dup
assoc-empty?
[
drop
build-collection-map
[
>>collections
drop
]
keep
]
[
nip
]
if
;