Electric.Shapes.Querying (electric v1.4.13)

View Source

Summary

Types

json_iodata()

@type json_iodata() :: iodata()

json_result_stream()

@type json_result_stream() :: Enumerable.t(json_iodata())

Functions

query_move_in(conn, stack_id, shape_handle, shape, arg)

query_subset(conn, stack_id, shape_handle, shape, subset, headers \\ [])

stream_initial_data(conn, stack_id, shape_handle, shape, chunk_bytes_threshold \\ LogChunker.default_chunk_size_threshold())

Streams the initial data for a shape. Query results are returned as a stream of JSON strings, as prepared on PostgreSQL.