Skip to main content
Skip table of contents

Connection and Data Source Management

You are looking at an older version of the documentation. The latest version is found here.

SYSADMIN.createConnection

This procedure creates a connection:

SQL
SYSADMIN.createConnection(IN name string, IN jbossCLITemplateName string, IN connectionOrResourceAdapterProperties string, IN encryptedProperties string)

It takes the following parameters:

ParameterDescription
nameName of the new connection
jbossCLITemplateNameName of the CLI template used
connectionOrResourceAdapterPropertiesProperties of the new connection; may be null
encryptedPropertiesOptional encrypted properties

The actual JNDI name will be formed from the given name and the CLI template name joined with the minus sign (like template-name).

SYSADMIN.importConnection

This procedure imports a connection which will not fail if a connection cannot be established:

SQL
SYSADMIN.importConnection(IN name string, IN jbossCLITemplateName string, IN connectionOrResourceAdapterProperties string, IN encryptedProperties string)

It takes the following parameters:

ParameterDescription
nameName of the imported connection
jbossCLITemplateNameName of the CLI template used
connectionOrResourceAdapterPropertiesProperties of the new connection; may be null
encryptedPropertiesOptional encrypted properties

The actual JNDI name will be formed from the given name and the CLI template name joined with the minus sign (like template-name).

SYSADMIN.removeConnection

This procedure removes a connection:

SQL
SYSADMIN.removeConnection(IN name string)

It takes a single parameter: name of the connection to be removed.

SYSADMIN.createDataSource

This procedure creates a data source:

SQL
SYSADMIN.createDataSource(IN name string, IN translator string, IN modelProperties string, IN translatorProperties string, encryptedModelProperties string, encryptedTranslatorProperties string)

It takes the following parameters:

ParameterDescription
nameName of the new data source
translatorName of translator
modelPropertiesModel properties; may be null
translatorPropertiesTranslator properties; may be null
encryptedModelPropertiesOptional encrypted model properties
encryptedTranslatorPropertiesOptional encrypted translator properties
If the data source is based on a modular connector, the modular connector should be deployed via the SYSADMIN.deployModularConnector procedure before creating the data source. Please refer to Modular Connectors Management for more details.

SYSADMIN.importDataSource

This procedure imports a data source:

SQL
SYSADMIN.importDataSource(IN name string, IN translator string, IN modelProperties string, IN translatorProperties string, encryptedModelProperties string, encryptedTranslatorProperties string)

It takes the following parameters:

ParameterDescription
nameName of the imported data source
translatorName of translator
modelPropertiesModel properties; may be null
translatorPropertiesTranslator properties; may be null
encryptedModelPropertiesOptional encrypted model properties
encryptedTranslatorPropertiesOptional encrypted translator properties
If the data source is based on a modular connector, the respective modular connector should be deployed via the SYSADMIN.deployModularConnector procedure before importing the data source. Please refer to Modular Connectors Management for more details.

SYSADMIN.recreateConnection

This procedure removes the specified connection and then recreates it using the stored template name and properties:

SQL
SYSADMIN.recreateConnection(IN name string)

SYSADMIN.removeDataSource

This procedure removes the specified data source:

SQL
SYSADMIN.removeDataSource(IN name string)

SYSADMIN.refreshDataSource

This procedure refreshes the specified data source:

SQL
SYSADMIN.refreshDataSource(IN name string)

SYSADMIN.refreshSchema

This procedure refreshes the specified schema, physical or virtual:

SQL
SYSADMIN.refreshSchema(IN name string)

SYSADMIN.refreshAllDataSources

This procedure refreshes all data sources:

SQL
SYSADMIN.refreshAllDataSources() 

SYSADMIN.refreshAllSchemas

This procedure refreshes all schemas:

SQL
SYSADMIN.refreshAllSchemas() 

SYSADMIN.testConnection

This procedure checks the connection with the given properties:

SQL
SYSADMIN.testConnection(IN jbossCLITemplateName string, IN connectionOrResourceAdapterProperties string, IN translator string, IN translatorProperties string)

SYSADMIN.getDataSourceMetadataDiff

This procedure returns metadata difference for the specified data source:

SQL
SYSADMIN.getDataSourceMetadataDiff(IN name string)

SYSADMIN.getAllDataSourcesMetadataDiff

This procedure returns metadata differences for all data sources:

SQL
SYSADMIN.getAllDataSourcesMetadataDiff() 

SYSADMIN.getCatalogs

This procedure returns the list of data source catalogs:

SQL
SYSADMIN.getCatalogs"("connectionName" => 'connection_name')

It takes a single parameter, the connection name, and returns values which can be used in creating a data source:

Database

Returned values

Additional Information

BigQuery

projectId

Connection without a projectId cannot be created

PostgreSQL

database list


Redshift

database list


Snowflake

database list


SQL Server

database list


SYSADMIN.getCatalogs procedure is available since v2.4.4 (supported databases: BigQuery, PostgreSQL, Redshift, Snowflake, SQL Server)

SYSADMIN.getSchemas

This procedure returns the list of data source schemas:

SQL
SYSADMIN.getSchemas"("connectionName" => 'connection_name')

It takes a single parameter, the connection name, and returns values that can be used in creating a data source:

Database

Returned values

Additional Information

BigQuery

Schemas within a project

Connection without a projectId cannot be created

Oracle

Namespace within a database

Connection without a database cannot be created

PostgreSQL

Schemas within a database

Without specifying a database, PostgreSQL only lists system schemas and the default one (public) for the default database (postgres)

Redshift

Schemas within a database

Redshift cannot list schemas without specifying a database

Snowflake

Schema list per database

Lists all schemas if the db property is not specified in the connection. If it is specified, only schemas within this database are listed

SQL Server

Schema list per database

All schemas are listed regardless of a database being specified 

SYSADMIN.getSchemas procedure is available since v2.4.4 (supported databases: BigQuery, Oracle, PostgreSQL, Redshift, Snowflake, SQL Server)

Connection Properties Validation

Connection properties are validated against the CLI templates when a connection is created, edited, deleted, and tested. Connection parameters not present in the CLI template are not accepted.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.