com.lucidchart.open.relate

Sql

sealed trait Sql extends AnyRef

A trait for queries

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Sql
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getCopy(params: List[(SqlStatement) ⇒ Unit]): Sql

    Classes that inherit the Sql trait will have to implement a method to copy themselves given just a different set of parameters.

    Classes that inherit the Sql trait will have to implement a method to copy themselves given just a different set of parameters. HINT: Use a case class!

    Attributes
    protected
  2. abstract val listParams: Map[String, ListParam]

  3. abstract val params: List[(SqlStatement) ⇒ Unit]

  4. abstract val query: String

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def asCollection[U, T[_]](parser: RowParser[U])(implicit cbf: CanBuildFrom[T[U], U, T[U]], connection: Connection): T[U]

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def asIterable[A](parser: RowParser[A])(implicit connection: Connection): Iterable[A]

  9. def asList[A](parser: RowParser[A])(implicit connection: Connection): List[A]

  10. def asMap[U, V](parser: RowParser[(U, V)])(implicit connection: Connection): Map[U, V]

  11. def asPairCollection[U, V, T[_, _]](parser: RowParser[(U, V)])(implicit cbf: CanBuildFrom[T[U, V], (U, V), T[U, V]], connection: Connection): T[U, V]

  12. def asScalar[A]()(implicit connection: Connection): A

  13. def asScalarOption[A]()(implicit connection: Connection): Option[A]

  14. def asSeq[A](parser: RowParser[A])(implicit connection: Connection): Seq[A]

  15. def asSet[A](parser: RowParser[A])(implicit connection: Connection): Set[A]

  16. def asSingle[A](parser: RowParser[A])(implicit connection: Connection): A

  17. def asSingleOption[A](parser: RowParser[A])(implicit connection: Connection): Option[A]

  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  21. def execute()(implicit connection: Connection): Boolean

    Execute a statement

  22. def executeInsertCollection[U, T[_]](parser: RowParser[U])(implicit cbf: CanBuildFrom[T[U], U, T[U]], connection: Connection): T[U]

  23. def executeInsertInt()(implicit connection: Connection): Int

  24. def executeInsertInts()(implicit connection: Connection): List[Int]

  25. def executeInsertLong()(implicit connection: Connection): Long

  26. def executeInsertLongs()(implicit connection: Connection): List[Long]

  27. def executeInsertSingle[U](parser: RowParser[U])(implicit connection: Connection): U

  28. def executeUpdate()(implicit connection: Connection): Int

    Execute an update

  29. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  32. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  36. def on(f: (SqlStatement) ⇒ Unit): Sql

    Put in values for parameters in the query

    Put in values for parameters in the query

    f

    a function that takes a SqlStatement and sets parameter values using its methods

    returns

    a copy of this Sql with the new params

  37. def onTuples[A](name: String, tuples: TraversableOnce[A])(f: (A, TupleStatement) ⇒ Unit): Sql

    Put in values for tuple parameters in the query

    Put in values for tuple parameters in the query

    name

    the tuple identifier in the query

    tuples

    the objects to loop over and use to insert data into the query

    f

    a function that takes a TupleStatement and sets parameter values using its methods

    returns

    a copy of this Sql with the new tuple params

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

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def withExecutedResults[A](getGeneratedKeys: Boolean)(callback: (SqlResult) ⇒ A)(implicit connection: Connection): A

    Attributes
    protected

Inherited from AnyRef

Inherited from Any

Ungrouped