Sha256: 887dd78ca69fd7da44a79b2b09cc79a9fdf74977c3d9ea1767940934e4c667ab
Contents?: true
Size: 814 Bytes
Versions: 2
Compression:
Stored size: 814 Bytes
Contents
package org.embulk.output.postgresql; import org.embulk.output.jdbc.JdbcOutputConnection; import org.embulk.output.jdbc.JdbcOutputConnector; import org.embulk.output.jdbc.JdbcSchema; import org.embulk.output.jdbc.StandardBatchInsert; import java.io.IOException; import java.sql.PreparedStatement; import java.sql.SQLException; public class PostgresqlBatchUpsert extends StandardBatchInsert { public PostgresqlBatchUpsert(JdbcOutputConnector connector) throws IOException, SQLException { super(connector); } protected PreparedStatement newPreparedStatement(JdbcOutputConnection connection, String loadTable, JdbcSchema insertSchema) throws SQLException { return connection.prepareUpsertSql(loadTable, insertSchema); } }
Version data entries
2 entries across 2 versions & 1 rubygems