类 VerticaDialect

    • 构造器详细资料

      • VerticaDialect

        public VerticaDialect()
    • 方法详细资料

      • getUpsertStatement

        public Optional<String> getUpsertStatement​(String database,
                                                   String tableName,
                                                   String[] fieldNames,
                                                   String[] uniqueKeyFields)
        从接口复制的说明: JdbcDialect
        Constructs the dialects upsert statement if supported; such as MySQL's DUPLICATE KEY UPDATE, or PostgreSQL's ON CONFLICT... DO UPDATE SET...

        If supported, the returned string will be used as a PreparedStatement. Fields in the statement must be in the same order as the fieldNames parameter.

        If the dialect does not support native upsert statements, the writer will fallback to SELECT ROW Exists + UPDATE/INSERT which may have poor performance.

        指定者:
        getUpsertStatement 在接口中 JdbcDialect
        返回:
        the dialects UPSERT statement or Optional.empty().