Performant database access in Scala
Scala Makefile
Latest commit 3c86a06 Mar 16, 2017 @gregghz gregghz committed on GitHub Merge pull request #48 from lucidsoftware/adds-postgres-module
Creates a postgres module to support types unique to postgresql


Build Status Maven Version Join the chat at

Relate is a lightweight, blazingly fast database access layer for Scala that abstracts the idiosyncricies of the JDBC while keeping complete control over the SQL.


libraryDependencies += "com.lucidchart" %% "relate" % "<version>"


val ids = Seq(1, 2, 3)
sql"SELECT email FROM users WHERE id in ($ids)".asMap { row =>
  row.long("id") -> row.string("email")
val id = 4
val email = ""
sql"INSERT INTO users VALUES ($id, $email)".execute()

Continue to Documentation