package metadata
Represents information about the database schema, like table names, columns names and types, foreign keys ...
- Alphabetic
- By Inheritance
- metadata
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class ColumnDescription(name: String, typeName: String, jdbcType: Int, tableName: String) extends Product with Serializable
- case class DatabaseMetadata(dbConnection: DbConnection) extends Product with Serializable
Holds metadata (tables, column types, primary and foreign keys) for a DbConnection
- case class ForeignKey(name: String, primaryColumn: String, primaryTable: String, foreignColumn: String) extends Product with Serializable
- case class GuessedMetadata(standardDbMetadata: DatabaseMetadata, skippedTables: Set[String] = Set.empty, skippedLinks: Set[Link] = Set.empty, guessMissingForeignKeys: Boolean = true) extends Product with Serializable
- case class Link(from: String, to: String) extends Product with Serializable
from and to are regular expressions used to filter links.
- 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
BuyerandStore - polymorphic foreign table
Location, with columnslocationable_id(matches withbuyer.idorstore.id)location_type(eitherbuyerorstore)
- primary tables
- 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
- object ColumnDescription extends Serializable
- object ForeignKey extends Serializable
- object GuessedMetadata extends Serializable
- object TableMetaData extends Serializable