Class

com.snowplowanalytics.snowplow.enrich.common.enrichments.registry.sqlquery

Db

Related Doc: package sqlquery

Permalink

case class Db(postgresql: Option[PostgresqlDb] = None, mysql: Option[MysqlDb] = None) extends Product with Serializable

Class-container for chosen DB's configuration Exactly one configuration must be provided

postgresql

optional container for PostgreSQL configuration

mysql

optional container for MySQL configuration

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Db
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Db(postgresql: Option[PostgresqlDb] = None, mysql: Option[MysqlDb] = None)

    Permalink

    postgresql

    optional container for PostgreSQL configuration

    mysql

    optional container for MySQL configuration

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def createStatement(sql: String, placeholderMap: IntMap[ExtractedValue]): ThrowableXor[PreparedStatement]

    Permalink

    Create PreparedStatement and fill all its placeholders This function expects placeholderMap contains exact same amount of placeholders as sql, otherwise it will result in error downstream

    Create PreparedStatement and fill all its placeholders This function expects placeholderMap contains exact same amount of placeholders as sql, otherwise it will result in error downstream

    sql

    prepared SQL statement with some unfilled placeholders (?-signs)

    placeholderMap

    IntMap with input values

    returns

    filled placeholder or error (unlikely)

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def execute(preparedStatement: PreparedStatement): ThrowableXor[ResultSet]

    Permalink

    Execute PreparedStatement

  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getPlaceholderCount(sql: String): ThrowableXor[Int]

    Permalink

    Get amount of placeholders (?-signs) in Prepared Statement

  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. val mysql: Option[MysqlDb]

    Permalink

    optional container for MySQL configuration

  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  17. val postgresql: Option[PostgresqlDb]

    Permalink

    optional container for PostgreSQL configuration

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

    Permalink
    Definition Classes
    AnyRef
  19. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped