[3.2.1] Codegen not creating tables, but no errors showing

21 views
Skip to first unread message

Jonathan Brookins

unread,
Jul 25, 2017, 11:49:03 PM7/25/17
to Slick / ScalaQuery
Upon running my codegen script this is all that is in the Tables.scala file:
package databaseTables
// AUTO-GENERATED Slick data model
/** Stand-alone Slick data model for immediate use */
object Tables extends {
 
val profile = slick.jdbc.SQLServerProfile
} with Tables

/** Slick data model trait for extension, choice of backend or usage in the cake pattern. (Make sure to initialize this late.) */
trait Tables {
 
val profile: slick.jdbc.JdbcProfile
 
import profile.api._
 
import slick.model.ForeignKeyAction

 
/** DDL for all tables. Call .create to execute. */
  lazy val schema: profile.SchemaDescription = profile.DDL(Nil, Nil)
 
@deprecated("Use .schema instead of .ddl", "3.0")
 
def ddl = schema
}

I've gone through the script output but I don't see any errors or warnings. Here is what my codegen.scala file contains ( sensitive info changed, of course ):
object CodeGen extends App {
  slick
.codegen.SourceCodeGenerator.main(
   
Array(
     
"slick.jdbc.SQLServerProfile",
      "com.microsoft.sqlserver.jdbc.SQLServerDriver",
      "jdbc:sqlserver://192.168.117.236:1433;databaseName=foo",
      "./src/main/scala-2.12/models/", "databaseTables", "username", "password")
 
)
}

Any thoughts?

Reply all
Reply to author
Forward
0 new messages