(PECL mysql-xdevapi >= 8.0.11)
はじめに
クラス概要
mysql_xdevapi\Collection implements mysql_xdevapi\SchemaObject {
public
$name
/* メソッド */
public add
( mixed $document
) : mysql_xdevapi\CollectionAdd
public addOrReplaceOne
( string $id
, string $doc
) : mysql_xdevapi\Result
public count ( ) : int
public createIndex
( string $index_name
, string $index_desc_json
) : void
public dropIndex
( string $index_name
) : bool
public existsInDatabase ( ) : bool
public find
([ string $search_condition
] ) : mysql_xdevapi\CollectionFind
public getName ( ) : string
public getOne
( string $id
) : Document
public getSchema ( ) : Schema Object
public getSession ( ) : 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
目次
- Collection::add — コレクションにドキュメントを追加する
- Collection::addOrReplaceOne — コレクションのドキュメントを追加または置換する
- Collection::__construct — Collection のコンストラクタ
- Collection::count — ドキュメントの数を取得する
- Collection::createIndex — コレクションにインデックスを作成
- Collection::dropIndex — コレクションのインデックスを削除
- Collection::existsInDatabase — コレクションがデータベースに存在するかをチェックする
- Collection::find — ドキュメントを検索する
- Collection::getName — コレクションの名前を得る
- Collection::getOne — ドキュメントをひとつ取得
- Collection::getSchema — スキーマオブジェクトを得る
- Collection::getSession — セッションオブジェクトを取得
- Collection::modify — コレクションのドキュメントを変更する
- Collection::remove — コレクションを削除する
- Collection::removeOne — コレクションからドキュメントをひとつ削除する
- Collection::replaceOne — コレクションのドキュメントをひとつ置き換える
/* プロパティ */