Versions in this module Expand all Collapse all v0 v0.1.0 Oct 24, 2025 Changes in this version + var ErrMultipleStatements = errors.New("multiple statements in query") + var ErrUnknownOperation = errors.New("unknown operation") + var Parameterized = false + func And(exprs ...Expr) *logicExpr + func Eq(column string, value any) *compExpr + func FromString(query string, args ...any) (database.Request, error) + func FullJoin(table, on string) joinClause + func Gt(column string, value any) *compExpr + func InnerJoin(table, on string) joinClause + func LeftJoin(table, on string) joinClause + func Like(column string, value any) *compExpr + func Lt(column string, value any) *compExpr + func Ne(column string, value any) *compExpr + func Not(expr *compExpr) *notExpr + func Null(column string) *compExpr + func Or(exprs ...Expr) *logicExpr + func RightJoin(table, on string) joinClause + type ConnectionProperties struct + Addr string + DBName string + Extra map[string]string + Password string + Port int + Username string + type Expr interface + ToSQL func() (string, []any) + type Exprs []Expr + func (e Exprs) ToSQL() (string, []any) + type From struct + func DistinctSelect(fields ...string) *From + func DistinctSelectAll() *From + func Select(fields ...string) *From + func SelectAll() *From + func (b From) From(table string, joins ...joinClause) *SelectBuilder + type JoinType string + const JoinTypeFull + const JoinTypeInner + const JoinTypeLeft + const JoinTypeRight + type SelectBuilder struct + func Count(field, table string) *SelectBuilder + func (s *SelectBuilder) Copy() *SelectBuilder + func (s *SelectBuilder) GroupBy(fields ...string) *SelectBuilder + func (s *SelectBuilder) Having(having string) *SelectBuilder + func (s *SelectBuilder) Limit(limit int) *SelectBuilder + func (s *SelectBuilder) Offset(offset int) *SelectBuilder + func (s *SelectBuilder) OrderBy(field string, desc bool) *SelectBuilder + func (s *SelectBuilder) Parameters() []any + func (s *SelectBuilder) ShouldReturn() int + func (s *SelectBuilder) ToRequest() database.Request + func (s *SelectBuilder) Where(expr ...Expr) *SelectBuilder + type SelectQuery struct + AsDistinct bool + Fields []string + GroupByClause []string + HavingClause string + IsCount bool + Joins []joinClause + LimitClause *int + OffsetClause *int + OrderByClause []orderByClause + Table string + WhereClause string