sqlite3

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const EngineName = "sqlite3"

Variables

This section is empty.

Functions

func NewSQLite3

func NewSQLite3(dsn string) (sqldatabase.Engine, error)

NewSQLite3 creates a new SQLite3 engine. The dsn is the data source name.(e.g. file:locked.sqlite?cache=shared).

Types

type SQLite3

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

SQLite3 is a SQLite3 engine.

func (SQLite3) Close

func (m SQLite3) Close() error

func (SQLite3) Dialect

func (m SQLite3) Dialect() string

func (SQLite3) Query

func (m SQLite3) Query(ctx context.Context, query string, args ...any) ([]string, [][]string, error)

func (SQLite3) TableInfo

func (m SQLite3) TableInfo(ctx context.Context, table string) (string, error)

func (SQLite3) TableNames

func (m SQLite3) TableNames(ctx context.Context) ([]string, error)

Jump to

Keyboard shortcuts

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