Avro Bookmarks

Published: 2019-12-23, Updated: 2020-06-29

Gerar arquivo arquivo go a partir do avro

gogen-avro.v4 --package=avropackage ./ avropackage/someavro.avsc

Schema com enums

{
  "name": "Food",
  "type": "record",
  "namespace": "acme.food",
  "fields": [
    {
      "name": "type",
      "type": {
        "name": "FoodKind",
        "type": "enum",
        "symbols": ["FRUIT", "VEGETABLE"]
      },
      "doc": "What kind of fruit"
    },
    {
      "name": "nullableEnum",
      "type": [
        {
          "name": "SomeNullableEnumType",
          "type": "enum",
          "symbols": [
            "A",
            "B"
          ]
        },
        "null"
      ]
    }
}

Arrays Example

{
  "name": "fruits",
  "type": {
    "type": "array",
    "items": "somepackage.Fruit"
  }
}

avro commands, avro bookmarks, avro examples


Automatically configure native image reflection configuration Usar UUIDs como PKs é uma boa ideia?

Comments