Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 830 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 830 Bytes

YugabyteDB protobuf and GRPC clients

Generated from the YugabyteDB provided proto files, no enterprise protobufs here.

Regenerate

Clone YugabyteDB sources somewhere:

mkdir -p /tmp/ybdb
cd /tmp/ybdb
git clone https://github.com/yugabyte/yugabyte-db.git .
git checkout v2.13.0

Clone this repository:

mkdir -p ${GOPATH}/src/github.com/radekg/yugabyte-db-go-proto
cd ${GOPATH}/src/github.com/radekg/yugabyte-db-go-proto
git clone https://github.com/radekg/yugabyte-db-go-proto.git .

Generate:

make YB_SRC_DIR=/tmp/ybdb clean get-proto gen-proto

Using

import (
    ybApi "github.com/radekg/yugabyte-db-go-proto/v2/yb/api"
)

For a real world example, have a look at the reference YugabyteDB CLI client.