Method |
Description |
|
__construct ( string $name, Pool $pool ) : void |
Contructor of MongoClientAsyncCollection |
|
aggregate ( array $p, callable $cb ) : void |
Aggregate |
|
autoincrement ( callable $cb, boolean $plain = false ) : void |
Generation autoincrement |
|
count ( callable $cb, array $p = [] ) : void |
Counts objects in collection |
|
ensureIndex ( array $keys, array $options = [], callable $cb = null ) : void |
Ensure index |
|
evaluate ( string $code, callable $cb ) : void |
Evaluates a code on the server side |
|
find ( callable $cb, array $p = [] ) : void |
Finds objects in collection |
|
findAll ( callable $cb, array $p = [] ) : void |
Finds objects in collection and fires callback when got all objects |
|
findAndModify ( array $p, callable $cb ) : void |
Generation autoincrement |
|
findOne ( callable $cb, array $p = [] ) : void |
Finds one object in collection |
|
group ( callable $cb, array $p = [] ) : void |
Groupping function |
|
insert ( array $doc, callable $cb = null, array $params = null ) : MongoId |
Inserts an object |
|
insertMulti ( array $docs, callable $cb = null, array $params = null ) : array |
Inserts several documents |
|
insertOne ( array $doc, callable $cb = null, array $params = null ) : MongoId |
Inserts an object |
|
remove ( array $cond = [], callable $cb = null, array $params = null ) : void |
Removes objects from collection |
|
update ( array $cond, array $data, integer $flags, callable $cb = null, array $params = null ) : void |
Updates one object in collection |
|
updateMulti ( array $cond, array $data, callable $cb = null, array $params = null ) : void |
Updates one object in collection |
|
updateOne ( array $cond, array $data, callable $cb = null, array $params = null ) : void |
Updates one object in collection |
|
upsert ( array $cond, array $data, boolean $multi = false, callable $cb = null, array $params = null ) : void |
Upserts an object (updates if exists, insert if not exists) |
|
upsertMulti ( array $cond, array $data, callable $cb = null, array $params = null ) : void |
Upserts an object (updates if exists, insert if not exists) |
|
upsertOne ( array $cond, array $data, callable $cb = null, array $params = null ) : void |
Upserts an object (updates if exists, insert if not exists) |
|