diff options
| author | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
| commit | bf6655a534a6775d30cafa67bd801276bda1d98d (patch) | |
| tree | c6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/doctrine/dbal/src/Driver/Statement.php | |
| parent | 94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff) | |
| download | AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.tar.gz AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.tar.bz2 AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip | |
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/Statement.php')
| -rw-r--r-- | vendor/doctrine/dbal/src/Driver/Statement.php | 39 |
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 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\ParameterType; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * Driver-level statement | ||
| 11 | */ | ||
| 12 | interface 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 | } | ||
