sql

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(
	errorHandler func(err error),
	traceHandler func(format string, a ...any),
	decryptHandler func(cipherText string, encryptionMethod string) (secret string))

Types

type ConnectOptions

type ConnectOptions struct {
	Database string

	Interactive bool
}

type Sql

type Sql interface {
	Connect(endpoint Endpoint, user *User, options ConnectOptions)
	Query(text string)
	ScalarString(query string) string
}

func New

func New(options SqlOptions) Sql

type SqlOptions

type SqlOptions struct {
	UnitTesting bool
}

Jump to

Keyboard shortcuts

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