Documentation ¶
Index ¶
- func Apply[T any](f func(a sq.QueryModApply[T])) sq.QueryMod[T]
- type DefaultQuery
- func (s *DefaultQuery[T]) AddQueryClause(q litsql.QueryClause)
- func (s *DefaultQuery[T]) Apply(mods ...sq.QueryMod[T])
- func (s *DefaultQuery[T]) Build(options ...sq.BuildOption) (string, []any, error)
- func (s *DefaultQuery[T]) Dialect() litsql.Dialect
- func (s *DefaultQuery[T]) WriteQuery(w litsql.Writer, start int) ([]any, error)
- func (s *DefaultQuery[T]) WriteSQL(w litsql.Writer, _ litsql.Dialect, start int) ([]any, error)
- type Query
- type QueryBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultQuery ¶
type DefaultQuery[T any] struct { // contains filtered or unexported fields }
func NewDefaultQuery ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.