Sha256: cf5e7fbd9f21d2efa16097d17d58392f977335c7137902de82c189d12035e81b
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
Contents
package org.embulk.input.sqlserver; import java.sql.Connection; import java.sql.SQLException; import org.embulk.input.jdbc.JdbcInputConnection; public class SQLServerInputConnection extends JdbcInputConnection { private String transactionIsolationLevel; public SQLServerInputConnection(Connection connection, String schemaName) throws SQLException { super(connection, schemaName); } public SQLServerInputConnection(Connection connection, String schemaName, String transactionIsolationLevel) throws SQLException { super(connection, schemaName); this.transactionIsolationLevel = transactionIsolationLevel; } @Override protected void setSearchPath(String schema) throws SQLException { // NOP } @Override protected String buildTableName(String tableName) { StringBuilder sb = new StringBuilder(); if (schemaName != null) { sb.append(quoteIdentifierString(schemaName)).append("."); } sb.append(quoteIdentifierString(tableName)); if (transactionIsolationLevel != null) { sb.append(" with (" + transactionIsolationLevel + ")"); } return sb.toString(); } }
Version data entries
4 entries across 4 versions & 1 rubygems