isq

package
v0.3.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Func

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

Types

type DefaultQuery

type DefaultQuery[T any] struct {
	*sq.Builder
	// contains filtered or unexported fields
}

func NewDefaultQuery

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

func (*DefaultQuery[T]) Apply

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

func (*DefaultQuery[T]) Build

func (s *DefaultQuery[T]) Build(writerOptions ...sq.WriterOption) (string, sq.Args, error)

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