← All changes
|
vendor/wpfluent/framework/src/WPFluent/Database/ConnectionInterface.php
+21
-8
1.0.92
→
2.10.01
View file →
| @@ -27,12 +27,11 @@ | ||
| 27 | 27 | * Run a select statement and return a single result. |
| 28 | 28 | * |
| 29 | 29 | * @param string $query |
| 30 | 30 | * @param array $bindings |
| 31 | - * @param bool $useReadPdo | |
| 32 | 31 | * @return mixed |
| 33 | 32 | */ |
| 34 | - public function selectOne($query, $bindings = [], $useReadPdo = true); | |
| 33 | + public function selectOne($query, $bindings = []); | |
| 35 | 34 | |
| 36 | 35 | /** |
| 37 | 36 | * Run a select statement and return the first column of the first row. |
| 38 | 37 | * |
| @@ -37,14 +36,13 @@ | ||
| 37 | 36 | * Run a select statement and return the first column of the first row. |
| 38 | 37 | * |
| 39 | 38 | * @param string $query |
| 40 | 39 | * @param array $bindings |
| 41 | - * @param bool $useReadPdo | |
| 42 | 40 | * @return mixed |
| 43 | 41 | * |
| 44 | 42 | * @throws \FluentCommunity\Framework\Database\MultipleColumnsSelectedException |
| 45 | 43 | */ |
| 46 | - public function scalar($query, $bindings = [], $useReadPdo = true); | |
| 44 | + public function scalar($query, $bindings = []); | |
| 47 | 45 | |
| 48 | 46 | /** |
| 49 | 47 | * Run a select statement against the database. |
| 50 | 48 | * |
| @@ -49,12 +47,11 @@ | ||
| 49 | 47 | * Run a select statement against the database. |
| 50 | 48 | * |
| 51 | 49 | * @param string $query |
| 52 | 50 | * @param array $bindings |
| 53 | - * @param bool $useReadPdo | |
| 54 | 51 | * @return array |
| 55 | 52 | */ |
| 56 | - public function select($query, $bindings = [], $useReadPdo = true); | |
| 53 | + public function select($query, $bindings = []); | |
| 57 | 54 | |
| 58 | 55 | /** |
| 59 | 56 | * Run a select statement against the database and returns a generator. |
| 60 | 57 | * |
| @@ -59,12 +56,11 @@ | ||
| 59 | 56 | * Run a select statement against the database and returns a generator. |
| 60 | 57 | * |
| 61 | 58 | * @param string $query |
| 62 | 59 | * @param array $bindings |
| 63 | - * @param bool $useReadPdo | |
| 64 | 60 | * @return \Generator |
| 65 | 61 | */ |
| 66 | - public function cursor($query, $bindings = [], $useReadPdo = true); | |
| 62 | + public function cursor($query, $bindings = []); | |
| 67 | 63 | |
| 68 | 64 | /** |
| 69 | 65 | * Run an insert statement against the database. |
| 70 | 66 | * |
| @@ -178,5 +174,22 @@ | ||
| 178 | 174 | * |
| 179 | 175 | * @return string |
| 180 | 176 | */ |
| 181 | 177 | public function getDatabaseName(); |
| 178 | + | |
| 179 | + /** | |
| 180 | + * Run a raw, unprepared query against the connection and return a cursor. | |
| 181 | + * | |
| 182 | + * @param string $query | |
| 183 | + * @param array $bindings | |
| 184 | + * @return \Generator | |
| 185 | + */ | |
| 186 | + public function rawCursor($query, $bindings = []); | |
| 187 | + | |
| 188 | + /** | |
| 189 | + * Set the transaction manager instance on the connection. | |
| 190 | + * | |
| 191 | + * @param mixed $manager | |
| 192 | + * @return $this | |
| 193 | + */ | |
| 194 | + public function setTransactionManager($manager); | |
| 182 | 195 | } |