Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlite

package
v1.30.9 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT, MIT Imports: 28 Imported by: 8

Documentation

Index

Constants

View Source
const (
	// PluginName is the name of the plugin
	PluginName = "sqlite"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataConverter

type DataConverter interface {
	ToSQLiteDateTime(t time.Time) time.Time
	FromSQLiteDateTime(t time.Time) time.Time
}

DataConverter defines the API for conversions to/from go types to sqlite datatypes

type Driver added in v1.30.0

type Driver struct {
	sqlite.Driver
}

Driver implements a SQL driver that returns a custom connection. The custom connection provides ResetSession() and IsValid() methods, preventing the SQL library from closing the connection when a transaction context is canceled.

func (*Driver) Open added in v1.30.0

func (d *Driver) Open(name string) (driver.Conn, error)

Jump to

Keyboard shortcuts

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