isq

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 3 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.BuildQueryOption) (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
}

Jump to

Keyboard shortcuts

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