MongoService

package

Default

Methods

__construct

__construct() 

bulkWrite

bulkWrite( $arg0,  $arg1,  $arg2) : $this

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

bulkWriteWithOptions

bulkWriteWithOptions( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

BulkWriteOptions | array

$arg3

callable

Response

$this

close

close() : void

count

count( $arg0,  $arg1,  $arg2) : $this

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

createCollection

createCollection( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

Create a proxy to a service that is deployed somewhere on the event bus

createEventBusProxy( $arg0,  $arg1) : \io\vertx\jphp\ext\mongo\MongoService
static

Arguments

$arg0

Vertx

$arg1

string

Response

\io\vertx\jphp\ext\mongo\MongoService

the service

createIndex

createIndex( $arg0,  $arg1,  $arg2) : $this

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

createIndexWithOptions

createIndexWithOptions( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

IndexOptions | array

$arg3

callable

Response

$this

distinct

distinct( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

string

$arg2

string

$arg3

callable

Response

$this

distinctWithQuery

distinctWithQuery( $arg0,  $arg1,  $arg2,  $arg3,  $arg4) : $this

Arguments

$arg0

string

$arg1

string

$arg2

string

$arg3

array

$arg4

callable

Response

$this

dropCollection

dropCollection( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

dropIndex

dropIndex( $arg0,  $arg1,  $arg2) : $this

Arguments

$arg0

string

$arg1

string

$arg2

callable

Response

$this

find

find( $arg0,  $arg1,  $arg2) : $this

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

findOne

findOne( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

callable

Response

$this

findOneAndDelete

findOneAndDelete( $arg0,  $arg1,  $arg2) : $this

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

findOneAndDeleteWithOptions

findOneAndDeleteWithOptions( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

FindOptions | array

$arg3

callable

Response

$this

findOneAndReplace

findOneAndReplace( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

callable

Response

$this

findOneAndReplaceWithOptions

findOneAndReplaceWithOptions( $arg0,  $arg1,  $arg2,  $arg3,  $arg4,  $arg5) : $this

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

FindOptions | array

$arg4

array | UpdateOptions

$arg5

callable

Response

$this

findOneAndUpdate

findOneAndUpdate( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

callable

Response

$this

findOneAndUpdateWithOptions

findOneAndUpdateWithOptions( $arg0,  $arg1,  $arg2,  $arg3,  $arg4,  $arg5) : $this

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

FindOptions | array

$arg4

array | UpdateOptions

$arg5

callable

Response

$this

findWithOptions

findWithOptions( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

FindOptions | array

$arg3

callable

Response

$this

getCollections

getCollections( $arg0) : $this

Arguments

$arg0

callable

Response

$this

insert

insert( $arg0,  $arg1,  $arg2) : $this

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

insertWithOptions

insertWithOptions( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

string

$arg3

callable

Response

$this

listIndexes

listIndexes( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

remove

remove( $arg0,  $arg1,  $arg2) : $this
deprecated

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

removeDocument

removeDocument( $arg0,  $arg1,  $arg2) : $this

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

removeDocuments

removeDocuments( $arg0,  $arg1,  $arg2) : $this

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

removeDocumentsWithOptions

removeDocumentsWithOptions( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

string

$arg3

callable

Response

$this

removeDocumentWithOptions

removeDocumentWithOptions( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

string

$arg3

callable

Response

$this

removeOne

removeOne( $arg0,  $arg1,  $arg2) : $this
deprecated

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

removeOneWithOptions

removeOneWithOptions( $arg0,  $arg1,  $arg2,  $arg3) : $this
deprecated

Arguments

$arg0

string

$arg1

array

$arg2

string

$arg3

callable

Response

$this

removeWithOptions

removeWithOptions( $arg0,  $arg1,  $arg2,  $arg3) : $this
deprecated

Arguments

$arg0

string

$arg1

array

$arg2

string

$arg3

callable

Response

$this

replace

replace( $arg0,  $arg1,  $arg2,  $arg3) : $this
deprecated

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

callable

Response

$this

replaceDocuments

replaceDocuments( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

callable

Response

$this

replaceDocumentsWithOptions

replaceDocumentsWithOptions( $arg0,  $arg1,  $arg2,  $arg3,  $arg4) : $this

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

array | UpdateOptions

$arg4

callable

Response

$this

replaceWithOptions

replaceWithOptions( $arg0,  $arg1,  $arg2,  $arg3,  $arg4) : $this
deprecated

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

array | UpdateOptions

$arg4

callable

Response

$this

runCommand

runCommand( $arg0,  $arg1,  $arg2) : $this

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

save

save( $arg0,  $arg1,  $arg2) : $this

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

saveWithOptions

saveWithOptions( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

string

$arg3

callable

Response

$this

update

update( $arg0,  $arg1,  $arg2,  $arg3) : $this
deprecated

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

callable

Response

$this

updateCollection

updateCollection( $arg0,  $arg1,  $arg2,  $arg3) : $this

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

callable

Response

$this

updateCollectionWithOptions

updateCollectionWithOptions( $arg0,  $arg1,  $arg2,  $arg3,  $arg4) : $this

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

array | UpdateOptions

$arg4

callable

Response

$this

updateWithOptions

updateWithOptions( $arg0,  $arg1,  $arg2,  $arg3,  $arg4) : $this
deprecated

Arguments

$arg0

string

$arg1

array

$arg2

array

$arg3

array | UpdateOptions

$arg4

callable

Response

$this

Constants

The name of the default pool

DEFAULT_POOL_NAME
var

php文件只是为了写代码方便,常量的实际值请参考原java文件

The name of the default database

DEFAULT_DB_NAME
var

php文件只是为了写代码方便,常量的实际值请参考原java文件