Class

sqlest.ast

Merge

Related Doc: package ast

Permalink

case class Merge[R <: Relation](into: (Table, String), using: (Select[_, R], String), condition: Column[Boolean], whenMatched: Option[Either[Update, DeleteSyntax]] = None, whenMatchedAnd: List[(Either[Update, DeleteSyntax], Column[Boolean])] = List(), whenNotMatched: Option[Insert] = None, whenNotMatchedAnd: List[(Insert, Column[Boolean])] = List()) extends Command with ColumnSyntax with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, ColumnSyntax, Command, Operation, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Merge
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ColumnSyntax
  7. Command
  8. Operation
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Merge(into: (Table, String), using: (Select[_, R], String), condition: Column[Boolean], whenMatched: Option[Either[Update, DeleteSyntax]] = None, whenMatchedAnd: List[(Either[Update, DeleteSyntax], Column[Boolean])] = List(), whenNotMatched: Option[Insert] = None, whenNotMatchedAnd: List[(Insert, Column[Boolean])] = List())

    Permalink

Type Members

  1. implicit class AliasColumnOps[A] extends AnyRef

    Permalink
    Definition Classes
    ColumnSyntax
  2. implicit class AliasedOptionColumnsOps[A] extends AnyRef

    Permalink
    Definition Classes
    ColumnSyntax
  3. implicit class BooleanColumnOps[A] extends AnyRef

    Permalink
    Definition Classes
    ColumnSyntax
  4. implicit class ComparisonColumnOps[A] extends AnyRef

    Permalink
    Definition Classes
    ColumnSyntax
  5. implicit class ConstantColumnOps[A] extends AnyRef

    Permalink

    This enrichment allows writing 1.constant or "abc".constant, which will directly embed the constant value into the generated sql statement.

    This enrichment allows writing 1.constant or "abc".constant, which will directly embed the constant value into the generated sql statement. Do not use this on user input as you will enable SQL injection attacks

    Definition Classes
    ColumnSyntax
  6. implicit class IntColumnOps[A] extends AnyRef

    Permalink
    Definition Classes
    ColumnSyntax
  7. implicit class LiteralColumnOps[A] extends AnyRef

    Permalink
    Definition Classes
    ColumnSyntax
  8. implicit class NullableColumnsOps[A] extends AnyRef

    Permalink
    Definition Classes
    ColumnSyntax
  9. implicit class SomeConstantColumnOps[A] extends AnyRef

    Permalink
    Definition Classes
    ColumnSyntax
  10. implicit class SomeLiteralColumnOps[A] extends AnyRef

    Permalink
    Definition Classes
    ColumnSyntax
  11. implicit class StringColumnOps[A] extends AnyRef

    Permalink
    Definition Classes
    ColumnSyntax

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. implicit def SelectColumnOps[A](select: Select[AliasedColumn[A], _ <: Relation]): SelectColumn[A]

    Permalink

    This implicit conversion allows using as a column: a select statement which selects a single column

    This implicit conversion allows using as a column: a select statement which selects a single column

    Definition Classes
    ColumnSyntax
  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. implicit def columnSetterPair[A, B](pair: (TableColumn[A], Column[B]))(implicit equivalence: ColumnTypeEquivalence[A, B]): Setter[A, _]

    Permalink

    This implicit allows the use of TableColumn -> Column in setters

    This implicit allows the use of TableColumn -> Column in setters

    Definition Classes
    ColumnSyntax
  8. val condition: Column[Boolean]

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. val into: (Table, String)

    Permalink
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. implicit def literalColumn[A](value: Some[A])(implicit columnType: ColumnType[Option[A]]): Column[Option[A]]

    Permalink
    Definition Classes
    ColumnSyntax
  15. implicit def literalColumn[A](value: A)(implicit columnType: ColumnType[A]): Column[A]

    Permalink
    Definition Classes
    ColumnSyntax
  16. implicit def literalSetterPair[A, B](pair: (TableColumn[A], B))(implicit valueType: ColumnType[B], equivalence: ColumnTypeEquivalence[A, B]): Setter[A, _]

    Permalink

    This implicit allows the use of TableColumn -> Value in setters, as opposed to TableColumn -> Column as is actually required:

    This implicit allows the use of TableColumn -> Value in setters, as opposed to TableColumn -> Column as is actually required:

    Definition Classes
    ColumnSyntax
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. val using: (Select[_, R], String)

    Permalink
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def whenMatched(op: DeleteSyntax): MergeMatch[R]

    Permalink
  26. def whenMatched(op: Update): MergeMatch[R]

    Permalink
  27. val whenMatched: Option[Either[Update, DeleteSyntax]]

    Permalink
  28. val whenMatchedAnd: List[(Either[Update, DeleteSyntax], Column[Boolean])]

    Permalink
  29. def whenNotMatched(op: Insert): MergeMatch[R]

    Permalink
  30. val whenNotMatched: Option[Insert]

    Permalink
  31. val whenNotMatchedAnd: List[(Insert, Column[Boolean])]

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ColumnSyntax

Inherited from Command

Inherited from Operation

Inherited from AnyRef

Inherited from Any

Ungrouped