Page MenuHomeClusterLabs Projects
Diviner Tech Docs AphrontMySQLiDatabaseConnection

final class AphrontMySQLiDatabaseConnection
Phorge Technical Documentation (Storage)

This class is not documented.

Tasks

Transaction Management

Other Methods

Methods

public function getInsertID()

This method is not documented.
Return
wild

public function getAffectedRows()

This method is not documented.
Return
wild

public function selectAllResults()
Inherited

This method is not documented.
Return
wild

public function executeQuery($query)
Inherited

This method is not documented.
Parameters
PhutilQueryString$query
Return
wild

public function executeRawQueries($raw_queries)
Inherited

This method is not documented.
Parameters
array$raw_queries
Return
wild

public function close()
Inherited

This method is not documented.
Return
wild

public function openConnection()
Inherited

This method is not documented.
Return
wild

public function __destruct()
Inherited

This method is not documented.
Return
wild

final public function setLastActiveEpoch($epoch)
Inherited

This method is not documented.
Parameters
$epoch
Return
wild

final public function getLastActiveEpoch()
Inherited

This method is not documented.
Return
wild

final public function setPersistent($persistent)
Inherited

This method is not documented.
Parameters
$persistent
Return
wild

final public function getPersistent()
Inherited

This method is not documented.
Return
wild

public function queryData($pattern)
Inherited

This method is not documented.
Parameters
$pattern
Return
wild

public function query($pattern)
Inherited

This method is not documented.
Parameters
$pattern
Return
wild

public function supportsAsyncQueries()

This method is not documented.
Return
wild

public function supportsParallelQueries()
Inherited

This method is not documented.
Return
wild

public function setReadOnly($read_only)
Inherited

This method is not documented.
Parameters
$read_only
Return
wild

public function getReadOnly()
Inherited

This method is not documented.
Return
wild

public function setQueryTimeout($query_timeout)
Inherited

This method is not documented.
Parameters
$query_timeout
Return
wild

public function getQueryTimeout()
Inherited

This method is not documented.
Return
wild

public function asyncQuery($raw_query)

This method is not documented.
Parameters
$raw_query
Return
wild

public static function resolveAsyncQueries($conns, $asyncs)

This method is not documented.
Parameters
array$conns
array$asyncs
Return
wild

public function isIdle()
Inherited

AphrontDatabaseConnection

Is this connection idle and safe to close?

A connection is "idle" if it can be safely closed without loss of state. Connections inside a transaction or holding locks are not idle, even though they may not actively be executing queries.

Return
boolTrue if the connection is idle and can be safely closed.

public function rememberLock($lock)
Inherited

This method is not documented.
Parameters
$lock
Return
wild

public function forgetLock($lock)
Inherited

This method is not documented.
Parameters
$lock
Return
wild

public function forgetAllLocks()
Inherited

This method is not documented.
Return
wild

public function isHoldingAnyLock()
Inherited

This method is not documented.
Return
wild

public function openTransaction()
Inherited

AphrontDatabaseConnection

Begin a transaction, or set a savepoint if the connection is already transactional.

Return
this

public function saveTransaction()
Inherited

AphrontDatabaseConnection

Commit a transaction, or stage a savepoint for commit once the entire transaction completes if inside a transaction stack.

Return
this

public function killTransaction()
Inherited

AphrontDatabaseConnection

Rollback a transaction, or unstage the last savepoint if inside a transaction stack.

Return
this

public function isInsideTransaction()
Inherited

AphrontDatabaseConnection

Returns true if the connection is transactional.

Return
boolTrue if the connection is currently transactional.

protected function getTransactionState()
Inherited

AphrontDatabaseConnection

Get the current AphrontDatabaseTransactionState object, or create one if none exists.

Return
AphrontDatabaseTransactionStateCurrent transaction state.

public function beginReadLocking()
Inherited

This method is not documented.
Return
wild

public function endReadLocking()
Inherited

This method is not documented.
Return
wild

public function isReadLocking()
Inherited

This method is not documented.
Return
wild

public function beginWriteLocking()
Inherited

This method is not documented.
Return
wild

public function endWriteLocking()
Inherited

This method is not documented.
Return
wild

public function isWriteLocking()
Inherited

This method is not documented.
Return
wild

protected function connect()

This method is not documented.
Return
wild

protected function rawQuery($raw_query)

This method is not documented.
Parameters
$raw_query
Return
wild

protected function rawQueries($raw_queries)

This method is not documented.
Parameters
array$raw_queries
Return
wild

protected function fetchAssoc($result)

This method is not documented.
Parameters
$result
Return
wild

protected function getErrorCode($connection)

This method is not documented.
Parameters
$connection
Return
wild

protected function getErrorDescription($connection)

This method is not documented.
Parameters
$connection
Return
wild

protected function closeConnection()

This method is not documented.
Return
wild

protected function freeResult($result)

This method is not documented.
Parameters
$result
Return
wild

public function __construct($configuration)
Inherited

This method is not documented.
Parameters
array$configuration
Return
this//Implicit.//

public function __clone()
Inherited

This method is not documented.
Return
wild

public function escapeColumnName($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function escapeMultilineComment($comment)
Inherited

This method is not documented.
Parameters
$comment
Return
wild

public function escapeStringForLikeClause($value)
Inherited

This method is not documented.
Parameters
$value
Return
wild

protected function getConfiguration($key, $default)
Inherited

This method is not documented.
Parameters
$key
$default
Return
wild

private function establishConnection()
Inherited

This method is not documented.
Return
wild

protected function requireConnection()
Inherited

This method is not documented.
Return
wild

protected function beginAsyncConnection()
Inherited

This method is not documented.
Return
wild

protected function endAsyncConnection($connection)
Inherited

This method is not documented.
Parameters
$connection
Return
wild

protected function processResult($result)
Inherited

This method is not documented.
Parameters
$result
Return
wild

protected function checkWrite($raw_query)
Inherited

This method is not documented.
Parameters
$raw_query
Return
wild

protected function throwQueryException($connection)
Inherited

This method is not documented.
Parameters
$connection
Return
wild

private function throwCommonException($errno, $error)
Inherited

This method is not documented.
Parameters
$errno
$error
Return
wild

protected function throwConnectionException($errno, $error, $user, $host)
Inherited

This method is not documented.
Parameters
$errno
$error
$user
$host
Return
wild

protected function throwQueryCodeException($errno, $error)
Inherited

This method is not documented.
Parameters
$errno
$error
Return
wild

public function simulateErrorOnNextQuery($error)
Inherited

AphrontBaseMySQLDatabaseConnection

Force the next query to fail with a simulated error. This should be used ONLY for unit tests.

Parameters
$error
Return
wild

protected function validateUTF8String($string)
Inherited

AphrontBaseMySQLDatabaseConnection

Check inserts for characters outside of the BMP. Even with the strictest settings, MySQL will silently truncate data when it encounters these, which can lead to data loss and security problems.

Parameters
$string
Return
wild

public function escapeUTF8String($string)

This method is not documented.
Parameters
$string
Return
wild

public function escapeBinaryString($string)

This method is not documented.
Parameters
$string
Return
wild