Documentation ¶
Index ¶
- type SQLFragment
- func (f *SQLFragment) And() *SQLFragment
- func (f *SQLFragment) Asc() *SQLFragment
- func (f *SQLFragment) Desc() *SQLFragment
- func (f *SQLFragment) From(table string) *SQLFragment
- func (f *SQLFragment) GroupBy(columns ...string) *SQLFragment
- func (f *SQLFragment) Having(condition string) *SQLFragment
- func (f *SQLFragment) Hook(hookFunc func(*SQLFragment) *SQLFragment) *SQLFragment
- func (f *SQLFragment) InnerJoin(join string) *SQLFragment
- func (f *SQLFragment) IntoColumns(columns ...string) *SQLFragment
- func (f *SQLFragment) IntoValues(values ...string) *SQLFragment
- func (f *SQLFragment) Join(join string) *SQLFragment
- func (f *SQLFragment) LeftJoin(join string) *SQLFragment
- func (f *SQLFragment) Limit(offset, limit int64) *SQLFragment
- func (f *SQLFragment) Or() *SQLFragment
- func (f *SQLFragment) OrderBy(columns ...string) *SQLFragment
- func (f *SQLFragment) RightJoin(join string) *SQLFragment
- func (f *SQLFragment) Select(columns ...string) *SQLFragment
- func (f *SQLFragment) Set(column string, value string) *SQLFragment
- func (f *SQLFragment) String() string
- func (f *SQLFragment) Where(condition string) *SQLFragment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLFragment ¶
type SQLFragment struct {
// contains filtered or unexported fields
}
func DeleteFrom ¶
func DeleteFrom(table string) *SQLFragment
func InsertInto ¶
func InsertInto(table string) *SQLFragment
func Select ¶
func Select(columns ...string) *SQLFragment
func Update ¶
func Update(table string) *SQLFragment
func (*SQLFragment) And ¶
func (f *SQLFragment) And() *SQLFragment
func (*SQLFragment) Asc ¶
func (f *SQLFragment) Asc() *SQLFragment
func (*SQLFragment) Desc ¶
func (f *SQLFragment) Desc() *SQLFragment
func (*SQLFragment) From ¶
func (f *SQLFragment) From(table string) *SQLFragment
func (*SQLFragment) GroupBy ¶
func (f *SQLFragment) GroupBy(columns ...string) *SQLFragment
func (*SQLFragment) Having ¶
func (f *SQLFragment) Having(condition string) *SQLFragment
func (*SQLFragment) Hook ¶
func (f *SQLFragment) Hook(hookFunc func(*SQLFragment) *SQLFragment) *SQLFragment
func (*SQLFragment) InnerJoin ¶
func (f *SQLFragment) InnerJoin(join string) *SQLFragment
func (*SQLFragment) IntoColumns ¶
func (f *SQLFragment) IntoColumns(columns ...string) *SQLFragment
func (*SQLFragment) IntoValues ¶
func (f *SQLFragment) IntoValues(values ...string) *SQLFragment
func (*SQLFragment) Join ¶
func (f *SQLFragment) Join(join string) *SQLFragment
func (*SQLFragment) LeftJoin ¶
func (f *SQLFragment) LeftJoin(join string) *SQLFragment
func (*SQLFragment) Limit ¶
func (f *SQLFragment) Limit(offset, limit int64) *SQLFragment
func (*SQLFragment) Or ¶
func (f *SQLFragment) Or() *SQLFragment
func (*SQLFragment) OrderBy ¶
func (f *SQLFragment) OrderBy(columns ...string) *SQLFragment
func (*SQLFragment) RightJoin ¶
func (f *SQLFragment) RightJoin(join string) *SQLFragment
func (*SQLFragment) Select ¶
func (f *SQLFragment) Select(columns ...string) *SQLFragment
func (*SQLFragment) Set ¶
func (f *SQLFragment) Set(column string, value string) *SQLFragment
func (*SQLFragment) String ¶
func (f *SQLFragment) String() string
func (*SQLFragment) Where ¶
func (f *SQLFragment) Where(condition string) *SQLFragment
Click to show internal directories.
Click to hide internal directories.