createConnection

Creates a database connection using the provided configuration. This method is only called when working with DbConnectionConfig (internally managed connections).

Some databases (like Sqlite) require read-only mode to be set during connection creation rather than after the connection is established.

Return

A configured Connection instance.

Parameters

dbConfig

The database configuration containing URL, credentials, and read-only flag.