Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 673 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 673 Bytes

go-cod-demo

A simple example showing how to connect a golang app to Cloudera Operational Database

This app demonstrates how to create a connection, create a table, insert a row, and read that row.

Depends on the excellent Calcite Avatica Go driver.

Usage

Clone this repository

$ git clone https://github.com/josiahg/go-cod-demo
$ cd go-cod-demo

Install the calcite-avatica-go module, which is required

$ go get github.com/apache/calcite-avatica-go

Open main.go and update the dsn to reflect your COD URL, username, and password. Instructions are in the file.

Run it!

go run main.go