sqlite

package
v0.0.0-...-c78db46 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDSN

func GetDSN(dbPath string) string

Types

type Option

type Option func(*SQLite)

func WithName

func WithName(name string) Option

type SQLite

type SQLite struct {
	DB *sql.DB
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, dbPath string, opts ...Option) (*SQLite, error)

func (*SQLite) Enabled

func (s *SQLite) Enabled() bool

Enabled returns true if the database is enabled

func (*SQLite) GetSQLiteVersion

func (o *SQLite) GetSQLiteVersion(ctx context.Context) (string, error)

GetSQLiteVersion returns the SQLite version

func (*SQLite) Name

func (s *SQLite) Name() string

func (*SQLite) Ping

func (s *SQLite) Ping(ctx context.Context) error

func (*SQLite) Start

func (s *SQLite) Start(_ context.Context) error

func (*SQLite) Stop

func (s *SQLite) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

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