You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: changelog.markdown
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,29 @@ title: Codeception Changelog
9
9
10
10
11
11
12
+
### module-db 3.2.0: 3.2.0
13
+
14
+
Released by [ szhajdu](https://github.com/szhajdu) on 2025/01/31 22:25:44 / [Repository](https://github.com/Codeception/module-db) / [Releases](https://github.com/Codeception/module-db/releases)
15
+
16
+
17
+
18
+
## What's Changed
19
+
* test: Run test against PHP 8.3 by **[szhajdu](https://github.com/szhajdu)** in https://github.com/Codeception/module-db/pull/71
20
+
* docs: Use short array syntax for consistency by **[W0rma](https://github.com/W0rma)** in https://github.com/Codeception/module-db/pull/72
21
+
* feat: Configure nullable types explicitly by **[W0rma](https://github.com/W0rma)** in https://github.com/Codeception/module-db/pull/73
22
+
* test: /opt/mssql-tools/bin/sqlcmd tool not found in given path by **[szhajdu](https://github.com/szhajdu)** in https://github.com/Codeception/module-db/pull/80
23
+
* test: Run test against PHP 8.4 by **[W0rma](https://github.com/W0rma)** in https://github.com/Codeception/module-db/pull/77
24
+
* test: Avoid deprecated direct access to driver and dbh property by **[W0rma](https://github.com/W0rma)** in https://github.com/Codeception/module-db/pull/81
25
+
* docs: Fix yaml format in PHPDoc and remove duplication by **[ThomasLandauer](https://github.com/ThomasLandauer)** in https://github.com/Codeception/module-db/pull/78
26
+
* chore: Remove unnecessary files from Composer package by **[s1lver](https://github.com/s1lver)** in https://github.com/Codeception/module-db/pull/83
27
+
28
+
## New Contributors
29
+
***[ThomasLandauer](https://github.com/ThomasLandauer)** made their first contribution in https://github.com/Codeception/module-db/pull/78
30
+
***[s1lver](https://github.com/s1lver)** made their first contribution in https://github.com/Codeception/module-db/pull/83
Released by [ TavoNiievez](https://github.com/TavoNiievez) on 2025/01/13 11:42:45 / [Repository](https://github.com/Codeception/module-laravel) / [Releases](https://github.com/Codeception/module-laravel/releases)
* ssl_cipher - list of one or more permissible ciphers to use for SSL encryption (MySQL specific, @seehttps://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-cipher)
62
-
* databases - include more database configs and switch between them in tests.
63
-
* initial_queries - list of queries to be executed right after connection to the database has been initiated, i.e. creating the database if it does not exist or preparing the database collation
64
-
* skip_cleanup_if_failed - Do not perform the cleanup if the tests failed. If this is used, manual cleanup might be required when re-running
65
-
### Example
66
-
67
-
modules:
68
-
enabled:
69
-
- Db:
70
-
dsn: 'mysql:host=localhost;dbname=testdb'
71
-
user: 'root'
72
-
password: ''
73
-
dump: 'tests/_data/dump.sql'
74
-
populate: true
75
-
cleanup: true
76
-
reconnect: true
77
-
waitlock: 10
78
-
skip_cleanup_if_failed: true
79
-
ssl_key: '/path/to/client-key.pem'
80
-
ssl_cert: '/path/to/client-cert.pem'
81
-
ssl_ca: '/path/to/ca-cert.pem'
82
-
ssl_verify_server_cert: false
83
-
ssl_cipher: 'AES256-SHA'
84
-
initial_queries:
85
-
- 'CREATE DATABASE IF NOT EXISTS temp_db;'
86
-
- 'USE temp_db;'
87
-
- 'SET NAMES utf8;'
43
+
Connection is done by database drivers, which are stored in the `Codeception\Lib\Driver` namespace.
44
+
Check out the drivers if you run into problems loading dumps and cleaning databases.
45
+
46
+
### Example `Functional.suite.yml`
47
+
{% highlight yaml %}
48
+
49
+
modules:
50
+
enabled:
51
+
- Db:
52
+
dsn: 'mysql:host=localhost;dbname=testdb'
53
+
user: 'root'
54
+
password: ''
55
+
dump: 'tests/Support/Data/dump.sql'
56
+
populate: true # whether the dump should be loaded before the test suite is started
57
+
cleanup: true # whether the dump should be reloaded before each test
58
+
reconnect: true # whether the module should reconnect to the database before each test
59
+
waitlock: 10 # wait lock (in seconds) that the database session should use for DDL statements
60
+
databases: # include more database configs and switch between them in tests.
61
+
skip_cleanup_if_failed: true # Do not perform the cleanup if the tests failed. If this is used, manual cleanup might be required when re-running
62
+
ssl_key: '/path/to/client-key.pem' # path to the SSL key (MySQL specific, see https://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-key)
63
+
ssl_cert: '/path/to/client-cert.pem' # path to the SSL certificate (MySQL specific, see https://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-cert)
64
+
ssl_ca: '/path/to/ca-cert.pem' # path to the SSL certificate authority (MySQL specific, see https://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-ca)
ssl_cipher: 'AES256-SHA' # list of one or more permissible ciphers to use for SSL encryption (MySQL specific, see https://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-cipher)
67
+
initial_queries: # list of queries to be executed right after connection to the database has been initiated, i.e. creating the database if it does not exist or preparing the database collation
0 commit comments