This repo contains the source code for a simple Hello World application, written in Go. The app uses the pgx driver to connect to an existing CockroachDB cluster.
To run the code:
-
Start a local CockroachDB cluster, or use CockroachCloud.
-
From the command line, execute the following:
go mod init basic-sample && go mod tidy
go run main.go
-
Enter the connection string for the cluster.