# Multiple-Schema Creation

Source: https://userguide.qualytics.io/source-datastore/datastore/deep-dive/multiple-schema/

Multi-Schema Creation allows you to discover and select multiple schemas from a single connection and create all corresponding source datastores in one step. Instead of adding each schema individually, you can onboard multiple schemas at once, streamlining the setup process for organizations with many schemas across their data platforms.

This page covers how the creation flow works, from schema discovery to the name template and the optional enrichment step. Multi-schema creation requires the **Manager** role. See the [Permissions](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/permissions/) page for details.

## Creation Flow

The multi-schema creation flow is a two-step wizard that guides you through discovering schemas from a connection and creating multiple source datastores at once.

```mermaid
graph TD
    A["Select Connection"] --> B["Discover Catalogs/Schemas"]
    B --> C["Select Schemas"]
    C --> D["Configure Properties"]
    D --> E["Validate & Create"]
    E --> F["Link Enrichment (Optional)"]
```

## Step 1: Source Datastore Configuration

In the first step, you configure the connection and select which schemas to onboard.

### Connection Selection

You can either:

- **Create a new connection**: Provide all connection details (host, port, credentials, etc.) from scratch.
- **Use an existing connection**: Select a previously saved connection to reuse its credentials.

For more information about connections, refer to the [Connection Overview](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/connection/) documentation.

### Catalog Discovery

For connectors that support a catalog hierarchy (e.g., databases in PostgreSQL, databases in Snowflake, projects in BigQuery), the first discovery step retrieves the list of available catalogs from the connection. You select which catalog to browse for schemas.

> **Tip**
>
> Click the **refresh** button next to the catalog dropdown to reload the available catalogs from your connection.

Not all connectors have a catalog level. For connectors like Oracle or DB2, schemas are discovered directly without a catalog selection step.

### Schema Discovery and Selection

Once a catalog is selected (or for connectors without a catalog level), the system discovers all available schemas and presents them in a multi-select dropdown.

Key behaviors:

- **Warning icons**: Schemas that already have an existing datastore display a warning icon with a tooltip showing which datastores are associated.
- **Search filtering**: You can filter schemas by name using the search field in the dropdown.
- **Selection count**: The dropdown shows how many schemas are selected (e.g., "3 selected").

> **Warning**
>
> You can select schemas that already have datastores, but this will create duplicate datastores for those schemas.

### Name Template

The **Name Template** field lets you define a naming pattern for the datastores that will be created. On a JDBC or Native connector, use the `{{schema}}` placeholder, which will be replaced with each schema name. On a DFS connector, use `{{path}}` (the whole root path) or `{{path_segment}}` (its last folder), such as `prod_{{path_segment}}`.

For example, with the template `production_{{schema}}` and schemas `public`, `staging`, and `analytics`:

| Schema | Generated Datastore Name |
| --- | --- |
| `public` | `production_public` |
| `staging` | `production_staging` |
| `analytics` | `production_analytics` |

> **Tip**
>
> A preview of the generated names is displayed below the name template field, showing how the first few datastores will be named.

A datastore name cannot contain `{` or `}`. Braces that are not a supported placeholder, such as `{{foo}}`, stay in the generated names, so those datastores are not created and are reported as errors when you click **Finish**.

If you narrow the selection back to one schema, the field changes from **Name Template** to **Name** and the placeholder is filled in with the remaining schema: `production_{{schema}}` becomes `production_public`. A single name that still contains braces shows **Remove { and }. A name template only applies with two or more selected** under the **Name** field, and clicking **Finish** does not create the datastore until you remove them.

### Additional Properties

| Field | Required | Description |
| --- | --- | --- |
| **Teams** | Yes | One or more teams to associate with all newly created datastores. |
| **Group** | No | Assign all datastores to a [datastore group](https://userguide.qualytics.io/source-datastore/grouping/getting-started/). |
| **Initiate Sync** | No | Automatically run a sync operation on each newly created datastore after creation. |

### Validation

Before creating the datastores, click **Test Connection** to validate connectivity for all selected schemas. The validation runs per-schema and reports individual results, so you can identify which schemas have issues before proceeding.

## Step 2: Enrichment Destination (Optional)

After configuring the datastores, an optional second step lets you link all of them to one enrichment destination: the datastore their scan results, remediation snapshots, materialized copies, and exports are written into.

You can pick an existing destination, or create one in the same step from a saved or a new connection.

> **Info**
>
> All datastores created in the batch are linked to the same destination. Each receives its own **unique prefix** derived from the name template (e.g., `_prod_public`, `_prod_sales`), so their tables do not collide in the destination. You can change any of them in the **Prefix** section before you click **Finish**.

For the steps, see [Add Multiple Schemas](https://userguide.qualytics.io/source-datastore/datastore/how-tos/add-multiple-schemas/).

## What Happens After Creation

Once the creation process completes, Qualytics returns a summary showing:

- **Created datastores**: The list of successfully created datastore IDs.
- **Errors**: Any schemas that failed to create, with the corresponding error message.

If **Initiate Sync** was enabled, a sync operation will automatically start on each successfully created datastore, detecting containers and fields within each schema.

---

## See Also

- **Supported Connectors**

  Every connector by family, with its enrichment support and multi-schema fields.

  [Supported Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-connectors/)
- **JDBC Connectors**

  How Qualytics reads relational databases and warehouses through JDBC.

  [JDBC Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/jdbc/)
- **DFS Connectors**

  How Qualytics reads files from cloud object storage and distributed file systems.

  [DFS Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/dfs/)
- **Native Connectors**

  How Qualytics reads a platform's own storage or API without its query engine.

  [Native Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/native/)
- **Supported File Formats**

  The file formats DFS datastores read, including compressed variants.

  [Supported File Formats](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-file-formats/)
- **Filename Globbing**

  How DFS datastores group files with similar names into one container.

  [Filename Globbing](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/filename-globbing/)
- **HashiCorp Vault**

  Pull connection credentials from a secrets manager instead of typing them in.

  [HashiCorp Vault](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/)
- **Examples**

  Real scenarios, from onboarding a warehouse to protecting a busy database.

  [Examples](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/examples/)
- **Best Practices**

  Recommendations for scoping datastores, sharing connections, and keeping access tight.

  [Best Practices](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/best-practices/)
- **Permissions**

  The role and team permission each datastore action needs.

  [Permissions](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/permissions/)
- **How It Works**

  How a datastore maps to your storage, the layers behind it, the lifecycle, and the Timeline.

  [How It Works](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/how-it-works/)
- **Connection**

  How a connection holds the credentials that one or more datastores share.

  [Connection](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/connection/)

*Last updated: November 16, 2026.*
