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: docs/en/configuration.rst
+14-2
Original file line number
Diff line number
Diff line change
@@ -323,9 +323,9 @@ specified directly as connection options.
323
323
default_migration_table: phinxlog
324
324
default_environment: development
325
325
development:
326
-
dsn: %%DATABASE_URL%%
326
+
dsn: '%%DATABASE_URL%%'
327
327
production:
328
-
dsn: %%DATABASE_URL%%
328
+
dsn: '%%DATABASE_URL%%'
329
329
name: production_database
330
330
331
331
If the supplied DSN is invalid, then it is completely ignored.
@@ -391,6 +391,18 @@ Declaring an SQLite database uses a simplified structure:
391
391
adapter: sqlite
392
392
memory: true # Setting memory to *any* value overrides name
393
393
394
+
Starting with PHP 8.1 the SQlite adapter supports ``cache`` and ``mode``
395
+
query parameters by using the `URI scheme <https://www.sqlite.org/uri.html>`_ as long as ``open_basedir`` is unset.
396
+
397
+
.. code-block:: yaml
398
+
399
+
environments:
400
+
testing:
401
+
adapter: sqlite
402
+
name: my_app
403
+
mode: memory # Determines if the new database is opened read-only, read-write, read-write and created if it does not exist, or that the database is a pure in-memory database that never interacts with disk, respectively.
404
+
cache: shared # Determines if the new database is opened using shared cache mode or with a private cache.
0 commit comments