View Source Electric.ShapeCache.CrashingFileStorage (electric v0.9.5)

A thing wrapper module around FileStorage that can be configured to raise an error after a certain number of writes.

Summary

Functions

Functions

Link to this function

append_to_log!(log_items, opts)

View Source

Callback implementation for Electric.ShapeCache.Storage.append_to_log!/2.

Callback implementation for Electric.ShapeCache.Storage.cleanup!/1.

Link to this function

for_shape(shape_handle, opts)

View Source

Callback implementation for Electric.ShapeCache.Storage.for_shape/2.

Link to this function

get_all_stored_shapes(opts)

View Source

Callback implementation for Electric.ShapeCache.Storage.get_all_stored_shapes/1.

Link to this function

get_chunk_end_log_offset(offset, opts)

View Source

Callback implementation for Electric.ShapeCache.Storage.get_chunk_end_log_offset/2.

Link to this function

get_current_position(opts)

View Source

Callback implementation for Electric.ShapeCache.Storage.get_current_position/1.

Link to this function

get_log_stream(offset, max_offset, opts)

View Source

Callback implementation for Electric.ShapeCache.Storage.get_log_stream/3.

Callback implementation for Electric.ShapeCache.Storage.get_snapshot/1.

Link to this function

get_total_disk_usage(opts)

View Source

Callback implementation for Electric.ShapeCache.Storage.get_total_disk_usage/1.

Callback implementation for Electric.ShapeCache.Storage.initialise/1.

Link to this function

make_new_snapshot!(data_stream, opts)

View Source

Callback implementation for Electric.ShapeCache.Storage.make_new_snapshot!/2.

Link to this function

mark_snapshot_as_started(opts)

View Source

Callback implementation for Electric.ShapeCache.Storage.mark_snapshot_as_started/1.

Link to this function

set_shape_definition(shape, opts)

View Source

Callback implementation for Electric.ShapeCache.Storage.set_shape_definition/2.

Link to this function

set_snapshot_xmin(xmin, opts)

View Source

Callback implementation for Electric.ShapeCache.Storage.set_snapshot_xmin/2.

Callback implementation for Electric.ShapeCache.Storage.shared_opts/1.

Callback implementation for Electric.ShapeCache.Storage.snapshot_started?/1.

Callback implementation for Electric.ShapeCache.Storage.start_link/1.

Callback implementation for Electric.ShapeCache.Storage.unsafe_cleanup!/1.