Avrora.Storage.File (avrora v0.23.0) View Source

Avora.Storage behavior implementation which uses the filesystem.

Schema name <namespace>.<namespace>.<name> will be stored to path namespace/namespace/name.avsc.

Link to this section Summary

Functions

Read schema from disk by full name, including namespace.

Callback implementation for Avrora.Storage.put/2.

Link to this section Functions

Read schema from disk by full name, including namespace.

Files are stored with each namespace component as a folder name. For example io.confluent.Payment should be stored as follows:

.
 lib/
 priv/
    ...
    schemas/
        io/
            confluent/
                Payment.avsc
 ...

Examples

iex> {:ok, schema} = Avrora.Storage.File.get("io.confluent.Payment")
iex> schema.full_name
"io.confluent.Payment"

Callback implementation for Avrora.Storage.put/2.