immusql

package module
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTLSoptions

func RegisterTLSoptions(dns string, options client.MTLsOptions) error

RegisterTLSoptions registers a tls configuration to be sued for a specific domain name.

Types

type ImmuDBconn

type ImmuDBconn interface {
	ExistTable(name string) (bool, error)
}

ImmuDBconn exposes functions of an immudb connection or an embedded engine, which cannot be called using the sql api.

type ImmudbDriver

type ImmudbDriver struct{}

ImmudbDriver is the basis of the database/sql driver.

func (*ImmudbDriver) Open

func (driver *ImmudbDriver) Open(dsn string) (driver.Conn, error)

Open a new connection to immudb.

func (*ImmudbDriver) OpenConnector

func (driver *ImmudbDriver) OpenConnector(dsn string) (*connector, error)

OpenConnector creates a connector for opening connections to a immudb.

type LogLevel

type LogLevel int

LogLevel defines the logging level to be used by a logger.

const (
	LogLevelDebug LogLevel = iota
	LogLevelInfo
	LogLevelWarn
	LogLevelError
	LogLevelFatal
	LogLevelPanic
	LogLevelNone

	LogLevelTrace LogLevel = -1
)

Define log levels. The default level is debug.

type Logger

type Logger interface {
	Log(ctx context.Context, level LogLevel, msg string)
}

Logger is the interface for logging debug messages of the driver.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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