libsql

package
v0.0.0-...-9d5d30a Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 9 Imported by: 265 modules, 205 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[S ~[]E, E comparable](s S, v E) bool

func Index

func Index[S ~[]E, E comparable](s S, v E) int

func NewConnector

func NewConnector(dbPath string, opts ...Option) (driver.Connector, error)

Types

type Driver

type Driver struct{}

func (Driver) Open

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

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithAuthToken

func WithAuthToken(authToken string) Option

func WithProxy

func WithProxy(proxy string) Option

func WithRemoteEncryptionKey

func WithRemoteEncryptionKey(key string) Option

func WithRequestHeaders

func WithRequestHeaders(headers map[string]string) Option

WithRequestHeaders attaches arbitrary HTTP headers to every request the driver sends to the remote server. Passing the `Host` key (case-insensitive) has no effect.

func WithSchemaDb

func WithSchemaDb(schemaDb bool) Option

func WithTls

func WithTls(tls bool) Option

Directories

Path Synopsis
internal
ws

Jump to

Keyboard shortcuts

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