Skip to content
Browse files

Update to 2.0.0-RC1

  • Loading branch information...
1 parent 647168e commit e9cabdf4fdd94ca8d2e0fee7f60bd90128ba23f0 @cvogt cvogt committed
Showing with 10 additions and 5 deletions.
  1. +3 −3 build.sbt
  2. +6 −1 src/main/scala/scala/slick/driver/MyPostgresDriver.scala
  3. +1 −1 test-dbs/databases.properties.example
View
6 build.sbt
@@ -4,13 +4,13 @@ organizationName := "Typesafe"
organization := "com.typesafe.slick"
-version := "2.0.0-M3"
+version := "2.0.0-RC1"
scalaVersion := "2.10.3"
libraryDependencies ++= Seq(
- "com.typesafe.slick" %% "slick" % "2.0.0-M3",
- "com.typesafe.slick" %% "slick-testkit" % "2.0.0-M3" % "test",
+ "com.typesafe.slick" %% "slick" % "2.0.0-RC1",
+ "com.typesafe.slick" %% "slick-testkit" % "2.0.0-RC1" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test",
"ch.qos.logback" % "logback-classic" % "0.9.28" % "test",
"postgresql" % "postgresql" % "9.1-901.jdbc4" % "test"
View
7 src/main/scala/scala/slick/driver/MyPostgresDriver.scala
@@ -2,10 +2,13 @@ package scala.slick.driver
import java.util.UUID
import scala.slick.lifted._
-import scala.slick.jdbc.{PositionedParameters, PositionedResult, JdbcType}
+import scala.slick.jdbc.{PositionedParameters, PositionedResult}
import scala.slick.ast.{SequenceNode, Library, FieldSymbol, Node}
import scala.slick.util.MacroSupport.macroSupportInterpolation
import scala.slick.compiler.CompilerState
+import scala.slick.model.Model
+import scala.slick.jdbc.meta.{MTable,createModel => jdbcCreateModel}
+import scala.slick.jdbc.UnitInvoker
/**
* Slick driver for PostgreSQL.
@@ -25,6 +28,8 @@ import scala.slick.compiler.CompilerState
*/
trait MyPostgresDriver extends JdbcDriver { driver =>
+ override def getTables: UnitInvoker[MTable] = MTable.getTables(None, None, None, Some(Seq("TABLE")))
+
override val columnTypes = new JdbcTypes
override def createQueryBuilder(n: Node, state: CompilerState): QueryBuilder = new QueryBuilder(n, state)
override def createTableDDLBuilder(table: Table[_]): TableDDLBuilder = new TableDDLBuilder(table)
View
2 test-dbs/databases.properties.example
@@ -9,7 +9,7 @@
#testDBs = mypostgres
# Store database files in this path instead of the test-dbs dir
-testDir = r:/test-dbs
+# testDir = r:/test-dbs
# PostgreSQL quick setup:
# - Install PostgreSQL server with default options

0 comments on commit e9cabdf

Please sign in to comment.
Something went wrong with that request. Please try again.