phasedb v0.0.2 PhaseDB.Storage.ETS

Creates an ETS table and wraps it in a struct with relevant metadata so that we can implement the Enumerable protocol.

Summary

Functions

Creates an ETS table. Returns a struct

Functions

at(e_t_s, idx)
create(opts \\ [])

Creates an ETS table. Returns a struct.

Takes: - options: - resolution: storage resolution in usecs - ie if the series has a 5 second resultion this value will be 5_000. Defaults to 1. - range: time range this series holds in usecs - ie setting this value to 10_000 will discard any records whose recorded_at is more than 10 seconds ago. Defaults to nil (forever).

drop(e_t_s)