Class

com.reactific.slickery

Schema

Related Doc: package slickery

Permalink

abstract class Schema[DRVR <: JdbcDriver with SlickeryExtensions] extends AutoCloseable with SlickeryComponent

The abstract database component. This trait allows use to define database components which are simply collections of related tables and the various query methods on those tables to provide access to them. Since Components contain Tables and Scrupal requires all database entities to have a particular shape, that shape is enforced in the EntityTable class. Note that Component extends Sketch which is mixed in to other components but resolved by the Schema class.

Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Schema
  2. SlickeryComponent
  3. FutureHelper
  4. ThrowingHelper
  5. LoggingHelper
  6. AutoCloseable
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Schema(schemaNamePrototype: String, databaseKind: SupportedDB[DRVR], configPath: String, config: Config = ConfigFactory.load)(implicit ec: ExecutionContext, classTag: ClassTag[DRVR])

    Permalink

Type Members

  1. trait CRUDQueries[R, ID, T <: TableRow[R]] extends AnyRef

    Permalink
  2. trait CreatableQuery[S <: Creatable, T <: CreatableRow[S]] extends StorableQuery[S, T]

    Permalink
  3. trait CreatableRow[S <: Creatable] extends StorableRow[S]

    Permalink
  4. trait DescribableQuery[S <: Describable, T <: DescribableRow[S]] extends StorableQuery[S, T]

    Permalink
  5. trait DescribableRow[S <: Describable] extends StorableRow[S]

    Permalink
  6. trait ExpirableQuery[S <: Expirable, T <: ExpirableRow[S]] extends StorableQuery[S, T]

    Permalink
  7. trait ExpirableRow[S <: Expirable] extends StorableRow[S]

    Permalink
  8. abstract class ManyToManyQuery[A <: Storable, TA <: StorableRow[A], B <: Storable, TB <: StorableRow[B], T <: ManyToManyRow[A, TA, B, TB]] extends slick.driver.JdbcProfile.API.TableQuery[T]

    Permalink
  9. abstract class ManyToManyRow[A <: Storable, TA <: StorableRow[A], B <: Storable, TB <: StorableRow[B]] extends TableRow[(OIDType, OIDType)]

    Permalink

    The base class of all correlation tables.

    The base class of all correlation tables. This allows many-to-many relationships to be established by simply listing the pairs of IDs

  10. trait ModifiableQuery[S <: Modifiable, T <: ModifiableRow[S]] extends StorableQuery[S, T]

    Permalink
  11. trait ModifiableRow[S <: Modifiable] extends StorableRow[S]

    Permalink
  12. trait NameableQuery[S <: Nameable, T <: NameableRow[S]] extends StorableQuery[S, T]

    Permalink
  13. trait NameableRow[S <: Nameable] extends StorableRow[S]

    Permalink
  14. type OIDType = Long

    Permalink
  15. abstract class StorableQuery[S <: Storable, T <: StorableRow[S]] extends slick.driver.JdbcProfile.API.TableQuery[T] with CRUDQueries[S, OIDType, T]

    Permalink
  16. abstract class StorableRow[S <: Storable] extends TableRow[S]

    Permalink
  17. abstract class TableRow[S] extends slick.driver.JdbcProfile.API.Table[S]

    Permalink
  18. abstract class UseableQuery[S <: Useable, T <: UseableRow[S]] extends StorableQuery[S, T] with CreatableQuery[S, T] with ModifiableQuery[S, T] with NameableQuery[S, T] with DescribableQuery[S, T]

    Permalink
  19. abstract class UseableRow[S <: Useable] extends StorableRow[S] with CreatableRow[S] with ModifiableRow[S] with NameableRow[S] with DescribableRow[S]

    Permalink

Abstract Value Members

  1. abstract def schemas: Map[String, DRVR.SchemaDescription]

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Schema[DRVR] to any2stringadd[Schema[DRVR]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Schema[DRVR], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Schema[DRVR] to ArrowAssoc[Schema[DRVR]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def await[X](future: ⇒ Future[X], duration: FiniteDuration, opName: String): Try[X]

    Permalink
    Definition Classes
    FutureHelper
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def close(): Unit

    Permalink
    Definition Classes
    Schema → AutoCloseable
  10. final def create(): Future[Unit]

    Permalink
  11. def createLoggerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingHelper
  12. val databaseKind: SupportedDB[DRVR]

    Permalink
  13. val db: Database

    Permalink
  14. val dbConfig: DatabaseConfig[DRVR]

    Permalink
  15. val driver: DRVR

    Permalink
  16. final def drop(): Future[Unit]

    Permalink
  17. def ensuring(cond: (Schema[DRVR]) ⇒ Boolean, msg: ⇒ Any): Schema[DRVR]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Schema[DRVR] to Ensuring[Schema[DRVR]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (Schema[DRVR]) ⇒ Boolean): Schema[DRVR]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Schema[DRVR] to Ensuring[Schema[DRVR]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: ⇒ Any): Schema[DRVR]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Schema[DRVR] to Ensuring[Schema[DRVR]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): Schema[DRVR]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Schema[DRVR] to Ensuring[Schema[DRVR]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Schema[DRVR] to StringFormat[Schema[DRVR]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. implicit val instantMapper: DRVR.BaseColumnType[Instant]

    Permalink
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def level: Level

    Permalink
    Definition Classes
    LoggingHelper
  30. lazy val log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingHelper
  31. def loggerName: String

    Permalink
    Definition Classes
    LoggingHelper
  32. final def metaTables(): Future[Seq[MTable]]

    Permalink
  33. def mkThrowable(msg: String, cause: Option[Throwable] = None): ThrowableWithComponent

    Permalink
    Attributes
    protected
    Definition Classes
    SlickeryComponent → ThrowingHelper
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. def notImplemented(what: String): Nothing

    Permalink
    Definition Classes
    ThrowingHelper
  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. val schemaName: String

    Permalink
  39. final def schemaNames(): Future[Seq[String]]

    Permalink
  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  41. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  42. def toss(msg: ⇒ String, cause: Option[Throwable]): Nothing

    Permalink
    Definition Classes
    ThrowingHelper
  43. final def validate(): Future[Seq[Throwable]]

    Permalink
  44. def validateExistingTables(tables: Seq[MTable]): Seq[Throwable]

    Permalink
    Attributes
    protected
  45. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. def [B](y: B): (Schema[DRVR], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Schema[DRVR] to ArrowAssoc[Schema[DRVR]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from SlickeryComponent

Inherited from FutureHelper

Inherited from ThrowingHelper

Inherited from LoggingHelper

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Schema[DRVR] to any2stringadd[Schema[DRVR]]

Inherited by implicit conversion StringFormat from Schema[DRVR] to StringFormat[Schema[DRVR]]

Inherited by implicit conversion Ensuring from Schema[DRVR] to Ensuring[Schema[DRVR]]

Inherited by implicit conversion ArrowAssoc from Schema[DRVR] to ArrowAssoc[Schema[DRVR]]

Ungrouped