PluginProbe
Independent Analytics – WordPress Analytics Plugin / 1.28.2
Independent Analytics – WordPress Analytics Plugin v1.28.2
2.15.5 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 All 120 releases
independent-analytics / vendor / illuminate / database / ConnectionInterface.php
ConnectionInterface.php
152 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IAWP_SCOPED\Illuminate\Database;
4
5 use Closure;
6 interface ConnectionInterface
7 {
8 /**
9 * Begin a fluent query against a database table.
10 *
11 * @param \Closure|\Illuminate\Database\Query\Builder|string $table
12 * @param string|null $as
13 * @return \Illuminate\Database\Query\Builder
14 */
15 public function table($table, $as = null);
16 /**
17 * Get a new raw query expression.
18 *
19 * @param mixed $value
20 * @return \Illuminate\Database\Query\Expression
21 */
22 public function raw($value);
23 /**
24 * Run a select statement and return a single result.
25 *
26 * @param string $query
27 * @param array $bindings
28 * @param bool $useReadPdo
29 * @return mixed
30 */
31 public function selectOne($query, $bindings = [], $useReadPdo = \true);
32 /**
33 * Run a select statement against the database.
34 *
35 * @param string $query
36 * @param array $bindings
37 * @param bool $useReadPdo
38 * @return array
39 */
40 public function select($query, $bindings = [], $useReadPdo = \true);
41 /**
42 * Run a select statement against the database and returns a generator.
43 *
44 * @param string $query
45 * @param array $bindings
46 * @param bool $useReadPdo
47 * @return \Generator
48 */
49 public function cursor($query, $bindings = [], $useReadPdo = \true);
50 /**
51 * Run an insert statement against the database.
52 *
53 * @param string $query
54 * @param array $bindings
55 * @return bool
56 */
57 public function insert($query, $bindings = []);
58 /**
59 * Run an update statement against the database.
60 *
61 * @param string $query
62 * @param array $bindings
63 * @return int
64 */
65 public function update($query, $bindings = []);
66 /**
67 * Run a delete statement against the database.
68 *
69 * @param string $query
70 * @param array $bindings
71 * @return int
72 */
73 public function delete($query, $bindings = []);
74 /**
75 * Execute an SQL statement and return the boolean result.
76 *
77 * @param string $query
78 * @param array $bindings
79 * @return bool
80 */
81 public function statement($query, $bindings = []);
82 /**
83 * Run an SQL statement and get the number of rows affected.
84 *
85 * @param string $query
86 * @param array $bindings
87 * @return int
88 */
89 public function affectingStatement($query, $bindings = []);
90 /**
91 * Run a raw, unprepared query against the PDO connection.
92 *
93 * @param string $query
94 * @return bool
95 */
96 public function unprepared($query);
97 /**
98 * Prepare the query bindings for execution.
99 *
100 * @param array $bindings
101 * @return array
102 */
103 public function prepareBindings(array $bindings);
104 /**
105 * Execute a Closure within a transaction.
106 *
107 * @param \Closure $callback
108 * @param int $attempts
109 * @return mixed
110 *
111 * @throws \Throwable
112 */
113 public function transaction(Closure $callback, $attempts = 1);
114 /**
115 * Start a new database transaction.
116 *
117 * @return void
118 */
119 public function beginTransaction();
120 /**
121 * Commit the active database transaction.
122 *
123 * @return void
124 */
125 public function commit();
126 /**
127 * Rollback the active database transaction.
128 *
129 * @return void
130 */
131 public function rollBack();
132 /**
133 * Get the number of active transactions.
134 *
135 * @return int
136 */
137 public function transactionLevel();
138 /**
139 * Execute the given callback in "dry run" mode.
140 *
141 * @param \Closure $callback
142 * @return array
143 */
144 public function pretend(Closure $callback);
145 /**
146 * Get the name of the connected database.
147 *
148 * @return string
149 */
150 public function getDatabaseName();
151 }
152