org.duckdb.JdbcUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of duckdb_jdbc Show documentation
Show all versions of duckdb_jdbc Show documentation
A JDBC-Compliant driver for the DuckDB data management system
package org.duckdb;
import java.sql.SQLException;
final class JdbcUtils {
@SuppressWarnings("unchecked")
static T unwrap(Object obj, Class iface) throws SQLException {
if (!iface.isInstance(obj)) {
throw new SQLException(obj.getClass().getName() + " not unwrappable from " + iface.getName());
}
return (T) obj;
}
private JdbcUtils() {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy