Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/storage/connection/AphrontIsolatedDatabaseConnection.php
| <?php | <?php | ||||
| final class AphrontIsolatedDatabaseConnection | final class AphrontIsolatedDatabaseConnection | ||||
| extends AphrontDatabaseConnection { | extends AphrontDatabaseConnection { | ||||
| private $configuration; | private $configuration; | ||||
| private static $nextInsertID; | private static $nextInsertID; | ||||
| private $insertID; | private $insertID; | ||||
| private $transcript = array(); | private $transcript = array(); | ||||
| private $allResults; | |||||
| private $affectedRows; | |||||
| public function __construct(array $configuration) { | public function __construct(array $configuration) { | ||||
| $this->configuration = $configuration; | $this->configuration = $configuration; | ||||
| if (self::$nextInsertID === null) { | if (self::$nextInsertID === null) { | ||||
| // Generate test IDs into a distant ID space to reduce the risk of | // Generate test IDs into a distant ID space to reduce the risk of | ||||
| // collisions and make them distinctive. | // collisions and make them distinctive. | ||||
| self::$nextInsertID = 55555000000 + mt_rand(0, 1000); | self::$nextInsertID = 55555000000 + mt_rand(0, 1000); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines | |||||