Skip to content

Basic instructions for connecting a golang app to Cloudera Operational Database

Notifications You must be signed in to change notification settings

josiahg/go-cod-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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

About

Basic instructions for connecting a golang app to Cloudera Operational Database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages