sqlite3

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InMemory   = ":memory:"
	DriverName = "sqlite3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dir           string
	DB            string
	Options       string
	MigrationsFS  fs.FS
	MigrationsDir string
}

func (*Config) Connection

func (c *Config) Connection() string

type SQLite3

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

func New

func New(ctx context.Context, logger *slog.Logger, config Config) (*SQLite3, error)

func (*SQLite3) Close

func (s *SQLite3) Close() error

func (*SQLite3) Copy added in v0.0.5

func (s *SQLite3) Copy(ctx context.Context, dir string, name string) (*os.File, error)

func (*SQLite3) Migrate

func (s *SQLite3) Migrate() error

Jump to

Keyboard shortcuts

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