Packages

c

slick.codegen

AbstractSourceCodeGenerator

abstract class AbstractSourceCodeGenerator extends AbstractGenerator[String, String, String] with StringGeneratorHelpers

Base implementation for a Source code String generator

Source
AbstractSourceCodeGenerator.scala
Linear Supertypes
StringGeneratorHelpers, AbstractGenerator[String, String, String], GeneratorHelpers[String, String, String], AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. AbstractSourceCodeGenerator
  2. StringGeneratorHelpers
  3. AbstractGenerator
  4. GeneratorHelpers
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Basic customization overrides

  1. abstract case class AbstractTableDef(model: model.Table) extends Product with Serializable

    Code generator for table related code

    Code generator for table related code

    model

    corresponding Slick meta model component

    Definition Classes
    AbstractGenerator
  1. abstract def Table: (model.Table) => Table

    Table generator factory.

    Table generator factory. Override for customization.

    Definition Classes
    AbstractGenerator
  2. def code: String

    Generates code for the complete model (not wrapped in a package yet)

  3. def codeForContainer: String

    Generates code for the container class (not wrapped in a package yet)

  4. def codeForDDL: String

    Generates code for the DDL statement.

  5. def codePerTable: Map[String, String]

    Generates a map that associates the table name with its generated code (not wrapped in a package yet).

  6. def entityName: (String) => String

    Maps database table name to entity case class name

    Maps database table name to entity case class name

    Definition Classes
    AbstractGenerator
  7. def tableName: (String) => String

    Maps database table name to Table class and value name

    Maps database table name to Table class and value name

    Definition Classes
    AbstractGenerator

Ungrouped

  1. abstract class AbstractSourceCodeTableDef extends AbstractTableDef
  2. abstract type Table <: AbstractTableDef

    Table generator virtual class

    Table generator virtual class

    Definition Classes
    AbstractGenerator
  3. implicit class StringExtensions extends AnyRef

    Slick code generator string extension methods.

    Slick code generator string extension methods. (Warning: Not unicode-safe, uses String#apply)

    Definition Classes
    GeneratorHelpers
  1. val ddlEnabled: Boolean

    Enables DDL Generation.

    Enables DDL Generation.

    Definition Classes
    AbstractGenerator
  2. def docWithCode(doc: String, code: String): String

    Assemble doc comment with scala code

    Assemble doc comment with scala code

    Definition Classes
    StringGeneratorHelpersGeneratorHelpers
  3. def foreignKeysPerTable: Map[String, List[String]]
  4. def indent(code: String): String
    Definition Classes
    GeneratorHelpers
  5. final def optionType(t: String): String

    Wrap the given type into an Option type

    Wrap the given type into an Option type

    Definition Classes
    StringGeneratorHelpersGeneratorHelpers
  6. def parseType(tpe: String): String

    Generates code for a qualified Scala type

    Generates code for a qualified Scala type

    Definition Classes
    StringGeneratorHelpersGeneratorHelpers
  7. val scalaKeywords: Seq[String]

    Words that are reserved keywords in Scala

    Words that are reserved keywords in Scala

    Definition Classes
    GeneratorHelpers
  8. def shouldQuoteIdentifier(s: String): Boolean
    Definition Classes
    StringGeneratorHelpers
  9. val slickTableTermMembersNoArgs: Seq[String]

    Existing term member names in Table[_] that do not take parameters

    Existing term member names in Table[_] that do not take parameters

    Definition Classes
    GeneratorHelpers
  10. final lazy val tables: Seq[Table]

    Table code generators.

    Table code generators.

    Definition Classes
    AbstractGenerator
  11. final lazy val tablesByName: Map[QualifiedName, Table]

    Table code generators indexed by db table name.

    Table code generators indexed by db table name.

    Definition Classes
    AbstractGenerator
  12. def termName(name: String): String

    Marks a String as a TermName (e.g.

    Marks a String as a TermName (e.g. for escaping scala keywords)

    Definition Classes
    StringGeneratorHelpersGeneratorHelpers
  13. def typeName(name: String): String

    Marks a String as a TypeName (e.g.

    Marks a String as a TypeName (e.g. for escaping scala keywords)

    Definition Classes
    StringGeneratorHelpersGeneratorHelpers