1 | <?php |
||
20 | class PDOSQLiteDriver extends PDODriverAbstract{ |
||
21 | |||
22 | /** |
||
23 | * The PDO drivername which is being used in the DSN |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $drivername = 'sqlite'; |
||
28 | |||
29 | /** |
||
30 | * Returns a DSN string using the given options |
||
31 | * @see http://php.net/manual/ref.pdo-sqlite.connection.php |
||
32 | * |
||
33 | * @return string DSN |
||
34 | */ |
||
35 | protected function getDSN():string { |
||
38 | |||
39 | /** |
||
40 | * Returns info about the database server |
||
41 | * |
||
42 | * @return string database's serverinfo string |
||
43 | */ |
||
44 | public function getServerInfo():string { |
||
47 | |||
48 | /** |
||
49 | * Establishes a database connection and returns the connection object |
||
50 | * |
||
51 | * @return \chillerlan\Database\Drivers\DBDriverInterface |
||
52 | * @throws \chillerlan\Database\DBException |
||
53 | */ |
||
54 | public function connect():DBDriverInterface{ |
||
78 | |||
79 | |||
80 | } |
||
81 |