H2 Connector (Labs)

This node creates a connection to a H2 database file via its JDBC driver. You need to provide the path to the database file or the name when using in-memory mode. No username and password are required for H2 databases.

Options

Database dialect
Choose the registered database dialect here.
Use latest driver version available
If selected, upon execution the node will automatically use the driver with the latest (highest) driver version that is available for the current database type. This has the advantage that you do not need to touch the workflow after a driver update. However, the workflow might break in the rare case that the behavior of the driver e.g. type mapping changes with the newer version.
Database driver
Choose the JDBC driver to connect to the database here. You can select a specific version of the registered drivers via the drop-down list. Additional drivers can be registered via KNIME's preference page "KNIME -> Databases".
Location type
Specify the location type of the database.
  • Path: Use a database file.
  • In-memory: Use in-memory database.
Path
The path to the H2 database file. The corresponding driver URL template variable is file.
Database name
The in-memory H2 database name. The corresponding driver URL template variable is database.
JDBC parameters
This tab allows you to define JDBC driver connection parameter. The value of a parameter can be a constant, credential user, credential password or KNIME URL. For more information about the supported driver properties see the H2 documentation.
Input mapping by name
Columns that match the given name (or regular expression) and database type will be mapped to the specified KNIME type.
  • Column selection type: The option allows you to select how the column is matched.
    • Manual: Use the exact name of the column
    • Regex: Allow regex expressions to select multiple columns
  • Column name: The name or regex expression.
  • Database type: SQL type to map from.
  • Mapping to: Datatype to map to.
Input mapping by type
Columns that match the given database type will be mapped to the specified KNIME type.
  • From type: SQL type to map from.
  • To type: Datatype to map to.
Output mapping by name
Columns that match the given name (or regular expression) and KNIME type will be mapped to the specified database type.
  • Column selection type: The option allows you to select how the column is matched.
    • Manual: Use the exact name of the column
    • Regex: Allow regex expressions to select multiple columns
  • Column name: The name or regex expression.
  • Source type: Datatype to map from.
  • Mapping to: SQL type to map to.
Output mapping by type
Columns that match the given KNIME type will be mapped to the specified database type.
  • From type: Datatype to map from.
  • To type: SQL type to map to.
Additional settings
This tab allows you to define KNIME framework properties such as connection handling, advanced SQL dialect settings or logging options. The available properties depend on the selected database type and driver. For more information about the supported parameters see the KNIME Database Extension Guide.

Input Ports

This node has no input ports

Output Ports

Icon
H2 DB Connection.

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.