Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed docs

  • Loading branch information...
commit 1cbc2ddf694dc31cfdc9f6844409ba7997d74a3f 1 parent 13b5c20
@x6j8x x6j8x authored
View
9 extra/bson/reader/reader.factor
@@ -15,6 +15,8 @@ SYMBOL: state
DEFER: stream>assoc
+ERROR: unknown-bson-type type msg ;
+
<PRIVATE
DEFER: read-elements
@@ -59,8 +61,10 @@ DEFER: read-elements
{ T_Binary_Default [ read ] }
{ T_Binary_Bytes_Deprecated [ drop read-int32 read ] }
{ T_Binary_Custom [ read bytes>object ] }
- { T_Binary_Function [ read ] }
- [ drop read >string ]
+ { T_Binary_Function [ read-sized-string ] }
+ { T_Binary_MD5 [ read >string ] }
+ { T_Binary_UUID [ read >string ] }
+ [ "unknown binary sub-type" unknown-bson-type ]
} case ; inline
TYPED: bson-regexp-read ( -- mdbregexp: mdbregexp )
@@ -90,6 +94,7 @@ TYPED: element-data-read ( type: integer -- object )
{ T_Code [ read-int32 read-sized-string ] }
{ T_ScopedCode [ read-int32 drop read-cstring H{ } clone stream>assoc <mongo-scoped-code> ] }
{ T_NULL [ f ] }
+ [ "type unknown" unknown-bson-type ]
} case ; inline recursive
TYPED: (read-object) ( type: integer name: string -- )
View
6 extra/mongodb/driver/driver-docs.factor
@@ -81,15 +81,13 @@ HELP: create-collection
HELP: delete
{ $values
- { "collection" "a collection" }
- { "selector" "assoc which identifies the objects to be removed from the collection" }
+ { "delete-msg" "a delete msg" }
}
{ $description "removes objects from the collection (with lasterror check)" } ;
HELP: delete-unsafe
{ $values
- { "collection" "a collection" }
- { "selector" "assoc which identifies the objects to be removed from the collection" }
+ { "delete-msg" "a delete msg" }
}
{ $description "removes objects from the collection (without error check)" } ;
Please sign in to comment.
Something went wrong with that request. Please try again.