View Source Unreal.Writer.Update (Unreal v0.2.0)

Query builder for update operation.

alias Unreal.Writer

Writer.Update.init()
|> Writer.Update.name("users")
|> Writer.Update.values(point: {:+, 10}, verified: true)
|> Writer.Update.where(point: {:>, 50})
|> Writer.Update.build()

Or

alias Unreal.Writer

Writer.Update.init("users", [point: {:+, 10}, verified: true], point: {:>, 50})
|> Writer.Update.build()

Link to this section Summary

Link to this section Types

@type t() :: %Unreal.Writer.Update{name: String.t(), values: keyword(), where: term()}

Link to this section Functions

@spec build(t()) :: {String.t(), map()}
@spec init() :: t()
@spec init(String.t()) :: t()
@spec init(
  String.t(),
  keyword()
) :: t()
Link to this function

init(record_name, data, matches)

View Source
@spec init(String.t(), keyword(), keyword()) :: t()
Link to this function

name(builder, record_name)

View Source
@spec name(t(), String.t()) :: t()
@spec values(
  t(),
  keyword()
) :: t()
@spec where(
  t(),
  keyword()
) :: t()