sqlbuilder

package
v0.0.0-...-3bb7120 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type M

type M map[string]string

type SqlBuilder

type SqlBuilder struct {
	strings.Builder
	// contains filtered or unexported fields
}

func NewSqlBuilder

func NewSqlBuilder() *SqlBuilder

func (*SqlBuilder) And

func (sb *SqlBuilder) And() *SqlBuilder

func (*SqlBuilder) Eq

func (sb *SqlBuilder) Eq(field string, value interface{}) *SqlBuilder

func (*SqlBuilder) EqAny

func (sb *SqlBuilder) EqAny(field string, value interface{}) *SqlBuilder

func (*SqlBuilder) From

func (sb *SqlBuilder) From(table string) *SqlBuilder

func (*SqlBuilder) Ge

func (sb *SqlBuilder) Ge(field string, value interface{}) *SqlBuilder

func (*SqlBuilder) Gt

func (sb *SqlBuilder) Gt(field string, value interface{}) *SqlBuilder

func (*SqlBuilder) Le

func (sb *SqlBuilder) Le(field string, value interface{}) *SqlBuilder

func (*SqlBuilder) LeftJoin

func (sb *SqlBuilder) LeftJoin(table, condition string) *SqlBuilder

func (*SqlBuilder) Limit

func (sb *SqlBuilder) Limit(limit int) *SqlBuilder

func (*SqlBuilder) Lt

func (sb *SqlBuilder) Lt(field string, value interface{}) *SqlBuilder

func (*SqlBuilder) Offset

func (sb *SqlBuilder) Offset(offset int) *SqlBuilder

func (*SqlBuilder) OrderBy

func (sb *SqlBuilder) OrderBy(orderBy map[string]string) *SqlBuilder

func (*SqlBuilder) Select

func (sb *SqlBuilder) Select(fields ...string) *SqlBuilder

func (*SqlBuilder) ToSql

func (sb *SqlBuilder) ToSql() (string, []interface{})

func (*SqlBuilder) Where

func (sb *SqlBuilder) Where() *SqlBuilder

Jump to

Keyboard shortcuts

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