Skip to content

Commit

Permalink
0.6.0: slick 3.1.1 (and other version bumps)
Browse files Browse the repository at this point in the history
  • Loading branch information
nafg committed Mar 27, 2017
1 parent 8bb6f7e commit 3fd05ce
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
slick-additions
===============
# `slick-additions`

## Helpers for Scala Slick (slick.typesafe.com)



| Slick version | SBT dependency |
|---------------|------------------------------------------------------|
| 3.1.1 | `"io.github.nafg" %% "slick-additions" % "0.6.0"` |
| 3.0.3 | `"io.github.nafg" %% "slick-additions" % "0.5.2"` |

Artifacts are deployed to Bintray and synchronized to JCenter, so you may need to add `resolvers += Resolver.jcenterRepo` to your build.


Helpers for Scala Slick (slick.typesafe.com)
------

See https://github.com/nafg/slick-additions/blob/master/src/test/scala/slick/additions/KeyedTableTests.scala for an example.

Expand Down
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ lazy val `slick-additions` =
.settings(settings)
.settings(
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % "3.0.3",
"org.scalatest" %% "scalatest" % "3.0.0" % "test",
"com.h2database" % "h2" % "1.4.192" % "test",
"ch.qos.logback" % "logback-classic" % "1.1.7" % "test"
"com.typesafe.slick" %% "slick" % "3.1.1",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"com.h2database" % "h2" % "1.4.194" % "test",
"ch.qos.logback" % "logback-classic" % "1.2.2" % "test"
)
)
2 changes: 1 addition & 1 deletion project/scoverage.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resolvers += Classpaths.sbtPluginReleases

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.3.5")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0")

addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.1.0")
10 changes: 5 additions & 5 deletions src/test/scala/slick/additions/LookupBugTests.scala
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
package slick.test
package slick.additions

import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Await
import scala.concurrent.duration.Duration

object LookupBugTests extends App {
object driver extends scala.slick.driver.H2Driver
object driver extends slick.driver.H2Driver
import driver.api._
val db = Database.forURL("jdbc:h2:test0", driver = "org.h2.Driver")

implicit def mapper: BaseColumnType[Unfetched] = MappedColumnType.base[Unfetched, Long](_.key, Unfetched(_))
implicit def mapper: BaseColumnType[Unfetched] = MappedColumnType.base[Unfetched, Long](_.key, Unfetched)
case class Unfetched(key: Long)

case class Phone(person: Unfetched)
class Phones(tag: Tag) extends Table[Phone](tag, "phones") {
def person = column[Unfetched]("personid")
def * = person <> (Phone.apply, Phone.unapply _)
def person = column[Unfetched]("person_id")
def * = person <> (Phone.apply, Phone.unapply)
}
val Phones = TableQuery[Phones]
case class Person(name: String)
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "0.5.2"
version in ThisBuild := "0.6.0"

0 comments on commit 3fd05ce

Please sign in to comment.