isq

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply added in v0.4.2

func Apply[T any](f func(a sq.QueryModApply[T])) sq.QueryMod[T]

Types

type DefaultQuery

type DefaultQuery[T any] struct {
	// contains filtered or unexported fields
}

func NewDefaultQuery

func NewDefaultQuery[T any](d litsql.Dialect, startOrder int, startStr string) *DefaultQuery[T]

func (*DefaultQuery[T]) AddQueryClause added in v0.4.0

func (s *DefaultQuery[T]) AddQueryClause(q litsql.QueryClause)

func (*DefaultQuery[T]) Apply

func (s *DefaultQuery[T]) Apply(mods ...sq.QueryMod[T])

func (*DefaultQuery[T]) Build

func (s *DefaultQuery[T]) Build(options ...sq.BuildOption) (string, []any, error)

func (*DefaultQuery[T]) Dialect added in v0.4.0

func (s *DefaultQuery[T]) Dialect() litsql.Dialect

func (*DefaultQuery[T]) WriteQuery

func (s *DefaultQuery[T]) WriteQuery(w litsql.Writer, start int) ([]any, error)

func (*DefaultQuery[T]) WriteSQL

func (s *DefaultQuery[T]) WriteSQL(w litsql.Writer, _ litsql.Dialect, start int) ([]any, error)

type Query

type Query[T any] interface {
	litsql.Query
}

type QueryBuilder added in v0.8.0

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

QueryBuilder implements litsql.QueryBuilder.

func NewQueryBuilder added in v0.8.0

func NewQueryBuilder(d litsql.Dialect) *QueryBuilder

func (*QueryBuilder) AddQueryClause added in v0.8.0

func (s *QueryBuilder) AddQueryClause(q litsql.QueryClause)

func (*QueryBuilder) Dialect added in v0.8.0

func (s *QueryBuilder) Dialect() litsql.Dialect

func (*QueryBuilder) QueryClauseList added in v0.8.0

func (s *QueryBuilder) QueryClauseList() ([]litsql.QueryClause, error)

Jump to

Keyboard shortcuts

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