sqlite3

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrefabDatabases = "PRAGMA database_list"
	PrefabTables    = "SELECT name FROM sqlite_master WHERE type='table'"
	PrefabColumns   = "PRAGMA table_info(?)"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLite3

type SQLite3 struct{}

func NewSQLite3Driver

func NewSQLite3Driver() (*SQLite3, error)

func (*SQLite3) Capabilities

func (s *SQLite3) Capabilities() []database.Capabilities

Capabilities implements database.Dialect.

func (*SQLite3) ConnectionStringTemplate

func (s *SQLite3) ConnectionStringTemplate() *template.Template

ConnectionString implements database.Driver.

func (*SQLite3) GetPrefab

func (s *SQLite3) GetPrefab(r database.Request) (string, []any, error)

GetPrefab implements database.SQLDialect.

func (*SQLite3) GetTemplate

func (s *SQLite3) GetTemplate(queryType database.RequestType) string

GetTemplate implements database.Dialect.

func (*SQLite3) IncreamentPlaceholder

func (s *SQLite3) IncreamentPlaceholder() string

IncreamentPlaceholder implements database.Dialect.

func (*SQLite3) Name

func (s *SQLite3) Name() string

Name implements database.SQLDialect.

func (*SQLite3) Quote

func (s *SQLite3) Quote(value string) string

Quote implements database.Dialect.

func (*SQLite3) QuoteRune

func (s *SQLite3) QuoteRune() rune

QuoteRune implements database.Dialect.

func (*SQLite3) RenderCurrentTimestamp

func (s *SQLite3) RenderCurrentTimestamp() string

RenderCurrentTimestamp implements database.Dialect.

func (*SQLite3) RenderPlaceholder

func (s *SQLite3) RenderPlaceholder(index int) string

RenderPlaceholder implements database.Dialect.

func (*SQLite3) RenderTypeCast

func (s *SQLite3) RenderTypeCast() string

RenderTypeCast implements database.Dialect.

func (*SQLite3) RenderValue

func (s *SQLite3) RenderValue(value any) string

RenderValue implements database.Dialect.

func (*SQLite3) ResolveType

func (s *SQLite3) ResolveType(dbType string, value []byte) (any, error)

Jump to

Keyboard shortcuts

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