amnesiac/table
Types
pub type AccessMode {
ReadWrite
ReadOnly
}
Constructors
-
ReadWrite
-
ReadOnly
pub type CreateOption {
AccessMode(AccessMode)
Attributes(List(Atom))
DiscCopies(List(Node))
DiscOnlyCopies(List(Node))
RamCopies(List(Node))
Index(List(Atom))
LoadOrder(Int)
Majority(Bool)
RecordName(Atom)
Type(TableType)
LocalContent(Bool)
}
Constructors
-
AccessMode(AccessMode)
-
Attributes(List(Atom))
-
DiscCopies(List(Node))
-
DiscOnlyCopies(List(Node))
-
RamCopies(List(Node))
-
Index(List(Atom))
-
LoadOrder(Int)
-
Majority(Bool)
-
RecordName(Atom)
-
Type(TableType)
-
LocalContent(Bool)
Functions
pub fn create_table(
name: Table,
create_option: List(CreateOption),
) -> Result(Nil, Dynamic)
pub fn del_table_copy(
table: Table,
node: Node,
) -> Result(Nil, Dynamic)
pub fn del_table_index(
table: Table,
index attribute: Atom,
) -> Result(Nil, Dynamic)
pub fn delete_table(table: Table) -> Result(Nil, Dynamic)
pub fn name_from_string(name: String) -> Table
pub fn table_name(name: Atom) -> Table