Skip to content

Commit 03c5337

Browse files
authored
Merge pull request #5 from benr77/benr77-sqlite-relative-paths
Note that Sqlite DSN requires relative path
2 parents 13a2b86 + 7595e1a commit 03c5337

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Codeception/Module/Db.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@
104104
* user: 'userdb2'
105105
* password: ''
106106
*
107+
* ## Example with Sqlite
108+
*
109+
* modules:
110+
* enabled:
111+
* - Db:
112+
* dsn: 'sqlite:relative/path/to/sqlite-database.db'
113+
* user: ''
114+
* password: ''
115+
*
107116
* ## SQL data dump
108117
*
109118
* There are two ways of loading the dump into your database:
@@ -148,7 +157,7 @@
148157
*
149158
* PDO dsn elements for the supported drivers:
150159
* * MySQL: [PDO_MYSQL DSN](https://secure.php.net/manual/en/ref.pdo-mysql.connection.php)
151-
* * SQLite: [PDO_SQLITE DSN](https://secure.php.net/manual/en/ref.pdo-sqlite.connection.php)
160+
* * SQLite: [PDO_SQLITE DSN](https://secure.php.net/manual/en/ref.pdo-sqlite.connection.php) - use _relative_ path from the project root
152161
* * PostgreSQL: [PDO_PGSQL DSN](https://secure.php.net/manual/en/ref.pdo-pgsql.connection.php)
153162
* * MSSQL: [PDO_SQLSRV DSN](https://secure.php.net/manual/en/ref.pdo-sqlsrv.connection.php)
154163
* * Oracle: [PDO_OCI DSN](https://secure.php.net/manual/en/ref.pdo-oci.connection.php)

0 commit comments

Comments
 (0)