Mysql_xdevapi

目次

BaseResult クラス

はじめに

クラス概要

mysql_xdevapi\BaseResult
class mysql_xdevapi\BaseResult {
/* メソッド */
abstract public array getWarnings()
abstract public int getWarningsCount()
}

クライアントクラス

はじめに

コネクションプールへのアクセスを提供します。

クラス概要

mysql_xdevapi\Client
class mysql_xdevapi\Client {
/* メソッド */
public bool close()
public mysql_xdevapi\Session getSession()
}

Collection クラス

はじめに

クラス概要

mysql_xdevapi\Collection
class mysql_xdevapi\Collection implements mysql_xdevapi\SchemaObject {
/* プロパティ */
public $name;
/* メソッド */
public mysql_xdevapi\CollectionAdd add(mixed $document)
public mysql_xdevapi\Result addOrReplaceOne(string $id, string $doc)
public int count()
public void createIndex(string $index_name, string $index_desc_json)
public bool dropIndex(string $index_name)
public bool existsInDatabase()
public mysql_xdevapi\CollectionFind find(string $search_condition = ?)
public string getName()
public Document getOne(string $id)
public Schema Object getSchema()
public Session getSession()
public mysql_xdevapi\CollectionModify modify(string $search_condition)
public mysql_xdevapi\CollectionRemove remove(string $search_condition)
public mysql_xdevapi\Result removeOne(string $id)
public mysql_xdevapi\Result replaceOne(string $id, string $doc)
}

プロパティ

name

CollectionAdd クラス

はじめに

クラス概要

mysql_xdevapi\CollectionAdd
class mysql_xdevapi\CollectionAdd implements mysql_xdevapi\Executable {
/* メソッド */
public mysql_xdevapi\Result execute()
}

CollectionFind クラス

はじめに

クラス概要

mysql_xdevapi\CollectionFind
class mysql_xdevapi\CollectionFind implements mysql_xdevapi\Executable, mysql_xdevapi\CrudOperationBindable, mysql_xdevapi\CrudOperationLimitable, mysql_xdevapi\CrudOperationSortable {
/* メソッド */
public mysql_xdevapi\CollectionFind bind(array $placeholder_values)
public mysql_xdevapi\DocResult execute()
public mysql_xdevapi\CollectionFind fields(string $projection)
public mysql_xdevapi\CollectionFind groupBy(string $sort_expr)
public mysql_xdevapi\CollectionFind having(string $sort_expr)
public mysql_xdevapi\CollectionFind limit(int $rows)
public mysql_xdevapi\CollectionFind lockExclusive(int $lock_waiting_option = ?)
public mysql_xdevapi\CollectionFind lockShared(int $lock_waiting_option = ?)
public mysql_xdevapi\CollectionFind offset(int $position)
public mysql_xdevapi\CollectionFind sort(string $sort_expr)
}

CollectionModify クラス

はじめに

クラス概要

mysql_xdevapi\CollectionModify
class mysql_xdevapi\CollectionModify implements mysql_xdevapi\Executable, mysql_xdevapi\CrudOperationBindable, mysql_xdevapi\CrudOperationLimitable, mysql_xdevapi\CrudOperationSkippable, mysql_xdevapi\CrudOperationSortable {
/* メソッド */
public mysql_xdevapi\CollectionModify arrayAppend(string $collection_field, string $expression_or_literal)
public mysql_xdevapi\CollectionModify arrayInsert(string $collection_field, string $expression_or_literal)
public mysql_xdevapi\CollectionModify bind(array $placeholder_values)
public mysql_xdevapi\Result execute()
public mysql_xdevapi\CollectionModify limit(int $rows)
public mysql_xdevapi\CollectionModify patch(string $document)
public mysql_xdevapi\CollectionModify replace(string $collection_field, string $expression_or_literal)
public mysql_xdevapi\CollectionModify set(string $collection_field, string $expression_or_literal)
public mysql_xdevapi\CollectionModify skip(int $position)
public mysql_xdevapi\CollectionModify sort(string $sort_expr)
public mysql_xdevapi\CollectionModify unset(array $fields)
}

CollectionRemove クラス

はじめに

クラス概要

mysql_xdevapi\CollectionRemove
class mysql_xdevapi\CollectionRemove implements mysql_xdevapi\Executable, mysql_xdevapi\CrudOperationBindable, mysql_xdevapi\CrudOperationLimitable, mysql_xdevapi\CrudOperationSortable {
/* メソッド */
public mysql_xdevapi\CollectionRemove bind(array $placeholder_values)
public mysql_xdevapi\Result execute()
public mysql_xdevapi\CollectionRemove limit(int $rows)
public mysql_xdevapi\CollectionRemove sort(string $sort_expr)
}

ColumnResult クラス

はじめに

クラス概要

mysql_xdevapi\ColumnResult
class mysql_xdevapi\ColumnResult {
/* メソッド */
public string getCharacterSetName()
public string getCollationName()
public string getColumnLabel()
public string getColumnName()
public int getFractionalDigits()
public int getLength()
public string getSchemaName()
public string getTableLabel()
public string getTableName()
public int getType()
public int isNumberSigned()
public int isPadded()
}

CrudOperationBindable インターフェイス

はじめに

クラス概要

mysql_xdevapi\CrudOperationBindable
class mysql_xdevapi\CrudOperationBindable {
/* メソッド */
abstract public mysql_xdevapi\CrudOperationBindable bind(array $placeholder_values)
}

CrudOperationLimitable インターフェイス

はじめに

クラス概要

mysql_xdevapi\CrudOperationLimitable
class mysql_xdevapi\CrudOperationLimitable {
/* メソッド */
abstract public mysql_xdevapi\CrudOperationLimitable limit(int $rows)
}

CrudOperationSkippable インターフェイス

はじめに

クラス概要

mysql_xdevapi\CrudOperationSkippable
class mysql_xdevapi\CrudOperationSkippable {
/* メソッド */
abstract public mysql_xdevapi\CrudOperationSkippable skip(int $skip)
}

CrudOperationSortable インターフェイス

はじめに

クラス概要

mysql_xdevapi\CrudOperationSortable
class mysql_xdevapi\CrudOperationSortable {
/* メソッド */
abstract public mysql_xdevapi\CrudOperationSortable sort(string $sort_expr)
}

DatabaseObject インターフェイス

はじめに

クラス概要

mysql_xdevapi\DatabaseObject
class mysql_xdevapi\DatabaseObject {
/* メソッド */
abstract public bool existsInDatabase()
abstract public string getName()
abstract public mysql_xdevapi\Session getSession()
}

DocResult クラス

はじめに

クラス概要

mysql_xdevapi\DocResult
class mysql_xdevapi\DocResult implements mysql_xdevapi\BaseResult, Traversable {
/* メソッド */
public array fetchAll()
public array fetchOne()
public Array getWarnings()
public int getWarningsCount()
}

Exception クラス

はじめに

クラス概要

mysql_xdevapi\Exception
class mysql_xdevapi\Exception extends RuntimeException implements Throwable {
}

Executable インターフェイス

はじめに

クラス概要

mysql_xdevapi\Executable
class mysql_xdevapi\Executable {
/* メソッド */
abstract public mysql_xdevapi\Result execute()
}

ExecutionStatus クラス

はじめに

クラス概要

mysql_xdevapi\ExecutionStatus
class mysql_xdevapi\ExecutionStatus {
/* プロパティ */
public $affectedItems;
public $matchedItems;
public $foundItems;
public $lastInsertId;
public $lastDocumentId;
/* Constructor */
private __construct()
}

プロパティ

affectedItems

matchedItems

foundItems

lastInsertId

lastDocumentId

Expression クラス

はじめに

クラス概要

mysql_xdevapi\Expression
class mysql_xdevapi\Expression {
/* プロパティ */
public $name;
/* Constructor */
public __construct(string $expression)
}

プロパティ

name

Result クラス

はじめに

クラス概要

mysql_xdevapi\Result
class mysql_xdevapi\Result implements mysql_xdevapi\BaseResult, Traversable {
/* メソッド */
public int getAffectedItemsCount()
public int getAutoIncrementValue()
public array getGeneratedIds()
public array getWarnings()
public int getWarningsCount()
}

RowResult クラス

はじめに

クラス概要

mysql_xdevapi\RowResult
class mysql_xdevapi\RowResult implements mysql_xdevapi\BaseResult, Traversable {
/* メソッド */
public array fetchAll()
public array fetchOne()
public int getColumnsCount()
public array getColumnNames()
public array getColumns()
public array getWarnings()
public int getWarningsCount()
}

Schema クラス

はじめに

クラス概要

mysql_xdevapi\Schema
class mysql_xdevapi\Schema implements mysql_xdevapi\DatabaseObject {
/* プロパティ */
public $name;
/* メソッド */
public mysql_xdevapi\Collection createCollection(string $name)
public bool dropCollection(string $collection_name)
public bool existsInDatabase()
public mysql_xdevapi\Collection getCollection(string $name)
public mysql_xdevapi\Table getCollectionAsTable(string $name)
public array getCollections()
public string getName()
public mysql_xdevapi\Session getSession()
public mysql_xdevapi\Table getTable(string $name)
public array getTables()
}

プロパティ

name

SchemaObject インターフェイス

はじめに

クラス概要

mysql_xdevapi\SchemaObject
class mysql_xdevapi\SchemaObject implements mysql_xdevapi\DatabaseObject {
/* メソッド */
abstract mysql_xdevapi\Schema getSchema()
}

Session クラス

はじめに

クラス概要

mysql_xdevapi\Session
class mysql_xdevapi\Session {
/* メソッド */
public bool close()
public Object commit()
public mysql_xdevapi\Schema createSchema(string $schema_name)
public bool dropSchema(string $schema_name)
public string generateUUID()
public string getDefaultSchema()
public mysql_xdevapi\Schema getSchema(string $schema_name)
public array getSchemas()
public int getServerVersion()
public array listClients()
public string quoteName(string $name)
public void releaseSavepoint(string $name)
public void rollback()
public void rollbackTo(string $name)
public string setSavepoint(string $name = ?)
public mysql_xdevapi\SqlStatement sql(string $query)
public void startTransaction()
}

SqlStatement クラス

はじめに

クラス概要

mysql_xdevapi\SqlStatement
class mysql_xdevapi\SqlStatement {
/* 定数 */
const int mysql_xdevapi\SqlStatement::EXECUTE_ASYNC = 1;
const int mysql_xdevapi\SqlStatement::BUFFERED = 2;
/* プロパティ */
public $statement;
/* メソッド */
public mysql_xdevapi\SqlStatement bind(string $param)
public mysql_xdevapi\Result execute()
public mysql_xdevapi\Result getNextResult()
public mysql_xdevapi\Result getResult()
public bool hasMoreResults()
}

プロパティ

statement

定義済み定数

mysql_xdevapi\SqlStatement::EXECUTE_ASYNC

mysql_xdevapi\SqlStatement::BUFFERED

SqlStatementResult クラス

はじめに

クラス概要

mysql_xdevapi\SqlStatementResult
class mysql_xdevapi\SqlStatementResult implements mysql_xdevapi\BaseResult, Traversable {
/* メソッド */
public array fetchAll()
public array fetchOne()
public int getAffectedItemsCount()
public int getColumnsCount()
public array getColumnNames()
public Array getColumns()
public array getGeneratedIds()
public String getLastInsertId()
public array getWarnings()
public int getWarningCounts()
public bool hasData()
public mysql_xdevapi\Result nextResult()
}

Statement クラス

はじめに

クラス概要

mysql_xdevapi\Statement
class mysql_xdevapi\Statement {
/* 定数 */
const int mysql_xdevapi\Statement::EXECUTE_ASYNC = 1;
const int mysql_xdevapi\Statement::BUFFERED = 2;
/* メソッド */
public mysql_xdevapi\Result getNextResult()
public mysql_xdevapi\Result getResult()
public bool hasMoreResults()
}

定義済み定数

mysql_xdevapi\Statement::EXECUTE_ASYNC

mysql_xdevapi\Statement::BUFFERED

Table クラス

はじめに

INSERT/SELECT/UPDATE/DELETE ステートメントを通じて、テーブルへのアクセスを提供します。

クラス概要

mysql_xdevapi\Table
class mysql_xdevapi\Table implements mysql_xdevapi\SchemaObject {
/* プロパティ */
public $name;
/* メソッド */
public int count()
public mysql_xdevapi\TableDelete delete()
public bool existsInDatabase()
public string getName()
public mysql_xdevapi\Schema getSchema()
public mysql_xdevapi\Session getSession()
public mysql_xdevapi\TableInsert insert(mixed $columns, mixed ...$more_columns)
public bool isView()
public mysql_xdevapi\TableSelect select(mixed $columns, mixed ...$more_columns)
public mysql_xdevapi\TableUpdate update()
}

プロパティ

name

TableDelete クラス

はじめに

テーブルのレコードを削除する操作を行うためのステートメントです。

クラス概要

mysql_xdevapi\TableDelete
class mysql_xdevapi\TableDelete implements mysql_xdevapi\Executable {
/* メソッド */
public mysql_xdevapi\TableDelete bind(array $placeholder_values)
public mysql_xdevapi\Result execute()
public mysql_xdevapi\TableDelete limit(int $rows)
public mysql_xdevapi\TableDelete orderby(string $orderby_expr)
public mysql_xdevapi\TableDelete where(string $where_expr)
}

TableInsert クラス

はじめに

テーブルにレコードを挿入する操作を行うステートメントです

クラス概要

mysql_xdevapi\TableInsert
class mysql_xdevapi\TableInsert implements mysql_xdevapi\Executable {
/* メソッド */
public mysql_xdevapi\Result execute()
public mysql_xdevapi\TableInsert values(array $row_values)
}

TableSelect クラス

はじめに

テーブルからレコードを取得する操作を行うステートメントです

クラス概要

mysql_xdevapi\TableSelect
class mysql_xdevapi\TableSelect implements mysql_xdevapi\Executable {
/* メソッド */
public mysql_xdevapi\TableSelect bind(array $placeholder_values)
public mysql_xdevapi\RowResult execute()
public mysql_xdevapi\TableSelect groupBy(mixed $sort_expr)
public mysql_xdevapi\TableSelect having(string $sort_expr)
public mysql_xdevapi\TableSelect limit(int $rows)
public mysql_xdevapi\TableSelect lockExclusive(int $lock_waiting_option = ?)
public mysql_xdevapi\TableSelect lockShared(int $lock_waiting_option = ?)
public mysql_xdevapi\TableSelect offset(int $position)
public mysql_xdevapi\TableSelect orderby(mixed $sort_expr, mixed ...$sort_exprs)
public mysql_xdevapi\TableSelect where(string $where_expr)
}

TableUpdate クラス

はじめに

テーブル上のレコードを更新する操作を行うステートメントです。

クラス概要

mysql_xdevapi\TableUpdate
class mysql_xdevapi\TableUpdate implements mysql_xdevapi\Executable {
/* メソッド */
public mysql_xdevapi\TableUpdate bind(array $placeholder_values)
public mysql_xdevapi\TableUpdate execute()
public mysql_xdevapi\TableUpdate limit(int $rows)
public mysql_xdevapi\TableUpdate orderby(mixed $orderby_expr, mixed ...$orderby_exprs)
public mysql_xdevapi\TableUpdate set(string $table_field, string $expression_or_literal)
public mysql_xdevapi\TableUpdate where(string $where_expr)
}

Warning クラス

はじめに

クラス概要

mysql_xdevapi\Warning
class mysql_xdevapi\Warning {
/* プロパティ */
public $message;
public $level;
public $code;
/* Constructor */
private __construct()
}

プロパティ

message

level

code