Created
October 2, 2013 06:52
-
-
Save roundrop/6789917 to your computer and use it in GitHub Desktop.
S2JDBC で PostgreSQL の CopyManager を取得する方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public CopyManager getCopyManager() throws SQLException { | |
Connection conn = ((JdbcManagerImplementor) jdbcManager).getDataSource().getConnection(); | |
XAConnection xaConn = ((ConnectionWrapperImpl) conn).getXAConnection(); | |
Connection pgConn = xaConn.getConnection(); | |
return ((PGConnection) pgConn).getCopyAPI(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment