Skip to content

Multi Source Database Driver

dbeaver-devops edited this page Dec 2, 2026 · 1 revision

Table of contents

CloudBeaver supports cross-database queries through Multi Source Database. Use one SQL Editor to query and join tables from multiple JDBC database connections. The multi-source connection provides access to the selected source data through a virtual database.

Important: Multi Source Database is read-only.

Multi Source database specialty

Multi Source Database is based on Apache Calcite, which provides a virtual SQL layer over existing JDBC connections. In CloudBeaver, this layer acts as a multi-source connection to the schemas and tables you select.

The driver works with any JDBC data source configured in CloudBeaver. Use it to run read-only cross-database joins and analytical queries across different database systems. For example, one query can join a PostgreSQL table with a MySQL table.

Multi Source Database is read-only. You can query and join data from source connections, but you can't change source data or database objects through this connection.

For information about the underlying query engine, see the Apache Calcite documentation.

Setting up

Set up each source connection before you create a Multi Source Database connection. A source connection is a regular database connection in CloudBeaver that provides data for Multi Source Database. Select an existing connection from Connections, or create and configure a new one. The multi-source connection reuses its settings and credentials.

  1. Click Connection in the toolbar, select New Connection, then select the driver for your source, such as PostgreSQL. For details, see Creating a connection. Create and test each source connection.

  2. Create a Multi Source Database connection and open its connection settings.

  3. On the Main tab, add the existing source connections you need from the dropdown, or drag them from Connections to the configuration tree. You can remove any added source from the multi-source configuration.

    You can add only source connections from the same project as the multi-source connection.

  4. Expand each source in the configuration tree. Use the checkboxes to select the schemas and tables you need from the source catalogs.

    Note: By default, a selected schema includes all its tables. If you select individual tables, the configuration includes only those tables from that schema. Add any other tables to the selection when you want to query them.

  5. To change the Apache Calcite settings, open the Driver properties tab.

  6. Select Create to save the Multi Source Database connection.

Access

The Access tab contains access permission settings.

For information on managing access, see Manage access permissions.

AI

Use the AI tab to control whether the connection can transfer information to the AI vendor.

For information on enabling this option, see AI Assistant setup.

Driver properties

Open the Driver properties tab to configure Multi Source Database. The following property is available:

Property Default Description
join.transitive.predicates true Infer filtering conditions from joins and push them to the source connections when possible

Connection details and initialization settings

Use the Connection details tab to set the connection name, project, description, and connection type. For information on these fields, see Configure connection settings.

Use the Initialization settings tab to configure connection initialization and behavior, such as the keep-alive interval and auto-commit settings. For information on these two settings, see Expert settings.

Powering Multi Source Database with CloudBeaver

Use one SQL editor to query data from the selected source connections. Apache Calcite plans the query and sends applicable operations to the underlying connections.

Queries in a Multi Source Database connection follow Apache Calcite syntax. Source-specific SQL features might not be available in a cross-database query.

Example:

The following query joins customer data from SQLite with booking details from PostgreSQL:

SELECT
    c."CustomerId",
    b."book_ref",
    b."book_date",
    b."total_amount" AS "flight_cost"
FROM "SQLite"."Customer" AS c
CROSS JOIN "postgresql_bookings"."bookings" AS b
LIMIT 10;

Multi Source Database objects

CloudBeaver lets you browse the selected source objects in Connections:

  • Schemas
    • Tables
      • Columns
    • Views
    • Procedures
    • Data Types

Note: The connection doesn't expose indexes, table constraints, or references. Relationship-based tools don't have relationship metadata for Multi Source Database objects.

Multi Source Database features

CloudBeaver provides the following features compatible with Multi Source Database connections, but not exclusive to it:

Category Feature
Data browsing View selected source tables in the Data Editor
SQL queries Query selected tables and join data across sources in the SQL Editor
MCP access Access Multi Source Database through CloudBeaver MCP Server from remote MCP clients

CloudBeaver Documentation

Clone this wiki locally