Class H2StatementResolver

All Implemented Interfaces:
StatementResolver

public class H2StatementResolver extends GenericStatementResolver
  • Constructor Details

    • H2StatementResolver

      public H2StatementResolver()
  • Method Details

    • upsert

      public String upsert(String table, Stream<String> keyColumns, Stream<String> upsertColumns, Stream<String> upsertValues)
      H2: MERGE INTO Updates existing rows, and insert rows that don't exist. If no key column is specified, the primary key columns are used to find the row. If more than one row per new row is affected, an exception is thrown. https://www.h2database.com/html/commands.html#merge_into
    • timeoutClause

      public Optional<String> timeoutClause(int timeoutSeconds)