The generated code used to generate the container class.
The generated code stored in a map that associates the scala filename with the generated code (this map contains one entry per table).
Indents all but the first line of the given string No indent is added to empty lines.
Generates code providing the data model as trait and object in a Scala package
Generates code providing the data model as trait and object in a Scala package
Slick profile that is imported in the generated package (e.g. slick.jdbc.H2Profile)
Scala package the generated code is placed in
The name of a trait and an object the generated code will be placed in within the specified package.
Generates code providing the stand-alone slick data model for immediate use.
Generates code providing the stand-alone slick data model for immediate use.
Slick profile that is imported in the generated package (e.g. scala.slick.driver.H2Driver)
Scala package the generated code is placed in
The name of a trait and an object the generated code will be placed in within the specified package.
Generates code for the given table.
Generates code for the given table. The tableName and tableCode parameters should come from the #codePerTable map.
: the name of the table
: the generated code for the table.
Scala package the generated code is placed in
The name of the container
The parent type of the generated main trait.
The parent type of the generated main trait. This can be overridden in subclasses.
Writes given content to a file.
Writes given content to a file. Ensures the file ends with a newline character.
Generates code and writes it to a file.
Generates code and writes it to a file. Creates a folder structure for the given package inside the given srcFolder and places the new file inside or overrides the existing one.
Slick profile that is imported in the generated package (e.g. slick.jdbc.H2Profile)
target folder, in which the package structure folders are placed
Scala package the generated code is placed in (a subfolder structure will be created within srcFolder)
The name of a trait and an object the generated code will be placed in within the specified package.
Name of the output file, to which the code will be written
Generates code and writes it to multiple files.
Generates code and writes it to multiple files. Creates a folder structure for the given package inside the given srcFolder and places the new files inside or overrides the existing one.
Slick profile that is imported in the generated package (e.g. scala.slick.driver.H2Driver)
target folder, in which the output files are placed
Scala package the generated code is placed in (a subfolder structure will be created within srcFolder)
The name of a trait and an object the generated code will be placed in within the specified package.
Output-related code-generation utilities.