> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# JDBC Table Metadata to Grid



\<table><tbody><tr><td>Project Availability</td>
            \<td /></tr>
          \<tr><td>Component Type</td>
            \<td>Orchestration, Test</td></tr>
          \<tr><td>Connection Inputs</td>
            \<td>One</td></tr>
          \<tr><td>Connection Outputs</td>
            \<td>Unlimited</td></tr></tbody></table>

The JDBC Table Metadata to Grid component takes the metadata from a JDBC table and uses this data to populate a [grid variable](https://docs.maia.ai/docs/guides/grid-variables.md).If the target table doesn't exist, the component function is dependent on the database type. Sybase and MySQL return a fail. Other drivers pass with an empty grid returned.> [!NOTE]
>
> In Snowflake, unquoted object identifiers are resolved as uppercase. Object identifiers encased in double quotes are resolved exactly as entered.
>
> * For example, `tablename` and `tableNAME` both resolve to `TABLENAME`.
> * Conversely, `"tablename"` would resolve to `tablename`.
>
> This means that a table whose name is all uppercase will resolve to uppercase *with or without* double quotes. It may be preferable to use table names in all uppercase when working with Snowflake.
>
> Read [Identifier Resolution](https://docs.snowflake.com/en/sql-reference/identifiers-syntax#label-identifier-casing) for more information.***## Properties**Name** `string` *required*A human-readable name for the component.**Database type** `drop-down` *required*Select the database type. Choose from:- Amazon Redshift
- IBM Db2 for i
- MariaDB
- Microsoft SQL Server
- Oracle
- PostgreSQL
- Snowflake
- SQL Server (Microsoft Driver)
- Sybase ASE**Connection URL** `string` *required*The URL for your chosen JDBC database.Although many parameters and options can be added to the end of the URL, it's generally easier to add them in the **Connection options** property, documented below.**Authentication type** `drop-down`When `Database type` is set to **Snowflake**, select whether to use a username and password or a key pair to authenticate. The default is key pair.**Username** `string`A valid username for the database connection.**Password** `string`Available when `Authentication type` is set to **Username and password**.Select the secret definition that represents your credentials for this connector.If you have not already saved your credentials for this connector as a secret definition, click **Add secret** to create a secret definition representing these credentials. Read [Secrets and secret definitions](https://docs.maia.ai/docs/guides/secrets-and-secret-definitions.md) for details about creating a secret definition.**Private key** `drop-down`When `Database type` is set to **Snowflake**, use the drop-down to select the corresponding secret definition that denotes the value of your private key.Read [AWS Secrets Manager](https://docs.maia.ai/docs/administration/aws-secrets-manager.md) to learn how to store secrets in AWS.> [!NOTE]
>
> The key/value JSON pattern shown in the warning below (with `\n` for newlines) is specific to key/value formatted secrets used by this component. Environment-level Snowflake connections use plaintext storage instead. Read [Using Snowflake key-pair authentication](https://docs.maia.ai/docs/administration/snowflake-key-pair-authentication.md) for details.> [!WARNING]
>
> For AWS users:
>
> If you're storing a multi-line secret in AWS Secrets Manager:
>
> 1. Add your key and value to the **Key/value** tab of the **Secret value** section when storing your secret.
> 2. Click the **Plaintext** tab.
> 3. Replace any whitespace characters before and after `-----` with `\n`. Do not remove whitespace characters in the `BEGIN/END RSA PRIVATE KEY` parts.
>
> Example: `{"dwh-bash-private-key":"-----BEGIN RSA PRIVATE KEY-----\nline1\nline2\nline3\n-----END RSA PRIVATE KEY-----"}`
>
> Alternatively, you can run the following code in your terminal, replacing values where appropriate:
>
> ```
>     PEM_CONTENT=$(awk '{printf "%s\\n", $0}' /path/to/your/file.pem)
>
>     aws secretsmanager create-secret \
>       --name "MyKeyValueSecretWithPem" \
>       --description "Secret with PEM file content" \
>       --secret-string "{\"pem\":\"$PEM_CONTENT\"}"
> ```> [!WARNING]
>
> For Azure users:
>
> Do not store multi-line secrets via the Azure Key Vault GUI, as newlines may be stripped. Instead, use the Azure CLI depending on your use case. Read [Store a multi-line secret in Azure Key Vault](https://learn.microsoft.com/en-us/azure/key-vault/secrets/multiline-secrets) to work around this issue.
>
> The following CLI command will maintain newlines:
>
> ```
>     az keyvault secret set --vault-name <vault-name> --name <secet-name> --file <key-file-name>
> ```**Require passphrase** `boolean` *required*Select whether to require a passphrase as part of using key pair authentication. Default is **No**.**Passphrase** `drop-down`Available when `Require passphrase` is set to **Yes**.Use the drop-down to select the corresponding secret definition that denotes the value of your passphrase.If your private key is passphrase protected, you will also need to add a secret to store the passphrase. Read [Using Snowflake key-pair authentication](https://docs.maia.ai/docs/administration/snowflake-key-pair-authentication.md) to learn how to store the Snowflake private key using a secret.**Connection options** `column editor`- **Parameter:** A JDBC parameter supported by the database driver. Manual setup is not usually required, since sensible defaults are assumed.
- **Value:** A value for the given parameter.To use grid variables, toggle **Use Grid Variable** on. For more information, read [Grid variables](https://docs.maia.ai/docs/guides/grid-variables.md).**Schema** `drop-down`Select a table schema.In Databricks, this property is known as `Schema (Database)`.**Table** `drop-down` *required*Select the table to pull metadata from.**Grid variable** `drop-down` *required*Drop-down list of grid variables. To learn more, read [Grid variables](https://docs.maia.ai/docs/guides/grid-variables.md).**Grid variable mapping** `multiple drop-downs` *required*Map each column in the grid variable to a particular "type" of metadata by selecting from the available drop-downs.To use grid variables, toggle **Use Grid Variable** on. For more information, read [Grid variables](https://docs.maia.ai/docs/guides/grid-variables.md).> [!NOTE]
>
> Due to licensing restrictions, this component uses the MariaDB driver when interacting with MySQL databases in Full SaaS deployments. For customers using a Hybrid SaaS deployment, the native MySQL driver can be used to interact directly with MySQL databases.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.