Closed kwame998 closed 7 years ago
-[ ] My configuration parameter is as follows: slickCodegenSettings slickCodegenDatabaseUrl := "jdbc:mysql://localhost/demo" slickCodegenDatabaseUser := "root" slickCodegenDatabasePassword := "my-secret-pw" slickCodegenDriver := slick.driver.MySQLDriver slickCodegenJdbcDriver := "com.mysql.cj.jdbc.Driver" slickCodegenOutputPackage := "com.example.user.slick" slickCodegenExcludedTables := Seq("order","User")
https://github.com/tototoshi/sbt-slick-codegen/issues/1
"mysql" % "mysql-connector-java" % "5.1.34"
lazy val databaseUrl = sys.env.getOrElse("DB_DEFAULT_URL", "jdbc:mysql://localhost/demo") lazy val databaseUser = sys.env.getOrElse("DB_DEFAULT_USER", "root") lazy val databasePassword = sys.env.getOrElse("DB_DEFAULT_PASSWORD", "my-secret-pw") slickCodegenSettings slickCodegenDatabaseUrl := databaseUrl slickCodegenDatabaseUser := databaseUser slickCodegenDatabasePassword := databasePassword slickCodegenDriver := slick.driver.MySQLDriver slickCodegenJdbcDriver := "com.mysql.jdbc.Driver" slickCodegenOutputPackage := "com.example.user.slick" slickCodegenExcludedTables := Seq("schema_version")
How to configure the Mysql database, automatically generated code?