Update

ldbc.query.builder.statement.Update
case class Update[F[_], P <: Product](tableQuery: TableQuery[F, P], columns: List[String], params: Seq[ParameterBinder[F]])

A model for constructing UPDATE statements in MySQL.

Type parameters

F

The effect type

P

Base trait for all products

Value parameters

columns

Column name list

params

A list of Traits that generate values from Parameter, allowing PreparedStatement to be set to a value by index only.

tableQuery

Trait for generating SQL table information.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

inline def set[Tag <: Singleton, T](tag: Tag, value: T)(using mirror: ProductOf[P], index: ValueOf[IndexOf[MirroredElemLabels, Tag]], check: T =:= Elem[<none>, IndexOf[MirroredElemLabels, Tag]]): Update[F, P]

A method that sets additional values to be updated in the query model that updates specific columns defined in the table.

A method that sets additional values to be updated in the query model that updates specific columns defined in the table.

Type parameters

T

Scala types that match SQL DataType

Tag

Type with a single instance

Value parameters

check

A value to verify that the specified type matches the type of the specified column that the Table has.

index

Position of the specified type in tuple X

mirror

product isomorphism map

tag

A type with a single instance. Here, Column is passed.

value

A value of type T to be inserted into the specified column.

Attributes

inline def set[Tag <: Singleton, T](tag: Tag, value: Option[T])(using mirror: ProductOf[P], index: ValueOf[IndexOf[MirroredElemLabels, Tag]], check: Option[T] =:= Elem[<none>, IndexOf[MirroredElemLabels, Tag]]): Update[F, P]

A method that sets additional values to be updated in the query model that updates specific columns defined in the table.

A method that sets additional values to be updated in the query model that updates specific columns defined in the table.

Type parameters

T

Scala types that match SQL DataType

Tag

Type with a single instance

Value parameters

check

A value to verify that the specified type matches the type of the specified column that the Table has.

index

Position of the specified type in tuple X

mirror

product isomorphism map

tag

A type with a single instance. Here, Column is passed.

value

A value of type T to be inserted into the specified column.

Attributes

inline def set[Tag <: Singleton, T](tag: Tag, value: T, bool: Boolean)(using mirror: ProductOf[P], index: ValueOf[IndexOf[MirroredElemLabels, Tag]], check: T =:= Elem[<none>, IndexOf[MirroredElemLabels, Tag]]): Update[F, P]

A method that sets additional values to be updated in the query model that updates specific columns defined in the table.

A method that sets additional values to be updated in the query model that updates specific columns defined in the table.

Type parameters

T

Scala types that match SQL DataType

Tag

Type with a single instance

Value parameters

bool

Conditional value of whether or not to update the value.

check

A value to verify that the specified type matches the type of the specified column that the Table has.

index

Position of the specified type in tuple X

mirror

product isomorphism map

tag

A type with a single instance. Here, Column is passed.

value

A value of type T to be inserted into the specified column.

Attributes

override def statement: String

SQL statement string

SQL statement string

Attributes

Definition Classes
Command
def where(func: TableQuery[F, P] => ExpressionSyntax[F]): Where[F]

A method for setting the WHERE condition in a UPDATE statement.

A method for setting the WHERE condition in a UPDATE statement.

Value parameters

func

Function to construct an expression using the columns that Table has.

Attributes

Inherited methods

def limit(length: Long): Parameter[F, Long] ?=> Limit[F]

A method for setting the LIMIT condition in a statement.

A method for setting the LIMIT condition in a statement.

Value parameters

length

Upper limit to be updated

Attributes

Inherited from:
LimitProvider (hidden)
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product