Avrora.Utils.Registrar.register_schema_by_name

You're seeing just the function register_schema_by_name, go back to Avrora.Utils.Registrar module for more information.
Link to this function

register_schema_by_name(name, opts \\ [])

View Source

Specs

register_schema_by_name(String.t(), as: String.t(), force: boolean()) ::
  {:ok, Avrora.Schema.t()} | {:error, term()}

Register schema from local schema file in the Schema Registry.

Schema name conventions inherited from Avrora.Storage.File.get/1. For extended documentation about registration process see register_schema/2.

Options

  • :as - the name which will be used to register schema (i.e subject).
  • :force - the flag enforcing registration when schema was found in the Memory store (false by default).

Examples

...> {:ok, schema} = Avrora.Utils.Registrar.register_schema_by_name("io.confluent.Payment", as: "NewName", force: true)
...> schema.full_name
"io.confluent.Payment"