← All changes
|
vendor/wpfluent/framework/src/WPFluent/Database/ConnectionInterface.php
+4
-8
1.41
→
2.1.0
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 \FluentBoards\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 | * |