Db::connect()
(Re)connect the database
Db::connect(array|null $params = null): Kirby\Database\Database
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $params | arrayornull |
null
|
Pass [] to use the default params from the config,don't pass any argument to get the current connection |