Handbook
Glossary
validate. ( collection -- )
Vocabulary
mongodb
.
driver
Inputs
collection
collection to validate
Outputs
None
Word description
validates the collection
Definition
IN:
mongodb.driver
GENERIC:
validate.
( collection -- )
Methods
USING:
accessors
mongodb.driver
;
M:
mdb-collection
validate.
name>>
validate.
;
USING:
assocs
io
kernel
mongodb.cmd
mongodb.connection
mongodb.driver
strings
;
M:
string
validate.
[
validate-cmd
make-cmd
]
dip
"validate"
set-cmd-opt
send-cmd
[
check-ok
nip
]
keep
[
[
"result"
]
]
dip
[
at
print
]
curry
compose
[
]
if
;