Collection class

(PECL mysql-xdevapi >= 8.0.11)

Introduction

Class synopsis

mysql_xdevapi\Collection implements mysql_xdevapi\SchemaObject {
/* Properties */
public name ;
/* Methods */
public add ( mixed $document ) : mysql_xdevapi\CollectionAdd
public addOrReplaceOne ( string $id , string $doc ) : mysql_xdevapi\Result
public count ( void ) : integer
public createIndex ( string $index_name , string $index_desc_json ) : void
public dropIndex ( string $index_name ) : bool
public existsInDatabase ( void ) : bool
public find ([ string $search_condition ] ) : mysql_xdevapi\CollectionFind
public getName ( void ) : string
public getOne ( string $id ) : Document
public getSchema ( void ) : Schema Object
public getSession ( void ) : Session
public modify ( string $search_condition ) : mysql_xdevapi\CollectionModify
public remove ( string $search_condition ) : mysql_xdevapi\CollectionRemove
public removeOne ( string $id ) : mysql_xdevapi\Result
public replaceOne ( string $id , string $doc ) : mysql_xdevapi\Result
}

Properties

name

Table of Contents