groovy
import groovy.sql.Sql
def sql = Sql.newInstance("jdbc:mysql://localhost:3306/mydatabase", "username", "password", "com.mysql.jdbc.Driver")
def result = sql.firstRow("SELECT * FROM employees WHERE id = ?", [123])
println "Employee Name: ${result.name}"
println "Employee Age: ${result.age}"
sql.close()