메소드 |
설명 |
|
__construct ( Client $client, MongoDB | string $database ) |
|
|
__get ( $name ) |
|
|
authenticate ( string $username, string $password ) |
|
|
clearCollectionPool ( ) |
|
|
createCappedCollection ( string $name, integer $maxElements, integer $size ) : Collection |
|
|
createCollection ( string $name, array $options = null ) : Collection |
Create collection |
|
disableCollectionPool ( ) |
|
|
disableProfiler ( ) |
|
|
enableCollectionPool ( ) |
|
|
executeCommand ( array $command, array $options = [] ) : array |
Execute Mongo command |
|
executeJS ( $code, array $args = [] ) |
|
|
findProfilerRows ( ) : Cursor |
|
|
getCache ( string $namespace ) : Cache |
Get cache |
|
getClient ( ) : Client |
|
|
getCollection ( string $name ) : Collection |
|
|
getDocumentByReference ( array $ref, boolean $useDocumentPool = true ) : Document | null |
Get Document instance by it's reference |
|
getGridFS ( string $name = 'fs' ) : GridFS |
Get instance of GridFS |
|
getLastError ( ) |
|
|
getMongoDB ( ) : MongoDB |
|
|
getName ( ) : string |
|
|
getProfilerLevel ( ) |
|
|
getProfilerParams ( ) |
|
|
getProfilerSlowMs ( ) |
|
|
getQueue ( string $channel ) : Queue |
|
|
getReadPreference ( ) |
|
|
getWriteConcern ( ) : mixed |
Get current write concern
May be used only if mongo extension version >=1.5 |
|
isCollectionPoolEmpty ( ) |
|
|
isCollectionPoolEnabled ( ) |
|
|
logout ( ) |
|
|
map ( string | array $name, string | array | Definition | null $classDefinition = null ) : Client |
Map collection name to class |
|
profileAllQueries ( $slowms = null ) |
|
|
profileSlowQueries ( $slowms = 100 ) |
|
|
readNearest ( array $tags = null ) |
|
|
readPrimaryOnly ( ) |
|
|
readPrimaryPreferred ( array $tags = null ) |
|
|
readSecondaryOnly ( array $tags = null ) |
|
|
readSecondaryPreferred ( array $tags = null ) |
|
|
resetMapping ( ) : Client |
Reset specified mapping |
|
setMajorityWriteConcern ( integer $timeout = 10000 ) : Database |
Define majority write concern. |
|
setUnacknowledgedWriteConcern ( integer $timeout = 10000 ) : Database |
Define unacknowledged write concern. |
|
setWriteConcern ( string | integer $w, integer $timeout = 10000 ) : Database |
Define write concern. |
|
stats ( ) |
|
|