Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * Jingga |
| 4 | * |
| 5 | * PHP Version 8.1 |
| 6 | * |
| 7 | * @package phpOMS\DataStorage\Database\Connection |
| 8 | * @copyright Dennis Eichhorn |
| 9 | * @license OMS License 2.0 |
| 10 | * @version 1.0.0 |
| 11 | * @link https://jingga.app |
| 12 | */ |
| 13 | declare(strict_types=1); |
| 14 | |
| 15 | namespace phpOMS\DataStorage\Database\Connection; |
| 16 | |
| 17 | use phpOMS\DataStorage\Database\Query\Grammar\Grammar; |
| 18 | use phpOMS\DataStorage\Database\Schema\Grammar\Grammar as SchemaGrammar; |
| 19 | use phpOMS\DataStorage\DataStorageConnectionInterface; |
| 20 | |
| 21 | /** |
| 22 | * Database connection interface. |
| 23 | * |
| 24 | * @package phpOMS\DataStorage\Database\Connection |
| 25 | * @license OMS License 2.0 |
| 26 | * @link https://jingga.app |
| 27 | * @since 1.0.0 |
| 28 | */ |
| 29 | interface ConnectionInterface extends DataStorageConnectionInterface |
| 30 | { |
| 31 | /** |
| 32 | * Return grammar for this connection. |
| 33 | * |
| 34 | * @return Grammar |
| 35 | * |
| 36 | * @since 1.0.0 |
| 37 | */ |
| 38 | public function getGrammar() : Grammar; |
| 39 | |
| 40 | /** |
| 41 | * Return grammar for this connection. |
| 42 | * |
| 43 | * @return SchemaGrammar |
| 44 | * |
| 45 | * @since 1.0.0 |
| 46 | */ |
| 47 | public function getSchemaGrammar() : SchemaGrammar; |
| 48 | } |