Skip to content

kawasima/goku-jdbc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goku JDBC

This is an Oracle JDBC DataSource wrapper. It replace the SQLException message with オッス ORA-XXXXX when there is a corresponding error.

GokuDataSource ds = new GokuDataSource();
ds.setConnectionFactoryName("oracle.jdbc.pool.OracleDataSource");
ds.setURL("jdbc:oracle:thin:@localhost:1521:xe");
ds.setUser("scott");
ds.setPassword("tiger");
try (Connection conn = ds.getConnection();
     Statement stmt = conn.createStatement()) {
    stmt.execute("SELECT hoge FROM huga");
}
net.unit8.goku.GokuSQLException: オッス ORA-00942

About

🐲 Ossu ORA-XXXXX 🔮

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages