Mysql_xdevapi
- 소개
- 설치/구성
- 미리 정의된 상수
- 변경 로그
- Examples
-
Mysql_xdevapi 함수
- expression — 준비된 명령문 변수를 매개변수로 바인딩
- getSession — MySQL 서버에 연결
-
mysql_xdevapi\BaseResult — BaseResult 인터페이스
- BaseResult::getWarnings — 마지막 작업에서 경고 가져오기
- BaseResult::getWarningsCount — 마지막 작업에서 경고 수 가져오기
-
mysql_xdevapi\Client — 클라이언트 클래스
- mysql_xdevapi\Client::close — 클라이언트 닫기
- Client::__construct — Client constructor
- Client::getClient — 클라이언트 세션 가져오기
-
mysql_xdevapi\Collection — 컬렉션 클래스
- 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 — 하나의 컬렉션 문서 바꾸기
-
mysql_xdevapi\CollectionAdd — CollectionAdd class
- CollectionAdd::__construct — CollectionAdd constructor
- CollectionAdd::execute — 명령문 실행
-
mysql_xdevapi\CollectionFind — CollectionFind 클래스
- CollectionFind::bind — 쿼리 자리 표시자에 값 바인딩
- CollectionFind::__construct — CollectionFind 생성자
- CollectionFind::execute — 명령문 실행
- CollectionFind::fields — 문서 필드 필터 설정
- CollectionFind::groupBy — 그룹화 기준 설정
- CollectionFind::having — 집계 함수에 대한 조건 설정
- CollectionFind::limit — 반환 문서 수 제한
- CollectionFind::lockExclusive — EXCLUSIVE LOCK으로 작업 실행
- CollectionFind::lockShared — SHARED LOCK으로 작업 실행
- CollectionFind::offset — 반환할 지정된 수의 요소 건너뛰기
- CollectionFind::sort — 정렬 기준 설정
-
mysql_xdevapi\CollectionModify — CollectionModify class
- CollectionModify::arrayAppend — 배열 필드에 요소 추가
- CollectionModify::arrayInsert — 배열 필드에 요소 삽입
- CollectionModify::bind — 쿼리 자리 표시자에 값 바인딩
- CollectionModify::__construct — CollectionModify 생성자
- CollectionModify::execute — 수정 작업 실행
- CollectionModify::limit — 수정된 문서 수 제한
- CollectionModify::patch — 패치 문서
- CollectionModify::replace — 문서 필드 바꾸기
- CollectionModify::set — 문서 속성 설정
- CollectionModify::skip — 요소 건너뛰기
- CollectionModify::sort — 정렬 기준 설정
- CollectionModify::unset — 문서 필드 값 설정 해제
-
mysql_xdevapi\CollectionRemove — CollectionRemove class
- CollectionRemove::bind — 자리 표시자에 값 바인딩
- CollectionRemove::__construct — CollectionRemove 생성자
- CollectionRemove::execute — 제거 작업 실행
- CollectionRemove::limit — 제거할 문서 수 제한
- CollectionRemove::sort — 정렬 기준 설정
-
mysql_xdevapi\ColumnResult — ColumnResult class
- ColumnResult::__construct — ColumnResult constructor
- ColumnResult::getCharacterSetName — 문자 집합 가져오기
- ColumnResult::getCollationName — Get collation name
- ColumnResult::getColumnLabel — Get column label
- ColumnResult::getColumnName — 열 이름 가져오기
- ColumnResult::getFractionalDigits — 소수 자릿수 길이 가져오기
- ColumnResult::getLength — 열 필드 길이 가져오기
- ColumnResult::getSchemaName — 스키마 이름 가져오기
- ColumnResult::getTableLabel — 테이블 레이블 가져오기
- ColumnResult::getTableName — 테이블 이름 가져오기
- ColumnResult::getType — 열 유형 가져오기
- ColumnResult::isNumberSigned — 서명된 유형인지 확인
- ColumnResult::isPadded — 패딩 여부 확인
-
mysql_xdevapi\CrudOperationBindable — CrudOperationBindable 인터페이스
- CrudOperationBindable::bind — 자리 표시자에 값 바인딩
-
mysql_xdevapi\CrudOperationLimitable — CrudOperationLimitable 인터페이스
- CrudOperationLimitable::limit — 결과 제한 설정
-
mysql_xdevapi\CrudOperationSkippable — CrudOperationSkippable 인터페이스
- CrudOperationSkippable::skip — 건너뛸 작업 수
-
mysql_xdevapi\CrudOperationSortable — CrudOperationSortable 인터페이스
- CrudOperationSortable::sort — 결과 정렬
-
mysql_xdevapi\DatabaseObject — DatabaseObject 인터페이스
- DatabaseObject::existsInDatabase — 데이터베이스에 개체가 있는지 확인
- DatabaseObject::getName — 개체 이름 가져오기
- DatabaseObject::getSession — 세션 이름 가져오기
-
mysql_xdevapi\DocResult — DocResult 클래스
- DocResult::__construct — DocResult constructor
- DocResult::fetchAll — Get all rows
- DocResult::fetchOne — Get one row
- DocResult::getWarnings — Get warnings from last operation
- DocResult::getWarningsCount — 마지막 작업에서 경고 수 가져오기
- mysql_xdevapi\Exception — 예외 클래스
-
mysql_xdevapi\Executable — 실행 가능한 인터페이스
- Executable::execute — 실행문
-
mysql_xdevapi\ExecutionStatus — ExecutionStatus class
- ExecutionStatus::__construct — ExecutionStatus constructor
-
mysql_xdevapi\Expression — Expression class
- Expression::__construct — Expression constructor
-
mysql_xdevapi\Result — Result class
- Result::__construct — Result constructor
- Result::getAffectedItemsCount — Get affected row count
- Result::getAutoIncrementValue — Get autoincremented value
- Result::getGeneratedIds — Get generated ids
- Result::getWarnings — Get warnings from last operation
- Result::getWarningsCount — Get warning count from last operation
-
mysql_xdevapi\RowResult — RowResult class
- RowResult::__construct — RowResult constructor
- RowResult::fetchAll — Get all rows from result
- RowResult::fetchOne — Get row from result
- RowResult::getColumnsCount — Get column count
- RowResult::getColumnNames — Get all column names
- RowResult::getColumns — Get column metadata
- RowResult::getWarnings — Get warnings from last operation
- RowResult::getWarningsCount — Get warning count from last operation
-
mysql_xdevapi\Schema — Schema class
- Schema::__construct — constructor
- Schema::createCollection — Add collection to schema
- Schema::dropCollection — Drop collection from schema
- Schema::existsInDatabase — Check if exists in database
- Schema::getCollection — Get collection from schema
- Schema::getCollectionAsTable — Get collection table object
- Schema::getCollections — Get all schema collections
- Schema::getName — Get schema name
- Schema::getSession — Get schema session
- Schema::getTable — Get schema table
- Schema::getTables — Get schema tables
-
mysql_xdevapi\SchemaObject — SchemaObject interface
- SchemaObject::getSchema — Get schema object
-
mysql_xdevapi\Session — Session class
- Session::close — Close session
- Session::commit — Commit transaction
- Session::__construct — Description constructor
- Session::createSchema — Create new schema
- Session::dropSchema — Drop a schema
- Session::generateUUID — Get new UUID
- Session::getDefaultSchema — Get default schema name
- Session::getSchema — Get a new schema object
- Session::getSchemas — Get the schemas
- Session::getServerVersion — Get server version
- Session::listClients — Get client list
- Session::quoteName — Add quotes
- Session::releaseSavepoint — Release set savepoint
- Session::rollback — Rollback transaction
- Session::rollbackTo — Rollback transaction to savepoint
- Session::setSavepoint — Create savepoint
- Session::sql — Execute SQL query
- Session::startTransaction — Start transaction
-
mysql_xdevapi\SqlStatement — SqlStatement class
- SqlStatement::bind — Bind statement parameters
- SqlStatement::__construct — Description constructor
- SqlStatement::execute — Execute the operation
- SqlStatement::getNextResult — Get next result
- SqlStatement::getResult — Get result
- SqlStatement::hasMoreResults — Check for more results
-
mysql_xdevapi\SqlStatementResult — SqlStatementResult class
- SqlStatementResult::__construct — Description constructor
- SqlStatementResult::fetchAll — Get all rows from result
- SqlStatementResult::fetchOne — Get single row
- SqlStatementResult::getAffectedItemsCount — Get affected row count
- SqlStatementResult::getColumnsCount — Get column count
- SqlStatementResult::getColumnNames — Get column names
- SqlStatementResult::getColumns — Get columns
- SqlStatementResult::getGeneratedIds — Get generated ids
- SqlStatementResult::getLastInsertId — Get last insert id
- SqlStatementResult::getWarnings — Get warnings from last operation
- SqlStatementResult::getWarningsCount — Get warning count from last operation
- SqlStatementResult::hasData — Check if result has data
- SqlStatementResult::nextResult — Get next result
-
mysql_xdevapi\Statement — Statement class
- Statement::__construct — Description constructor
- Statement::getNextResult — Get next result
- Statement::getResult — Get result
- Statement::hasMoreResults — Check if more results
-
mysql_xdevapi\Table — Table class
- Table::__construct — Table constructor
- Table::count — Get row count
- Table::delete — Delete rows from table
- Table::existsInDatabase — Check if table exists in database
- Table::getName — Get table name
- Table::getSchema — Get table schema
- Table::getSession — Get table session
- Table::insert — Insert table rows
- Table::isView — Check if table is view
- Table::select — Select rows from table
- Table::update — Update rows in table
-
mysql_xdevapi\TableDelete — TableDelete class
- TableDelete::bind — Bind delete query parameters
- TableDelete::__construct — TableDelete constructor
- TableDelete::execute — Execute delete query
- TableDelete::limit — Limit deleted rows
- TableDelete::orderby — Set delete sort criteria
- TableDelete::where — Set delete search condition
-
mysql_xdevapi\TableInsert — TableInsert class
- TableInsert::__construct — TableInsert constructor
- TableInsert::execute — Execute insert query
- TableInsert::values — Add insert row values
-
mysql_xdevapi\TableSelect — TableSelect class
- TableSelect::bind — Bind select query parameters
- TableSelect::__construct — TableSelect constructor
- TableSelect::execute — Execute select statement
- TableSelect::groupBy — Set select grouping criteria
- TableSelect::having — Set select having condition
- TableSelect::limit — Limit selected rows
- TableSelect::lockExclusive — Execute EXCLUSIVE LOCK
- TableSelect::lockShared — Execute SHARED LOCK
- TableSelect::offset — Set limit offset
- TableSelect::orderby — Set select sort criteria
- TableSelect::where — Set select search condition
-
mysql_xdevapi\TableUpdate — TableUpdate class
- TableUpdate::bind — Bind update query parameters
- TableUpdate::__construct — TableUpdate constructor
- TableUpdate::execute — Execute update query
- TableUpdate::limit — Limit update row count
- TableUpdate::orderby — Set sorting criteria
- TableUpdate::set — Add field to be updated
- TableUpdate::where — Set search filter
-
mysql_xdevapi\Warning — Warning class
- Warning::__construct — Warning constructor