lamb/query

Types

pub type Query(index, record, x) =
  #(Head(index, record), Conditions, Body(x))

Functions

pub fn index(
  query: #(#(a, b), List(Nil), List(c)),
  matches spec: d,
) -> #(#(d, b), List(Nil), List(c))
pub fn map(
  query: #(#(a, b), List(Nil), List(c)),
  into mapper: fn(a, b) -> d,
) -> #(#(a, b), List(Nil), List(d))
pub fn new() -> #(#(Atom, Atom), List(Nil), List(Atom))
pub fn record(
  query: #(#(a, b), List(Nil), List(c)),
  matches spec: d,
) -> #(#(a, d), List(Nil), List(c))
pub fn validate(
  query: #(#(a, b), List(Nil), List(c)),
) -> Result(#(#(a, b), List(Nil), List(c)), List(String))
Search Document