Packages

p

db

metadata

package metadata

Represents information about the database schema, like table names, columns names and types, foreign keys ...

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. metadata
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class ColumnDescription(name: String, typeName: String, jdbcType: Int, tableName: String) extends Product with Serializable
  2. case class DatabaseMetadata(dbConnection: DbConnection) extends Product with Serializable

    Holds metadata (tables, column types, primary and foreign keys) for a DbConnection

  3. case class ForeignKey(name: String, primaryColumn: String, primaryTable: String, foreignColumn: String) extends Product with Serializable
  4. case class GuessedMetadata(standardDbMetadata: DatabaseMetadata, skippedTables: Set[String] = Set.empty, skippedLinks: Set[Link] = Set.empty, guessMissingForeignKeys: Boolean = true) extends Product with Serializable
  5. case class Link(from: String, to: String) extends Product with Serializable

    from and to are regular expressions used to filter links.

  6. case class PolymorphicColumnPair(table: String, idColumn: ColumnDescription, typeColumn: ColumnDescription) extends Product with Serializable

    A polymorphic link is a concept sometimes used in Ruby on Rails applications.

    A polymorphic link is a concept sometimes used in Ruby on Rails applications. It is similar to a foreign key, but the foreign table has an extra column to indicate which primary table is concerned for a given row.

    Ex:

    • primary tables Buyer and Store
    • polymorphic foreign table Location, with columns
      • locationable_id (matches with buyer.id or store.id)
      • location_type (either buyer or store)
  7. case class TableMetaData(tableName: String, primaryKeyColumns: Seq[String], foreignKeys: Seq[ForeignKey], columns: Seq[ColumnDescription]) extends Product with Serializable

    Holds metadata (column types, primary and foreign keys) for a single table.

Value Members

  1. object ColumnDescription extends Serializable
  2. object ForeignKey extends Serializable
  3. object TableMetaData extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped