Attributes
- Companion
- enum
- Source
- FieldUpdate.scala
- Graph
-
- Supertypes
- Self type
-
FieldUpdate.type
Members list
Type members
Inherited and Abstract types
The names of the product elements.
The name of the type.
Value members
Concrete methods
Same as Set(field, value), using a column name written out in full.
Same as Set(field, value), using a column name written out in full.
Attributes
- Source
- FieldUpdate.scala
Subtracts by from the selected field, atomically in the store.
Attributes
- Source
- FieldUpdate.scala
Adds by to the selected field, atomically in the store. A missing row is created first, so incrementing a counter that does not exist yet gives by.
Adds by to the selected field, atomically in the store. A missing row is created first, so incrementing a counter that does not exist yet gives by.
FieldUpdate.increment[Stats](_.userCount) // Increment("user_count", 1)
FieldUpdate.increment[Stats](_.userCount, 5L) // Increment("user_count", 5)
Attributes
- Source
- FieldUpdate.scala
Attributes
- Source
- FieldUpdate.scala
Keeps the larger of the stored value and value for the selected field.
Keeps the larger of the stored value and value for the selected field.
Attributes
- Source
- FieldUpdate.scala
Attributes
- Source
- FieldUpdate.scala
Keeps the smaller of the stored value and value for the selected field.
Keeps the smaller of the stored value and value for the selected field.
Attributes
- Source
- FieldUpdate.scala
Attributes
- Source
- FieldUpdate.scala
Replaces the value of the selected field. The field is chosen with a selector such as _.userCount, checked at compile time, and mapped to its snake_case column name.
Replaces the value of the selected field. The field is chosen with a selector such as _.userCount, checked at compile time, and mapped to its snake_case column name.
FieldUpdate.setValue[Stats](_.peak, 10L) // Set("peak", 10L)
Attributes
- Source
- FieldUpdate.scala