sqlite

package
v1.30.0-145.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT, MIT Imports: 25 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

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

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