:shards (Bardo v0.1.0)

View Source

A minimal replacement for the :shards library for testing. Uses ETS tables for storage with matching functions.

Summary

Functions

Delete an entire table.

Delete a record from a table.

Insert a record into a table.

Lookup a record in a table.

Match objects in a table.

Create a new table.

Update a counter in a table.

Functions

delete(table)

Delete an entire table.

delete(table, key)

Delete a record from a table.

insert(table, record)

Insert a record into a table.

lookup(table, key)

Lookup a record in a table.

match_object(table, pattern)

Match objects in a table.

new(name, options)

Create a new table.

update_counter(table, key, update_op, default)

Update a counter in a table.