PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / trunk
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution vtrunk
2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 1.7.2 All 33 releases
← All changes | vendor/wpfluent/framework/src/WPFluent/Database/ConnectionInterface.php +31 -6 1.5.21trunk View file →
@@ -27,22 +27,31 @@
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 /**
36 + * Run a select statement and return the first column of the first row.
37 + *
38 + * @param string $query
39 + * @param array $bindings
40 + * @return mixed
41 + *
42 + * @throws \FluentBooking\Framework\Database\MultipleColumnsSelectedException
43 + */
44 + public function scalar($query, $bindings = []);
45 +
46 + /**
37 47 * Run a select statement against the database.
38 48 *
39 49 * @param string $query
40 50 * @param array $bindings
41 - * @param bool $useReadPdo
42 51 * @return array
43 52 */
44 - public function select($query, $bindings = [], $useReadPdo = true);
53 + public function select($query, $bindings = []);
45 54
46 55 /**
47 56 * Run a select statement against the database and returns a generator.
48 57 *
@@ -47,12 +56,11 @@
47 56 * Run a select statement against the database and returns a generator.
48 57 *
49 58 * @param string $query
50 59 * @param array $bindings
51 - * @param bool $useReadPdo
52 60 * @return \Generator
53 61 */
54 - public function cursor($query, $bindings = [], $useReadPdo = true);
62 + public function cursor($query, $bindings = []);
55 63
56 64 /**
57 65 * Run an insert statement against the database.
58 66 *
@@ -166,5 +174,22 @@
166 174 *
167 175 * @return string
168 176 */
169 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);
170 195 }