Skip to content

Instantly share code, notes, and snippets.

View pjrt's full-sized avatar
🤔
Thinking about why Github now has statuses

Pedro Rodriguez Tavarez pjrt

🤔
Thinking about why Github now has statuses
View GitHub Profile
@pjrt
pjrt / Test.scala
Last active December 15, 2015 22:19
"test1" should "test1" taggedAs(Tag("Test1")) in {
db.withSession {implicit s: Session =>
(A.ddl ++ B.ddl ++ AToB.ddl).drop
object A extends Table[(Int, String)]("a") {
def id = column[Int]("id", O.PrimaryKey)
def s = column[String]("s")
def * = id ~ s
def bs = AToB.filter(_.aId === id).flatMap(_.bFK)
}