CollectionModify class
(PECL mysql-xdevapi >= 8.0.11)
簡介
類摘要
class mysql_xdevapi\CollectionModify
implements
mysql_xdevapi\Executable, mysql_xdevapi\CrudOperationBindable, mysql_xdevapi\CrudOperationLimitable, mysql_xdevapi\CrudOperationSkippable, mysql_xdevapi\CrudOperationSortable {
/* 方法 */
public arrayAppend(string
$collection_field
, string $expression_or_literal
): mysql_xdevapi\CollectionModifypublic arrayInsert(string
$collection_field
, string $expression_or_literal
): mysql_xdevapi\CollectionModifypublic replace(string
}$collection_field
, string $expression_or_literal
): mysql_xdevapi\CollectionModify目錄
- CollectionModify::arrayAppend — Append element to an array field
- CollectionModify::arrayInsert — Insert element into an array field
- CollectionModify::bind — Bind value to query placeholder
- CollectionModify::__construct — CollectionModify constructor
- CollectionModify::execute — Execute modify operation
- CollectionModify::limit — Limit number of modified documents
- CollectionModify::patch — Patch document
- CollectionModify::replace — Replace document field
- CollectionModify::set — Set document attribute
- CollectionModify::skip — Skip elements
- CollectionModify::sort — Set the sorting criteria
- CollectionModify::unset — Unset the value of document fields