sqlite3

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 13 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
	Migrations source.Driver
}

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) 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