Handbook
Glossary
ensure-valid-collection-name ( collection -- )
Vocabulary
mongodb
.
driver
.
private
Inputs
collection
an
object
Outputs
None
Definition
USING:
ascii
kernel
math
sequences
sets
;
IN:
mongodb.driver.private
:
ensure-valid-collection-name
( collection -- )
[
[
";$."
intersect
length
0
>
]
keep
[
"contains invalid characters ( . $ ; )"
":"
glue
throw
]
curry
when
]
[
[
ascii?
]
all?
[
"collection names must only contain ascii characters"
throw
]
unless
]
bi
;
inline