Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlite

package
v0.1.58 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service provisions sqlite databases for agently-core.

func New

func New(root string) *Service

func (*Service) Ensure

func (s *Service) Ensure(ctx context.Context) (string, error)

Ensure sets up a SQLite database and loads schema if needed. It returns a DSN.

func (*Service) EnsureInMemory

func (s *Service) EnsureInMemory(ctx context.Context) (string, error)

EnsureInMemory initializes an in-memory shared SQLite DB and returns its DSN.

func (*Service) WithPath

func (s *Service) WithPath(path string) *Service

WithPath overrides the sqlite file path.

Jump to

Keyboard shortcuts

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