sqlite

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLite

type SQLite struct{}

func New

func New() *SQLite

func (*SQLite) BuildBulkDelete

func (s *SQLite) BuildBulkDelete(table string, where *ast.WhereClause) dialect.Result

func (*SQLite) BuildBulkInsert

func (s *SQLite) BuildBulkInsert(table string, columns []string, rows [][]any) dialect.Result

func (*SQLite) BuildBulkSoftDelete

func (s *SQLite) BuildBulkSoftDelete(table string, where *ast.WhereClause) dialect.Result

func (*SQLite) BuildBulkUpdate

func (s *SQLite) BuildBulkUpdate(table string, sets []dialect.ColumnValue, where *ast.WhereClause) dialect.Result

func (*SQLite) BuildBulkUpsert

func (s *SQLite) BuildBulkUpsert(table string, columns []string, rows [][]any, conflictCols []string, updateCols []string) dialect.Result

func (*SQLite) BuildDelete

func (s *SQLite) BuildDelete(table string, pkColumn string, pkValue any) dialect.Result

func (*SQLite) BuildInsert

func (s *SQLite) BuildInsert(table string, columns []string, values []any, _ []string) dialect.Result

func (*SQLite) BuildSelect

func (s *SQLite) BuildSelect(node ast.SelectNode) dialect.Result

func (*SQLite) BuildSoftDelete

func (s *SQLite) BuildSoftDelete(table string, pkColumn string, pkValue any) dialect.Result

func (*SQLite) BuildUpdate

func (s *SQLite) BuildUpdate(table string, changes []dialect.ColumnValue, pkColumn string, pkValue any) dialect.Result

func (*SQLite) BuildUpdateVersioned

func (s *SQLite) BuildUpdateVersioned(table string, changes []dialect.ColumnValue, pkColumn string, pkValue any, versionCol string, currentVersion int) dialect.Result

BuildUpdateVersioned generates a versioned UPDATE for SQLite. SQLite does not support RETURNING, so the new version cannot be retrieved from the statement itself; the caller must increment the version client-side.

func (*SQLite) Explain

func (s *SQLite) Explain(query string) (string, bool)

func (*SQLite) Now

func (s *SQLite) Now() string

func (*SQLite) SupportsReturning

func (s *SQLite) SupportsReturning() bool

Jump to

Keyboard shortcuts

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