mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-03-31 09:13:38 -04:00
16 lines
253 B
Scala
16 lines
253 B
Scala
package lc
|
|
|
|
import java.sql._
|
|
|
|
class DBConn(){
|
|
val con: Connection = DriverManager.getConnection("jdbc:h2:./captcha", "sa", "")
|
|
|
|
def getStatement(): Statement = {
|
|
con.createStatement()
|
|
}
|
|
|
|
def closeConnection(): Unit = {
|
|
con.close()
|
|
}
|
|
}
|