Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14017452
D15673.id37772.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D15673.id37772.diff
View Options
diff --git a/src/aphront/storage/connection/AphrontDatabaseConnection.php b/src/aphront/storage/connection/AphrontDatabaseConnection.php
--- a/src/aphront/storage/connection/AphrontDatabaseConnection.php
+++ b/src/aphront/storage/connection/AphrontDatabaseConnection.php
@@ -16,6 +16,7 @@
abstract public function executeRawQuery($raw_query);
abstract public function executeRawQueries(array $raw_queries);
abstract public function close();
+ abstract public function openConnection();
public function queryData($pattern/* , $arg, $arg, ... */) {
$args = func_get_args();
diff --git a/src/aphront/storage/connection/AphrontIsolatedDatabaseConnection.php b/src/aphront/storage/connection/AphrontIsolatedDatabaseConnection.php
--- a/src/aphront/storage/connection/AphrontIsolatedDatabaseConnection.php
+++ b/src/aphront/storage/connection/AphrontIsolatedDatabaseConnection.php
@@ -22,6 +22,10 @@
}
}
+ public function openConnection() {
+ return;
+ }
+
public function close() {
return;
}
diff --git a/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php b/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
--- a/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
+++ b/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
@@ -27,6 +27,10 @@
$this->establishConnection();
}
+ public function openConnection() {
+ $this->requireConnection();
+ }
+
public function close() {
if ($this->lastResult) {
$this->lastResult = null;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 5, 5:14 PM (2 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6747588
Default Alt Text
D15673.id37772.diff (1 KB)
Attached To
Mode
D15673: Provide a way to explicitly establish a database connection
Attached
Detach File
Event Timeline
Log In to Comment