Mysql_xdevapi 컬렉션 클래스
(PECL mysql-xdevapi >= 8.0.11)
소개
클래스 개요
class 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(): 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
}
Properties
name
목차
- Collection::add — 컬렉션 문서 추가
- Collection::addOrReplaceOne — 컬렉션 문서 추가 또는 교체
- Collection::__construct — 컬렉션 생성자
- Collection::count — 문서 수 가져오기
- Collection::createIndex — 컬렉션 인덱스 생성
- Collection::dropIndex — 컬렉션 인덱스 삭제
- Collection::existsInDatabase — 데이터베이스에 컬렉션이 있는지 확인
- Collection::find — 문서 검색
- Collection::getName — 컬렉션 이름 가져오기
- Collection::getOne — Get one document
- Collection::getSchema — 스키마 객체 가져오기
- Collection::getSession — 세션 객체 가져오기
- Collection::modify — 컬렉션 문서 수정
- Collection::remove — 컬렉션 문서 제거
- Collection::removeOne — 컬렉션 문서 1개 제거
- Collection::replaceOne — 하나의 컬렉션 문서 바꾸기