diff options
author | Stewart Stewart <stewinsalot@gmail.com> | 2016-09-09 14:11:23 -0400 |
---|---|---|
committer | Stewart Stewart <stewinsalot@gmail.com> | 2016-09-09 14:11:30 -0400 |
commit | f8d9124bbffab3f3b020a90482fe9a7207159631 (patch) | |
tree | a74cb5492a5a63fea9eabd4310854d9124fccd06 /src/main/scala/NamespacedCodegen.scala | |
parent | 4781069565f4edc94e68c14ba4fe716a0f7ef166 (diff) | |
download | slick-codegen-plugin-f8d9124bbffab3f3b020a90482fe9a7207159631.tar.gz slick-codegen-plugin-f8d9124bbffab3f3b020a90482fe9a7207159631.tar.bz2 slick-codegen-plugin-f8d9124bbffab3f3b020a90482fe9a7207159631.zip |
Consolidate codegen file config to sbt Setting keys
Diffstat (limited to 'src/main/scala/NamespacedCodegen.scala')
-rw-r--r-- | src/main/scala/NamespacedCodegen.scala | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/main/scala/NamespacedCodegen.scala b/src/main/scala/NamespacedCodegen.scala index 1069c68..ca9897e 100644 --- a/src/main/scala/NamespacedCodegen.scala +++ b/src/main/scala/NamespacedCodegen.scala @@ -80,22 +80,14 @@ object NamespacedCodegen { def run( uri: URI, - outputDir: Option[String], + pkg: String, filename: String, typesFilename: String, schemaList: String ): Unit = { val dc = DatabaseConfig.forURI[JdbcProfile](uri) - val pkg = dc.config.getString("codegen.package") - val out = outputDir.getOrElse(dc.config.getStringOr("codegen.outputDir", ".")) val slickDriver = if(dc.driverIsObject) dc.driverName else "new " + dc.driverName - // The following three parameters are unique to our code generator - // TODO: Decide: Put these in Typsafe Config or make it part of plugin interface? - // val filename = dc.config.getString("codegen.filename") - // val typesFilename = dc.config.getString("codegen.typesFilename") - // val schemaList = dc.config.getString("codegen.schemaList") - val mappedSchemas = parseSchemaList(schemaList) val dbModel = Await.result(dc.db.run(createFilteredModel(dc.driver, mappedSchemas)), Duration.Inf) //finally dc.db.close |