sqlite3

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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