lamb

Types

pub type Access {
  Public
  Protected
  Private
}

Constructors

  • Public
  • Protected
  • Private
pub type MatchFunction
pub type Partial(record) {
  Records(List(record), Step)
  End(List(record))
}

Constructors

  • Records(List(record), Step)
  • End(List(record))
pub type Step
pub opaque type Table(index, record)

Functions

pub fn all(table: Table(a, b)) -> List(b)
pub fn continue(step: Step) -> Partial(a)
pub fn count(table: Table(a, b)) -> Int
pub fn create_table(
  access: Access,
  name: String,
) -> Result(Table(a, b), Nil)
pub fn delete(table: Table(a, b), index: a) -> Nil
pub fn delete_table(table: Table(a, b)) -> Nil
pub fn from_name(name: String) -> Result(Table(a, b), Nil)
pub fn get(table: Table(a, b), index: a) -> Result(b, Nil)
pub fn insert(table: Table(a, b), index: a, record: b) -> Nil
pub fn is_alive(table: Table(a, b)) -> Bool
pub fn partial(table: Table(a, b), by limit: Int) -> Partial(b)
pub fn search(
  table: Table(a, b),
  where expression: List(MatchFunction),
) -> List(c)
pub fn search_count(
  table: Table(a, b),
  where expression: List(MatchFunction),
) -> Int
pub fn search_partial(
  table: Table(a, b),
  by limit: Int,
  where expression: List(MatchFunction),
) -> Partial(c)
Search Document