vertica-sql-go – github.com/vertica/vertica-sql-go Index | Files | Directories

package vertigo

import "github.com/vertica/vertica-sql-go"

Index

Functions

func RegisterTLSConfig

func RegisterTLSConfig(name string, config *tls.Config) error

db, err := sql.Open("vertica", "user@tcp(localhost:3306)/test?tlsmode=custom") reserved modes: 'server', 'server-strict' or 'none'

Types

type Driver

type Driver struct{}

Driver as defined by the Go language Driver interface

func (*Driver) Open

func (d *Driver) Open(connString string) (driver.Conn, error)

Open takes a connection string in this format: user:pass@host:port/database

type VerticaContext

type VerticaContext interface {
	context.Context

	SetCopyInputStream(inputStream io.Reader) error
	GetCopyInputStream() io.Reader

	SetCopyBlockSizeBytes(blockSize int) error
	GetCopyBlockSizeBytes() int

	SetInMemoryResultRowLimit(rowLimit int) error
	GetInMemoryResultRowLimit() int
}

func NewVerticaContext

func NewVerticaContext(parentCtx context.Context) VerticaContext

NewVerticaContext creates a new context that inherits the values and behavior of the provided parent context.

Source Files

connection.go context.go driver.go result.go rows.go stmt.go tx.go

Directories

PathSynopsis
common
logger
msgs
parse
rowcache
Version
v1.2.0
Published
Oct 27, 2021
Platform
linux/amd64
Imports
26 packages
Last checked
now

Tools for package owners.