summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Driver/Statement.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/Statement.php')
-rw-r--r--vendor/doctrine/dbal/src/Driver/Statement.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Driver/Statement.php b/vendor/doctrine/dbal/src/Driver/Statement.php
new file mode 100644
index 0000000..5f91b49
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Driver/Statement.php
@@ -0,0 +1,39 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Driver;
6
7use Doctrine\DBAL\ParameterType;
8
9/**
10 * Driver-level statement
11 */
12interface Statement
13{
14 /**
15 * Binds a value to a corresponding named (not supported by mysqli driver, see comment below) or positional
16 * placeholder in the SQL statement that was used to prepare the statement.
17 *
18 * As mentioned above, the named parameters are not natively supported by the mysqli driver, use executeQuery(),
19 * fetchAll(), fetchArray(), fetchColumn(), fetchAssoc() methods to have the named parameter emulated by doctrine.
20 *
21 * @param int|string $param Parameter identifier. For a prepared statement using named placeholders,
22 * this will be a parameter name of the form :name. For a prepared statement
23 * using question mark placeholders, this will be the 1-indexed position
24 * of the parameter.
25 * @param mixed $value The value to bind to the parameter.
26 * @param ParameterType $type Explicit data type for the parameter using the {@see ParameterType}
27 * constants.
28 *
29 * @throws Exception
30 */
31 public function bindValue(int|string $param, mixed $value, ParameterType $type): void;
32
33 /**
34 * Executes a prepared statement
35 *
36 * @throws Exception
37 */
38 public function execute(): Result;
39}