sqlite

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Name string
	// contains filtered or unexported fields
}

func (*DB) CreateDB

func (d *DB) CreateDB(filepath string) (*sql.DB, error)

func (*DB) DBFileExists

func (d *DB) DBFileExists(dbPath string) error

type DBClient

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

func (*DBClient) RunSQL

func (d *DBClient) RunSQL(statement string) error

type Operator

type Operator interface {
	DBFileExists(dbPath string) error
	CreateDB(filepath string) (*sql.DB, error)
}

func NewDBOperator

func NewDBOperator(ctx context.Context, dbName string) Operator

type SQLRunner

type SQLRunner interface {
	RunSQL(statement string) error
}

func NewDBClient

func NewDBClient(ctx context.Context, l o11y.LoggerInterface, dbFilePath string,
	existingSQLClient *sql.DB) (SQLRunner, error)

Jump to

Keyboard shortcuts

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