ICouch v0.5.0 ICouch.StreamChunk View Source

Struct module for stream chunks.

The name field will hold the document ID on document streaming, both document ID and attachment name on attachment streaming and nil on changes streaming.

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %ICouch.StreamChunk{data: binary | map | ICouch.Document.t | nil, name: String.t | {String.t, String.t} | nil, ref: pid | reference, type: :document | :attachment}

Link to this section Functions

Link to this function for_attachment(ref, doc_id, filename, data) View Source
Link to this function for_document(ref, doc_id, data) View Source