Skip to content

radekg/yugabyte-db-go-proto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.