Collection class
(PECL mysql-xdevapi >= 8.0.11)
简介
类摘要
class mysql_xdevapi\Collection
implements
mysql_xdevapi\SchemaObject {
/* 属性 */
public
$name;
/* 方法 */
public count(): int
public createIndex(string
$index_name
, string $index_desc_json
): voidpublic dropIndex(string
$index_name
): boolpublic existsInDatabase(): bool
public getName(): string
public getOne(string
$id
): Documentpublic getSchema(): Schema Object
public getSession(): Session
}属性
- name
目录
- 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

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/class.mysql-xdevapi-collection.php