<resource ...>
...
<connectorRef>
<filter>
connectorBundle = "com.evolveum.polygon.sql.connector-sql-generic"
</filter>
</connectorRef>
<connectorConfiguration>
<configurationProperties>
<jdbcUrl>jdbc:postgresql://localhost:5432/mydb</jdbcUrl>
<username>admin</username>
<password>secret</password>
<scanTableFilter>^(app_.*|user|group)$</scanTableFilter>
<scanExcludeTables>^tmp_</scanExcludeTables>
</configurationProperties>
</connectorConfiguration>
...
</resource>
Connector configuration
|
Since 4.11
This functionality is available since version 4.11.
|
The SQL framework connector configuration is provided by SqlConnectorConfiguration.
This article is part of the SQL connector development reference and guidance materials. See How to develop connectors using the SQL framework for the section introduction.
Configuration properties
Set via the ConnId connector configuration (for example the midPoint connector form), not via the manifest.
| Property | Type | Default | Description |
|---|---|---|---|
|
String |
required |
JDBC connection URL (e.g., |
|
String |
required |
Database username |
|
String (guarded) |
required |
Database password. Never echoed back in |
|
Integer |
|
Maximum HikariCP connections in the pool |
|
Integer |
|
How long to wait for a connection from the pool |
|
Integer |
|
Idle connection eviction timeout |
|
Boolean |
|
Declared for API compatibility. NOTE: this property does not currently affect pool behavior; use |
|
String |
|
Optional SQL statement passed to HikariCP as the connection test query. If not specified built-in JDBC 4 connection validation is used. |
|
Boolean |
|
Discover regular tables during schema detection and expose them via connector if possible. |
|
Boolean |
|
Discover SQL views during schema detection and expose them via connector if possible. |
|
String (regex) |
|
Include filter — only tables whose name matches this pattern are discovered |
|
String (regex) |
|
Include filter — only views whose name matches this pattern are discovered |
|
String (regex) |
|
Exclude filter — tables matching this pattern are not discovered. Takes precedence over |
|
String (regex) |
|
Exclude filter — views matching this pattern are not discovered. Takes precedence over |
|
String |
|
Path to the |
|
Boolean |
|
Enables development support: two additional development object classes for schema introspection (see SQL schema discovery), native table definition retrieval, and script validation from the management system (see Custom connector classes and bundles). Java connector subclasses that pass |
Schema auto-discovery is enabled when scanTables or scanViews is set to true.
If both are false, only the tables explicitly referenced by your schema scripts are detected (targeted discovery).
getAutoDiscoverSchema() (used by older API surfaces) reports auto-discovery as enabled when either scanTables or scanViews is true — scanning only one of the two is enough to turn auto-discovery on.
|
Driver resolution
The JDBC driver class is resolved automatically from the jdbcUrl scheme:
| URL prefix | Driver class | Example |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When an unrecognized prefix is specified, the driver class falls back to HikariCP which derives the prefix from the JDBC URL. The driver JAR must be part of the connector bundle (see Custom connector classes and bundles).
Example
A minimal midPoint connector fragment: