avrora v0.13.0 mix avrora.reg.schema View Source

Register either one schema or all schemas in the Avrora.Config.schemas_path directory.

mix avrora.reg.schema [--all] [--name NAME]

The search of the schemas will be performed under path configured in schemas_path configuration option. One of either option must be given.

Options

  • --name - the full name of the schema to register (exclusive with --all)
  • --all - register all found schemas

The --name option expects that given schema name will comply to Avrora.Storage.File module rules.

For example, if the schema name is io.confluent.Payment it should be stored as <schemas path>/io/confluent/Payment.avsc

Usage

mix avrora.reg.schema --name io.confluent.Payment
mix avrora.reg.schema --all