cockroach

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildURI

func BuildURI(params map[string]string) (string, error)

BuildURI returns a cockroachdb connection string from a params map.

Types

type DB

type DB struct {
	*sql.DB
}

DB models a connection to a CRDB instance.

func Dial

func Dial(uri string) (*DB, error)

Dial returns a DB instance connected to a cockroach instance available at "uri". https://www.cockroachlabs.com/docs/stable/connection-parameters.html

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL