scala.slick.jdbc

meta

package meta

A wrapper around jdbc's meta data api and logic to create a Slick model from it.

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. meta
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class MAttribute(typeName: MQName, attrName: String, sqlType: Int, attrTypeName: String, attrSize: Int, decimalDigits: Option[Int], numPrecRadic: Int, nullable: Option[Boolean], remarks: Option[String], attrDef: Option[String], charOctetLength: Option[Int], ordinalPosition: Int, isNullable: Option[Boolean], scope: Option[MQName], sourceSqlType: Option[Int]) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  2. case class MBestRowIdentifierColumn(scope: Scope, column: String, sqlType: Int, typeName: String, columnSize: Option[Int], decimalDigits: Option[Short], pseudoColumn: Option[Boolean]) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  3. case class MClientInfoProperty(name: String, maxLen: Int, defaultValue: String, description: String) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  4. case class MColumn(table: MQName, name: String, sqlType: Int, typeName: String, size: Option[Int], decimalDigits: Option[Int], numPrecRadix: Int, nullable: Option[Boolean], remarks: Option[String], columnDef: Option[String], charOctetLength: Int, ordinalPosition: Int, isNullable: Option[Boolean], scope: Option[MQName], sourceDataType: Option[Int], isAutoInc: Option[Boolean]) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  5. case class MColumnPrivilege(table: MQName, column: String, privilege: MPrivilege) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  6. case class MForeignKey(pkTable: MQName, pkColumn: String, fkTable: MQName, fkColumn: String, keySeq: Short, updateRule: ForeignKeyAction, deleteRule: ForeignKeyAction, fkName: Option[String], pkName: Option[String], deferrability: Short) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  7. case class MFunction(name: MQName, remarks: String, returnsTable: Option[Boolean], specificName: String) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  8. case class MFunctionColumn(function: MQName, column: String, columnType: Short, sqlType: Int, typeName: String, precision: Option[Int], length: Int, scale: Option[Short], radix: Short, nullable: Option[Boolean], remarks: String, charOctetLength: Option[Int], ordinalPosition: Int, isNullable: Option[Boolean], specificName: String) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  9. case class MIndexInfo(table: MQName, nonUnique: Boolean, indexQualifier: Option[String], indexName: Option[String], indexType: Short, ordinalPosition: Short, column: Option[String], ascending: Option[Boolean], cardinality: Int, pages: Int, filterCondition: Option[String]) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  10. case class MPrimaryKey(table: MQName, column: String, keySeq: Short, pkName: Option[String]) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  11. case class MPrivilege(grantor: Option[String], grantee: String, privilege: String, grantable: Option[Boolean]) extends Product with Serializable

    A common privilege type which is used by MTablePrivilege and MColumnPrivilege.

  12. case class MProcedure(name: MQName, remarks: String, returnsResult: Option[Boolean], specificName: Option[String]) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  13. case class MProcedureColumn(procedure: MQName, column: String, columnType: Short, sqlType: Int, typeName: String, precision: Option[Int], length: Int, scale: Option[Short], radix: Short, nullable: Option[Boolean], remarks: String, columnDef: Option[String], charOctetLength: Option[Int], ordinalPosition: Option[Int], isNullable: Option[Boolean], specificName: Option[String]) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  14. case class MQName(catalog: Option[String], schema: Option[String], name: String) extends Product with Serializable

    A qualified name with an optional catalog and schema.

  15. case class MSchema(schema: String, catalog: Option[String]) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  16. case class MSuperTable(table: MQName, superTable: String) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  17. case class MSuperType(typeName: MQName, superType: MQName) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  18. case class MTable(name: MQName, tableType: String, remarks: String, typeName: Option[MQName], selfRefColName: Option[String], refGen: Option[String]) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  19. case class MTablePrivilege(table: MQName, privilege: MPrivilege) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  20. case class MTypeInfo(typeName: String, sqlType: Int, precision: Option[Int], literalPrefix: Option[String], literalSuffix: Option[String], createParams: Option[String], nullable: Option[Boolean], caseSensitive: Boolean, searchable: Short, unsignedAttribute: Boolean, fixedPrecScale: Boolean, autoIncrement: Boolean, localTypeName: Option[String], minScale: Short, maxScale: Short, numPrecRadix: Int) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  21. case class MUDT(typeName: MQName, className: String, sqlType: Int, remarks: String, baseType: Option[Short]) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

  22. case class MVersionColumn(column: String, sqlType: Int, typeName: String, columnSize: Option[Int], bufferLength: Int, decimalDigits: Option[Int], pseudoColumn: Option[Boolean]) extends Product with Serializable

    A wrapper for a row in the ResultSet returned by DatabaseMetaData.

Value Members

  1. object DatabaseMeta

    Accessor methods for various database meta data.

  2. object MAttribute extends Serializable

  3. object MBestRowIdentifierColumn extends Serializable

  4. object MClientInfoProperty extends Serializable

  5. object MColumn extends Serializable

  6. object MColumnPrivilege extends Serializable

  7. object MForeignKey extends Serializable

  8. object MFunction extends Serializable

  9. object MFunctionColumn extends Serializable

  10. object MIndexInfo extends Serializable

  11. object MPrimaryKey extends Serializable

  12. object MPrivilege extends Serializable

  13. object MProcedure extends Serializable

  14. object MProcedureColumn extends Serializable

  15. object MQName extends Serializable

  16. object MSchema extends Serializable

  17. object MSuperTable extends Serializable

  18. object MSuperType extends Serializable

  19. object MTable extends Serializable

  20. object MTablePrivilege extends Serializable

  21. object MTypeInfo extends Serializable

  22. object MUDT extends Serializable

  23. object MVersionColumn extends Serializable

  24. def createModel(mTables: Seq[MTable], profile: JdbcProfile)(implicit session: SessionDef): Model

    Creates a Slick data model from jdbc meta data.

    Creates a Slick data model from jdbc meta data. Foreign keys pointing out of the given tables are not included.

    mTables

    tables to include in the model

    profile

    JdbcProfile that was used to retrieve mTables (using a different one can lead to exceptions)

  25. def jdbcTypeToScala(jdbcType: Int): ClassTag[_]

    Converts from java.

    Converts from java.sql.Types to the corresponding Java class name (with fully qualified path).

Deprecated Value Members

  1. object CodeGen

    Generate Scala code from database meta-data.

Inherited from AnyRef

Inherited from Any

Ungrouped