Documentation
¶
Index ¶
Constants ¶
View Source
const AvroMetadataKey = "postgres.avro.schema"
Variables ¶
View Source
var Avro = &avroExtractor{ pgMap: pgtype.NewMap(), avroMap: map[string]*avro.PrimitiveSchema{ "bool": avro.NewPrimitiveSchema(avro.Boolean, nil), "bytea": avro.NewPrimitiveSchema(avro.Bytes, nil), "float4": avro.NewPrimitiveSchema(avro.Float, nil), "float8": avro.NewPrimitiveSchema(avro.Double, nil), "int8": avro.NewPrimitiveSchema(avro.Long, nil), "int4": avro.NewPrimitiveSchema(avro.Int, nil), "int2": avro.NewPrimitiveSchema(avro.Int, nil), "text": avro.NewPrimitiveSchema(avro.String, nil), "varchar": avro.NewPrimitiveSchema(avro.String, nil), "timestamptz": avro.NewPrimitiveSchema( avro.Long, avro.NewPrimitiveLogicalSchema(avro.TimestampMicros), ), "timestamp": avro.NewPrimitiveSchema( avro.Long, avro.NewPrimitiveLogicalSchema(avro.LocalTimestampMicros), ), "date": avro.NewPrimitiveSchema( avro.Int, avro.NewPrimitiveLogicalSchema(avro.Date), ), "uuid": avro.NewPrimitiveSchema( avro.String, avro.NewPrimitiveLogicalSchema(avro.UUID), ), }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.