c

database

TestDB

class TestDB extends OdfDatabase with DB

Database class to be used during tests instead of production db to prevent problems caused by overlapping test data. Uses h2 named in-memory db

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestDB
  2. OdfDatabase
  3. TrimmableDB
  4. DB
  5. Tables
  6. DBBase
  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 TestDB(name: String = "", useMaintainer: Boolean = true, config: Config = ..., configName: String = "slick-config")(system: ActorSystem, singleStores: SingleStores, settings: OmiConfigExtension)

    name

    name of the test database, optional. Data will be stored in memory

Type Members

  1. class PathValues extends slick.jdbc.JdbcProfile.API.TableQuery[TimedValuesTable]
    Definition Classes
    Tables
  2. class PathsTable extends slick.jdbc.JdbcProfile.API.Table[DBPath]
    Definition Classes
    Tables
  3. class StoredPath extends slick.jdbc.JdbcProfile.API.TableQuery[PathsTable]
    Definition Classes
    Tables
  4. class TimedValuesTable extends slick.jdbc.JdbcProfile.API.Table[TimedValue]
    Definition Classes
    Tables
  5. type DBIOro[Result] = DBIOAction[Result, slick.jdbc.JdbcProfile.API.NoStream, Read]
    Definition Classes
    Tables
  6. type DBIOrw[Result] = DBIOAction[Result, slick.jdbc.JdbcProfile.API.NoStream, ReadWrite]
    Definition Classes
    Tables
  7. type DBIOsw[Result] = DBIOAction[Result, slick.jdbc.JdbcProfile.API.NoStream, Schema with Write]
    Definition Classes
    Tables
  8. type DBIOwo[Result] = DBIOAction[Result, slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    Tables
  9. type DBSIOro[Result] = DBIOAction[Seq[Result], slick.jdbc.JdbcProfile.API.Streaming[Result], Read]
    Definition Classes
    Tables
  10. type ReadWrite = slick.jdbc.JdbcProfile.API.Effect with Write with Read with Transactional
    Definition Classes
    Tables

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from TestDB to any2stringadd[TestDB] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (TestDB, B)
    Implicit
    This member is added by an implicit conversion from TestDB to ArrowAssoc[TestDB] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clearDB(): Future[Int]

    Empties all the data from the database

    Empties all the data from the database

    Definition Classes
    OdfDatabase
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. val config: Config
  10. val configName: String
  11. val db: Database
    Definition Classes
    TestDBDBBase
  12. val dbmaintainer: ActorRef
  13. val dc: DatabaseConfig[JdbcProfile]
    Definition Classes
    TestDBDBBase
  14. def destroy(): Unit

    Should be called after tests.

  15. def dropDB(): Future[Unit]
    Definition Classes
    OdfDatabase
  16. def ensuring(cond: (TestDB) ⇒ Boolean, msg: ⇒ Any): TestDB
    Implicit
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (TestDB) ⇒ Boolean): TestDB
    Implicit
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: ⇒ Any): TestDB
    Implicit
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): TestDB
    Implicit
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from TestDB to StringFormat[TestDB] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def getNBetween(nodes: Iterable[Node], beginO: Option[Timestamp], endO: Option[Timestamp], newestO: Option[Int], oldestO: Option[Int])(implicit timeout: Timeout): Future[Option[ODF]]

    Used to get result values with given constrains in parallel if possible.

    Used to get result values with given constrains in parallel if possible. first the two optional timestamps, if both are given search is targeted between these two times. If only start is given,all values from start time onwards are targeted. Similarly if only end is given, values before end time are targeted. Then the two Int values. Only one of these can be present. fromStart is used to select fromStart number of values from the beginning of the targeted area. Similarly from ends selects fromEnd number of values from the end. All parameters except the first are optional, given only the first returns all requested data

    returns

    Combined results in a O-DF tree

    Definition Classes
    OdfDatabaseDB
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def initialize(): Unit
    Definition Classes
    OdfDatabaseDB
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. val log: Logger
    Attributes
    protected
    Definition Classes
    TestDBOdfDatabase
  30. def logAllTables(): Unit
    Definition Classes
    OdfDatabase
  31. def logPathsTables(): Unit
    Definition Classes
    OdfDatabase
  32. def logValueTables(): Unit
    Definition Classes
    OdfDatabase
  33. val name: String
  34. def namesOfCurrentTables: DBIOro[Vector[String]]
    Definition Classes
    Tables
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. implicit lazy val pathColumnType: BaseColumnType[Path]
    Definition Classes
    Tables
  39. val pathToDBPath: TMap[Path, DBPath]
    Definition Classes
    OdfDatabase
  40. val pathsTable: StoredPath
    Definition Classes
    Tables
  41. def readLatestFromCache(leafPaths: Seq[Path]): Future[Option[ImmutableODF]]
    Definition Classes
    OdfDatabase
  42. def remove(path: Path)(implicit timeout: Timeout): Future[Seq[Int]]

    Used to remove given path and all its descendants from the database.

    Used to remove given path and all its descendants from the database.

    path

    Parent path to be removed.

    Definition Classes
    OdfDatabaseDB
  43. val settings: OmiConfigExtension
    Attributes
    protected
    Definition Classes
    TestDBOdfDatabase
  44. val singleStores: SingleStores
    Attributes
    protected
    Definition Classes
    TestDBOdfDatabase
  45. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  46. val system: ActorSystem
    Attributes
    protected
  47. def tableByNameExists(name: String): DBIOro[Boolean]
    Definition Classes
    Tables
  48. def toString(): String
    Definition Classes
    AnyRef → Any
  49. def trimDB(): Future[Seq[Int]]
    Definition Classes
    OdfDatabaseTrimmableDB
  50. val valueTables: Map[Path, PathValues]
    Definition Classes
    Tables
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  54. def writeMany(data: Seq[InfoItem]): Future[OmiReturn]

    Used to set many values efficiently to the database.

    Used to set many values efficiently to the database.

    data

    list item to be added consisting of Path and OdfValue[Any] tuples.

    Definition Classes
    OdfDatabaseDB
  55. def writeMany(odf: ImmutableODF): Future[OmiReturn]
    Definition Classes
    OdfDatabaseDB
  56. def writeWithDBIOs(odf: ODF): Future[OmiReturn]
    Definition Classes
    OdfDatabase
  57. def [B](y: B): (TestDB, B)
    Implicit
    This member is added by an implicit conversion from TestDB to ArrowAssoc[TestDB] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from OdfDatabase

Inherited from TrimmableDB

Inherited from DB

Inherited from Tables

Inherited from DBBase

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from TestDB to any2stringadd[TestDB]

Inherited by implicit conversion StringFormat from TestDB to StringFormat[TestDB]

Inherited by implicit conversion Ensuring from TestDB to Ensuring[TestDB]

Inherited by implicit conversion ArrowAssoc from TestDB to ArrowAssoc[TestDB]

Ungrouped