lamb/table

Types

pub type Access {
  Public
  Protected
  Private
}

Constructors

  • Public
  • Protected
  • Private
pub type Config {
  Config(
    name: String,
    access: Access,
    kind: Kind,
    registered: Bool,
  )
}

Constructors

  • Config(
      name: String,
      access: Access,
      kind: Kind,
      registered: Bool,
    )
pub type Error {
  AlreadyRegistered(Name)
}

Constructors

  • AlreadyRegistered(Name)
pub type Kind {
  Set
  Bag
}

Constructors

  • Set
  • Bag
pub type Table(index, record) {
  Table(
    reference: TableId,
    name: Name,
    kind: Kind,
    access: Access,
    registered: Bool,
  )
}

Constructors

  • Table(
      reference: TableId,
      name: Name,
      kind: Kind,
      access: Access,
      registered: Bool,
    )

Functions

pub fn create(config: Config) -> Result(Table(a, b), Error)
pub fn delete(table: Table(a, b)) -> Nil
pub fn from_name(name: String) -> Result(Reference, Nil)
pub fn is_alive(table: Table(a, b)) -> Bool
Search Document