-
ScalikeJDBC
ScalikeJDBC
Just write SQL and get things done!
ScalikeJDBC is a tidy SQL-based DB access library for Scala developers. This library naturally wraps JDBC APIs and provides you easy-to-use and very fle...
-
Setup - ScalikeJDBC
ScalikeJDBC
build.sbt or
If you’re still using Scala 2.9, you can’t use
scalikejdbc-interpolation.
In your application, just add the following import.
import scalikejdbc._
libraryDependencies ++= S...
-
Setup - ScalikeJDBC
ScalikeJDBC
Setup
build.sbt or
If you’re still using Scala 2.9, you can’t use
scalikejdbc-interpolation.
In your application, just add the following import.
import scalikejdbc._
libraryDependencies...
-
Configuration - ScalikeJDBC
ScalikeJDBC
Loading JDBC Drivers
Class.forName(String)
java.sql.DriverManager.registerDriver(java.sql.Driver)
If you use
Connection Pool Settings
ConnectionPool should be initialized when starting ...
-
Operations - ScalikeJDBC
ScalikeJDBC
single,
single returns matched single row as an
Option value. If unexpectedly multiple rows are returned, runtime exception will be thrown.
import scalikejdbc._
val id = 123
// simple ...
-
Operations - ScalikeJDBC
ScalikeJDBC
Operations
single,
single returns matched single row as an
Option value. If unexpectedly multiple rows are returned, runtime exception will be thrown.
import scalikejdbc._
val id = 123
...