sqlite3

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dir        string
	DB         string
	Options    string
	Migrations fs.FS
	Upload     func(context.Context, *os.File) error
}

func (*Config) Connection

func (c *Config) Connection() string

type SQLite3

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

func New

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

func (*SQLite3) Backup

func (s *SQLite3) Backup(ctx context.Context, dir string, name string) error

func (*SQLite3) Close

func (s *SQLite3) Close() 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