I have been using import groovy.sql.Sql
@Keyword
def static void insertOpsForDD() throws ClassNotFoundException, SQLException {
def sql = Sql.newInstance(GlobalVariable.DB_AACCES_URL, GlobalVariable.DB_USER_KATALON, GlobalVariable.DB_PASS_KATALON, ‘oracle.jdbc.driver.OracleDriver’)
sql.connection.autoCommit = false
def sqlstr = """
Insert into AACCES.DEPOSITS_DISBURSEMENTS... not showing rest of sql....)
"""
try {
sql.execute(sqlstr);
sql.commit()
int rows = sql.updateCount
println("rows inserted = " + rows)
println("Successfully committed")
}
catch(Exception ex) {
sql.rollback()
println("Transaction rollback")
}
sql.close()
}
I am not able to compile the code anymore.
How can I get this library back and my code working?