sqlite

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntPtr

func IntPtr(i int) *int

IntPtr is a helper to get a pointer to an int for PaginationOptions.Offset

Types

type SqliteExecutor

type SqliteExecutor struct {
	// contains filtered or unexported fields
}

SqliteExecutor implements the QueryExecutor interface for SQLite databases.

func NewSqliteExecutor

func NewSqliteExecutor(db *sql.DB) *SqliteExecutor

NewSqliteExecutor creates a new SqliteExecutor instance.

func (*SqliteExecutor) Execute

func (e *SqliteExecutor) Execute(ctx context.Context, tableName string, dsl *querydsl.QueryDSL) (*querydsl.QueryResult, error)

Execute runs a query against the database based on the provided QueryDSL.

func (*SqliteExecutor) RegisterComputeFunction

func (e *SqliteExecutor) RegisterComputeFunction(name string, fn querydsl.GoComputeFunction)

RegisterComputeFunction registers a Go function that can be used to compute new fields based on existing row data.

func (*SqliteExecutor) RegisterFilterFunction

func (e *SqliteExecutor) RegisterFilterFunction(operator querydsl.ComparisonOperator, fn querydsl.GoFilterFunction)

RegisterFilterFunction registers a Go function that can be used as a custom comparison operator for filtering rows.

type SqliteQuery

type SqliteQuery struct{}

func NewSqliteQuery

func NewSqliteQuery() *SqliteQuery

func (*SqliteQuery) Generate

func (s *SqliteQuery) Generate(tableName string, dsl *querydsl.QueryDSL) (string, []any, error)

Generate implements the QueryGenerator interface for SQLite.

Jump to

Keyboard shortcuts

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