Linked Table
Overview
➡️ Create a table into the database linked to an external database. The data is not stored into the database
Arguments
Mandatory inputs
databaseUrl— Database URLConnection url of the database. For PostGIS jdbc:postgresql_h2://hostname:5432/databaseName. For H2 jdbc:h2:tcp://localhost/D:/data/test
Type:
StringlocalTableName— Name of created tableName of the local linked table.
Type:
Stringpassword— User passwordUser password when connecting to the external database
Type:
StringremoteTableName— External table nameExternal Table name or query. If a query is used instead of the original table name, then the table is read only. Queries must be enclosed in parenthesis: (SELECT * FROM ORDERS).
Type:
Stringusername— User nameUser name when connecting to the external database
Type:
String
Optional inputs
driverClass— Driver nameName of the class to connect to the external database.
Type:
StringDefault:
org.h2gis.postgis_jts.DriverAllowed values:
org.h2gis.postgis_jts.Driver,org.h2.DriverfetchSize— Fetch sizethe number of rows fetched, a hint with non-negative number of rows to fetch from the external table at once, may be ignored by the driver of external database. 0 is default and means no hint. The value is passed to java.sql.Statement.setFetchSize() method.
Type:
IntegerDefault:
0force— ForceCreate the LINKED TABLE even if the remote database/table does not exist.
Type:
BooleanremoteSchemaName— External table schemaExternal Table Schema ex: public
Type:
StringDefault:
public
Output
result— Local table nameThe name of the local linked table, can be used as an input for another process
Type:
String