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

Query builder for count operation.

alias Unreal.Writer

Writer.Count.init()
|> Writer.Count.from("users")
|> Writer.Count.where(age: {:>, 18})
|> Writer.Count.build()

Or

alias Unreal.Writer

Writer.Count.init("users", age: {:>, 18})
|> Writer.Count.build()

Link to this section Summary

Link to this section Types

@type t() :: %Unreal.Writer.Count{from: String.t(), params: map(), where: String.t()}

Link to this section Functions

@spec build(t()) :: {String.t(), map()}
@spec from(t(), String.t()) :: t()
@spec init() :: t()
@spec init(String.t()) :: t()
@spec init(
  String.t(),
  keyword()
) :: t()
@spec where(
  t(),
  keyword()
) :: t()