Collection class
(PECL mysql-xdevapi >= 8.0.11)
简介
类摘要
mysql_xdevapi\Collection
implements mysql_xdevapi\SchemaObject {
/* 属性 */
public
$name ;
/* 方法 */
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
属性
- name
Table of Contents
- Collection::add — Add collection document
- Collection::addOrReplaceOne — Add or replace collection document
- Collection::__construct — Collection constructor
- Collection::count — Get document count
- Collection::createIndex — Create collection index
- Collection::dropIndex — Drop collection index
- Collection::existsInDatabase — Check if collection exists in database
- Collection::find — Search for document
- Collection::getName — Get collection name
- Collection::getOne — Get one document
- Collection::getSchema — Get schema object
- Collection::getSession — Get session object
- Collection::modify — Modify collection documents
- Collection::remove — Remove collection documents
- Collection::removeOne — Remove one collection document
- Collection::replaceOne — Replace one collection document