protoc-gen-hive

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 9 Imported by: 0

README

protoc-gen-hive

A protoc plugin that generates json-formatted Hive schemas from protobuf files. See examples.

Json is a convenient format to intereact with the AWS Glue API and create/update tables in the AWS Glue Data Catalog.

Installation

go get github.com/simo7/protoc-gen-hive

Alternatively clone the repo and build the plugin:

go build -o bin/protoc-gen-hive .

export PATH=$PWD/bin:$PATH

Usage

protoc \
    --hive_out=./ \
    --hive_opt=paths=source_relative \
    examples/person.proto

Well-known Protobuf types

Reference: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf.

The following types are supported:

  • google.protobuf.Timestamp

Compatibility

It's tested against the new protobuf API google.golang.org/protobuf or version 1.4.0 of the legacy API github.com/golang/protobuf.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL