tursolocal

package
v0.0.0-...-36d6306 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUsernameNotFound = fmt.Errorf("username not found")
	ErrDBNameNotFound   = fmt.Errorf("db name not found")
	ErrDBPathNotFound   = fmt.Errorf("db path not found")
)

Functions

This section is empty.

Types

type LocalDB

type LocalDB struct {
	WriteDB     *sql.DB
	ReadDB      *sql.DB
	CleanupFunc func()
	CloseFunc   func(context.Context) error
}

LocalDB wraps the read/write pools provided by the local Turso adapter.

func NewTursoLocal

func NewTursoLocal(ctx context.Context, dbName, path, encryptionKey string) (*LocalDB, error)

func (*LocalDB) Default

func (l *LocalDB) Default() *sql.DB

Default returns the primary writable connection pool.

Jump to

Keyboard shortcuts

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