View Source Electric.Shapes (electric v0.4.4)
Summary
Functions
Clean up all data (meta data and shape log + snapshot) associated with the given shape ID
Get the last exclusive offset of the chunk starting from the given offset
Get stream of the log since a given offset
Get or create a shape ID and return it along with the latest offset of the shape
Get the shape that corresponds to this shape definition and return it along with the latest offset of the shape
Get snapshot for the shape ID
Check whether the log has an entry for a given shape ID
Types
@type shape_id() :: Electric.ShapeCacheBehaviour.shape_id()
Functions
Clean up all data (meta data and shape log + snapshot) associated with the given shape ID
@spec get_chunk_end_log_offset( keyword(), shape_id(), Electric.Replication.LogOffset.t() ) :: Electric.Replication.LogOffset.t() | nil
Get the last exclusive offset of the chunk starting from the given offset
If nil
is returned, chunk is not complete and the shape's latest offset should be used
Get stream of the log since a given offset
@spec get_or_create_shape_id( keyword(), Electric.Shapes.Shape.t() ) :: {shape_id(), Electric.Replication.LogOffset.t()}
Get or create a shape ID and return it along with the latest offset of the shape
@spec get_shape( keyword(), Electric.Shapes.Shape.t() ) :: {shape_id(), Electric.Replication.LogOffset.t()}
Get the shape that corresponds to this shape definition and return it along with the latest offset of the shape
Get snapshot for the shape ID
Check whether the log has an entry for a given shape ID