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
- abstract public function getInsertID()
- abstract public function getAffectedRows()
- abstract public function selectAllResults()
- abstract public function executeQuery($query)
- abstract public function executeRawQueries($raw_queries)
- abstract public function close()
- abstract 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.