Permalink
Browse files

codegen: Test case of no tables (schema has invalid syntax)

It will just output `lazy val schema: profile.SchemaDescription = ` and stop
  • Loading branch information...
nafg committed Sep 3, 2015
1 parent c23e2c7 commit 53cb788793d3c49abe5dc22cda0ab52fff9005a8
@@ -105,7 +105,8 @@ val SimpleA = CustomTyping.SimpleA
| ).transactionally
""".stripMargin
},
new UUIDConfig("Postgres2", StandardTestDBs.Postgres, "Postgres", Seq("/dbs/uuid.sql"))
new UUIDConfig("Postgres2", StandardTestDBs.Postgres, "Postgres", Seq("/dbs/uuid.sql")),
new Config("EmptyDB", StandardTestDBs.H2Mem, "H2Mem", Nil)
)
//Unified UUID config
@@ -135,6 +135,8 @@ object GeneratedCodeTest {
)
}
def testEmptyDB = slick.dbio.DBIO.successful(())
def tableName( node:Node ) : String = {
import slick.ast._
node match {

0 comments on commit 53cb788

Please sign in to comment.