Transaction Management
Transaction Management
- public function openTransaction() — Begin a transaction, or set a savepoint if the connection is already transactional.
- public function saveTransaction() — Commit a transaction, or stage a savepoint for commit once the entire transaction completes if inside a transaction stack.
- public function isInsideTransaction() — Returns true if the connection is transactional.
- protected function getTransactionState() — Get the current @{class:AphrontDatabaseTransactionState} object, or create one if none exists.
- public function beginReadLocking()
- public function endReadLocking()
- public function isReadLocking()
- public function beginWriteLocking()
- public function endWriteLocking()
- public function isWriteLocking()
Other Methods
Other Methods
- public function getInsertID()
- public function getAffectedRows()
- public function selectAllResults()
- public function executeQuery($query)
- public function executeRawQueries($raw_queries)
- public function close()
- public function openConnection()
- public function __destruct()
- final public function setLastActiveEpoch($epoch)
- final public function getLastActiveEpoch()
- final public function setPersistent($persistent)
- final public function getPersistent()
- public function queryData($pattern)
- public function query($pattern)
- public function supportsAsyncQueries()
- public function supportsParallelQueries()
- public function setReadOnly($read_only)
- public function getReadOnly()
- public function setQueryTimeout($query_timeout)
- public function getQueryTimeout()
- public function asyncQuery($raw_query)
- public static function resolveAsyncQueries($conns, $asyncs)
- public function isIdle() — Is this connection idle and safe to close?
- public function rememberLock($lock)
- public function forgetLock($lock)
- public function forgetAllLocks()
- public function isHoldingAnyLock()
- public function killTransaction() — Rollback a transaction, or unstage the last savepoint if inside a transaction stack.
- public function __construct($configuration)
- public function escapeUTF8String($string)
- public function escapeBinaryString($string)
- public function escapeColumnName($name)
- public function escapeMultilineComment($comment)
- public function escapeStringForLikeClause($value)
- private function getConfiguration($key, $default)
- public function getQueryTranscript()