Skip to main content
Session.connect_to_external_database(
    connection_config: ExternalDatabaseConnectionConfigT,
    /,
) → ExternalDatabaseConnection[ExternalDatabaseConnectionConfigT]
Connect to an external database using DirectQuery.
This feature is not part of the community edition: it needs to be unlocked.

Parameters

connection_config

The config to connect to the external database. Each DirectQuery plugin has its own ConnectionConfig class.