Index: library/mongodb/mongoAPI.decls =================================================================== diff -u -re3e8f375df1313380cd13a6cb97028569f99d729 -r7fd68223bc5bc14af69bbe5779991819b3327b3b --- library/mongodb/mongoAPI.decls (.../mongoAPI.decls) (revision e3e8f375df1313380cd13a6cb97028569f99d729) +++ library/mongodb/mongoAPI.decls (.../mongoAPI.decls) (revision 7fd68223bc5bc14af69bbe5779991819b3327b3b) @@ -24,6 +24,11 @@ {-argName "json" -required 1 -type tclobj} } +# returns the timestamp portion of the ObjectId in form of an epoch +cmd oid::gettimestamp NsfMongoOidGettimestamp { + {-argName "oid" -required 1} +} + cmd close NsfMongoClose { {-argName "conn" -required 1 -type mongoc_client_t -withObj 1} } @@ -76,10 +81,8 @@ } cmd "collection::query" NsfMongoCollectionQuery { {-argName "collection" -required 1 -type mongoc_collection_t} - {-argName "query" -required 1 -type tclobj} - {-argName "-atts" -required 0 -nrargs 1 -type tclobj} - {-argName "-limit" -required 0 -type int32} - {-argName "-skip" -required 0 -type int32} + {-argName "filter" -required 1 -type tclobj} + {-argName "-opts" -required 0 -nrargs 1 -type tclobj} } cmd "collection::stats" NsfMongoCollectionStats { {-argName "collection" -required 1 -type mongoc_collection_t} @@ -105,12 +108,8 @@ } cmd cursor::find NsfMongoCursorFind { {-argName "collection" -required 1 -type mongoc_collection_t} - {-argName "query" -required 1 -type tclobj} - {-argName "-atts" -required 0 -nrargs 1 -type tclobj} - {-argName "-limit" -required 0 -type int32} - {-argName "-skip" -required 0 -type int32} - {-argName "-tailable" -required 0 -nrargs 0} - {-argName "-awaitdata" -required 0 -nrargs 0} + {-argName "filter" -required 1 -type tclobj} + {-argName "-opts" -required 0 -nrargs 1 -type tclobj} } cmd cursor::next NsfMongoCursorNext { {-argName "cursor" -required 1 -type mongoc_cursor_t}