Connecting to databases
Waveless accepts multiple database connection at runtime being defined the under [[databases]] array. A generic id and an optional is_primary might be set:
Then the backend should be specified using [databases.connection.{backend_name}] and setting the required fields by the given backend.
Note that there could be multiple databases with different backends: multiple MySQL databases and Redis as a cache engine could be combined.
An example of a MySQL configuration (using the
waveless_sqlbackend) is given:
Get more details at waveless_commons::project::DatabaseConfig.