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 VError

type VError struct {
	InternalQuery    string
	Severity         string
	Message          string
	SQLState         string
	Detail           string
	Hint             string
	Position         string
	Where            string
	InternalPosition string
	Routine          string
	File             string
	Line             string
	ErrorCode        string
}

VError represents an error reported by the Vertica server.

func (*VError) Error

func (ve *VError) Error() string

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 errors.go result.go rows.go stmt.go tx.go

Directories

PathSynopsis
common
logger
msgs
parse
rowcache
Version
v1.3.3 (latest)
Published
Aug 4, 2023
Platform
js/wasm
Imports
25 packages
Last checked
now

Tools for package owners.