Page MenuHomePhorge
Diviner Tech Docs AphrontDatabaseConnection

abstract class AphrontDatabaseConnection
Phorge Technical Documentation (Storage)

This class is not documented.

Tasks

Transaction Management

Other Methods

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

abstract public function getInsertID()

This method is not documented.
Return
wild

abstract public function getAffectedRows()

This method is not documented.
Return
wild

abstract public function selectAllResults()

This method is not documented.
Return
wild

abstract public function executeQuery($query)

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

abstract public function executeRawQueries($raw_queries)

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

abstract public function close()

This method is not documented.
Return
wild

abstract public function openConnection()

This method is not documented.
Return
wild

public function __destruct()

This method is not documented.
Return
wild

final public function setLastActiveEpoch($epoch)

This method is not documented.
Parameters
$epoch
Return
wild

final public function getLastActiveEpoch()

This method is not documented.
Return
wild

final public function setPersistent($persistent)

This method is not documented.
Parameters
$persistent
Return
wild

final public function getPersistent()

This method is not documented.
Return
wild

public function queryData($pattern)

This method is not documented.
Parameters
$pattern
Return
wild

public function query($pattern)

This method is not documented.
Parameters
$pattern
Return
wild

public function supportsAsyncQueries()

This method is not documented.
Return
wild

public function supportsParallelQueries()

This method is not documented.
Return
wild

public function setReadOnly($read_only)

This method is not documented.
Parameters
$read_only
Return
wild

public function getReadOnly()

This method is not documented.
Return
wild

public function setQueryTimeout($query_timeout)

This method is not documented.
Parameters
$query_timeout
Return
wild

public function getQueryTimeout()

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()

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)

This method is not documented.
Parameters
$lock
Return
wild

public function forgetLock($lock)

This method is not documented.
Parameters
$lock
Return
wild

public function forgetAllLocks()

This method is not documented.
Return
wild

public function isHoldingAnyLock()

This method is not documented.
Return
wild

public function openTransaction()

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

Return
this

public function saveTransaction()

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

Return
this

public function killTransaction()

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

Return
this

public function isInsideTransaction()

Returns true if the connection is transactional.

Return
boolTrue if the connection is currently transactional.

protected function getTransactionState()

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

Return
AphrontDatabaseTransactionStateCurrent transaction state.

public function beginReadLocking()

This method is not documented.
Return
wild

public function endReadLocking()

This method is not documented.
Return
wild

public function isReadLocking()

This method is not documented.
Return
wild

public function beginWriteLocking()

This method is not documented.
Return
wild

public function endWriteLocking()

This method is not documented.
Return
wild

public function isWriteLocking()

This method is not documented.
Return
wild