aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/scala/NamespacedCodegen.scala18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/main/scala/NamespacedCodegen.scala b/src/main/scala/NamespacedCodegen.scala
index 52b4c62..1b421ea 100644
--- a/src/main/scala/NamespacedCodegen.scala
+++ b/src/main/scala/NamespacedCodegen.scala
@@ -51,20 +51,19 @@ object Generator {
val generator = new Generator(pkg, // still necessary
dbModel,
- schemaName, // still necessary?
schemaOnlyModel,
manualForeignKeys,
idType,
schemaImports,
typeReplacements)
- generator.writeStringToFile(content = generator.packageCode(
- profile = profile,
- pkg = pkg,
- container = schemaName,
- parentType = parentType),
- folder = outputPath,
- pkg = pkg,
- fileName = s"${schemaName}.scala")
+ generator.writeStringToFile(
+ content = generator.packageCode(profile = profile,
+ pkg = pkg,
+ container = schemaName,
+ parentType = parentType),
+ folder = outputPath,
+ pkg = pkg,
+ fileName = s"${schemaName}.scala")
generator.code // Yes... Files are written as a side effect
}
@@ -89,7 +88,6 @@ class ImportGenerator(dbModel: Model, schemaImports: List[String])
class Generator(pkg: String,
fullDatabaseModel: Model,
- schemaName: String,
schemaOnlyModel: Model,
manualForeignKeys: Map[(String, String), (String, String)],
idType: Option[String],