Documentation
¶
Overview ¶
Copyright (c) 2025 DaggerTech. All rights reserved. Use of this source code is governed by an MIT license that can be found in the LICENSE file. Package where provides functionality for building SQL WHERE clauses
Copyright (c) 2025 DaggerTech. All rights reserved. Use of this source code is governed by an MIT license that can be found in the LICENSE file. Package where provides functionality for building SQL WHERE clauses
Copyright (c) 2025 DaggerTech. All rights reserved. Use of this source code is governed by an MIT license that can be found in the LICENSE file. Package where provides functionality for building SQL WHERE clauses
Copyright (c) 2025 DaggerTech. All rights reserved. Use of this source code is governed by an MIT license that can be found in the LICENSE file. Package where provides functionality for building SQL WHERE clauses
Copyright (c) 2025 DaggerTech. All rights reserved. Use of this source code is governed by an MIT license that can be found in the LICENSE file. Package where provides functionality for building SQL WHERE clauses
Copyright (c) 2025 DaggerTech. All rights reserved. Use of this source code is governed by an MIT license that can be found in the LICENSE file. Package where provides functionality for building SQL WHERE clauses
Copyright (c) 2025 DaggerTech. All rights reserved. Use of this source code is governed by an MIT license that can be found in the LICENSE file. Package clause This is a very basic, and yet versatile ORM package. At present, this is only for postgres
Index ¶
- type Builder
- func Between(field string, value1 interface{}, value2 interface{}) *Builder
- func Contains(field string, value string) *Builder
- func EndsWith(field string, value string) *Builder
- func Equal(field string, value interface{}) *Builder
- func Greater(field string, value interface{}) *Builder
- func In(field string, value interface{}) *Builder
- func IsNotNull(field string) *Builder
- func IsNull(field string) *Builder
- func Less(field string, value interface{}) *Builder
- func Like(field string, value string) *Builder
- func NewBuilder(c ...conjunction) *Builder
- func NotBetween(field string, value1 interface{}, value2 interface{}) *Builder
- func NotContains(field string, value string) *Builder
- func NotEndsWith(field string, value string) *Builder
- func NotEqual(field string, value interface{}) *Builder
- func NotGreater(field string, value interface{}) *Builder
- func NotIn(field string, value interface{}) *Builder
- func NotLess(field string, value interface{}) *Builder
- func NotLike(field string, value string) *Builder
- func NotStartsWith(field string, value string) *Builder
- func StartsWith(field string, value string) *Builder
- func Sub(c *Builder) *Builder
- func (c *Builder) AndBetween(field string, value1 interface{}, value2 interface{}) *Builder
- func (c *Builder) AndContains(field string, value string) *Builder
- func (c *Builder) AndEndsWith(field string, value string) *Builder
- func (c *Builder) AndEqual(field string, value interface{}) *Builder
- func (c *Builder) AndGreater(field string, value interface{}) *Builder
- func (c *Builder) AndIn(field string, value interface{}) *Builder
- func (c *Builder) AndIsNull(field string) *Builder
- func (c *Builder) AndLess(field string, value interface{}) *Builder
- func (c *Builder) AndLike(field string, value string) *Builder
- func (c *Builder) AndNotBetween(field string, value1 interface{}, value2 interface{}) *Builder
- func (c *Builder) AndNotContains(field string, value string) *Builder
- func (c *Builder) AndNotEndsWith(field string, value string) *Builder
- func (c *Builder) AndNotEqual(field string, value interface{}) *Builder
- func (c *Builder) AndNotGreater(field string, value interface{}) *Builder
- func (c *Builder) AndNotIn(field string, value interface{}) *Builder
- func (c *Builder) AndNotIsNull(field string) *Builder
- func (c *Builder) AndNotLess(field string, value interface{}) *Builder
- func (c *Builder) AndNotLike(field string, value string) *Builder
- func (c *Builder) AndNotStartsWith(field string, value string) *Builder
- func (c *Builder) AndStartsWith(field string, value string) *Builder
- func (c *Builder) AndSub(n *Builder) *Builder
- func (c *Builder) Count() int
- func (c *Builder) OrBetween(field string, value1 interface{}, value2 interface{}) *Builder
- func (c *Builder) OrContains(field string, value string) *Builder
- func (c *Builder) OrEndsWith(field string, value string) *Builder
- func (c *Builder) OrEqual(field string, value interface{}) *Builder
- func (c *Builder) OrGreater(field string, value interface{}) *Builder
- func (c *Builder) OrIn(field string, value interface{}) *Builder
- func (c *Builder) OrIsNull(field string) *Builder
- func (c *Builder) OrLess(field string, value interface{}) *Builder
- func (c *Builder) OrLike(field string, value string) *Builder
- func (c *Builder) OrNotBetween(field string, value1 interface{}, value2 interface{}) *Builder
- func (c *Builder) OrNotContains(field string, value string) *Builder
- func (c *Builder) OrNotEndsWith(field string, value string) *Builder
- func (c *Builder) OrNotEqual(field string, value interface{}) *Builder
- func (c *Builder) OrNotGreater(field string, value interface{}) *Builder
- func (c *Builder) OrNotIn(field string, value interface{}) *Builder
- func (c *Builder) OrNotIsNull(field string) *Builder
- func (c *Builder) OrNotLess(field string, value interface{}) *Builder
- func (c *Builder) OrNotLike(field string, value string) *Builder
- func (c *Builder) OrNotStartsWith(field string, value string) *Builder
- func (c *Builder) OrStartsWith(field string, value string) *Builder
- func (c *Builder) OrSub(n *Builder) *Builder
- func (c *Builder) String(operators []string) string
- type DBField
- type DBFloat
- type DBInt
- type DBNumeric
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is the main clause builder mechanism used for dagger
func Between ¶
Between creates a new Builder with the first clause being a between clause @param f @param v1 @param v2 @return *Builder
func Contains ¶
Contains creates a new Builder with the first clause being a contains clause @param f @param v @return *Builder
func EndsWith ¶
EndsWith creates a new Builder with the first clause being an ends with clause @param f @param v @return *Builder
func Equal ¶
Equal creates a new Builder with the first clause being an equal clause @param f @param v @return *Builder
func Greater ¶
Greater creates a new Builder with the first clause being a greater than clause @param f @param v @return *Builder
func In ¶
In creates a new Builder with the first clause being an in clause @param f @param v @return *Builder
func IsNotNull ¶
IsNotNull creates a new Builder with the first clause being an is null clause @param f @return *Builder
func IsNull ¶
IsNull creates a new Builder with the first clause being an is null clause @param f @return *Builder
func Less ¶
Less creates a new Builder with the first clause being a less than clause @param f @param v @return *Builder
func Like ¶
Like creates a new Builder with the first clause being a like clause @param f @param v @return *Builder
func NotBetween ¶
NotBetween creates a new Builder with the first clause being a not between clause @param f @param v1 @param v2 @return *Builder
func NotContains ¶
NotContains creates a new Builder with the first clause being a not contains clause @param f @param v @return *Builder
func NotEndsWith ¶
NotEndsWith creates a new Builder with the first clause being a not ends with clause @param f @param v @return *Builder
func NotEqual ¶
NotEqual creates a new Builder with the first clause being a not equal clause @param f @param v @return *Builder
func NotGreater ¶
NotGreater creates a new Builder with the first clause being a not greater than clause @param f @param v @return *Builder
func NotIn ¶
NotIn creates a new Builder with the first clause being a not in clause @param f @param v @return *Builder
func NotLess ¶
NotLess creates a new Builder with the first clause being a not less than clause @param f @param v @return *Builder
func NotLike ¶
NotLike creates a new Builder with the first clause being a not like clause @param f @param v @return *Builder
func NotStartsWith ¶
NotStartsWith creates a new Builder with the first clause being a not starts with clause @param f @param v @return *Builder
func StartsWith ¶
StartsWith creates a new Builder with the first clause being a starts with clause @param f @param v @return *Builder
func Sub ¶
Sub creates a new Builder with the first clause being a sub clause @param c @return *Builder
func (*Builder) AndBetween ¶
AndBetween add a between clause to the clause with an AND conjunction
func (*Builder) AndContains ¶
AndContains add a contains clause to the clause with an AND conjunction
func (*Builder) AndEndsWith ¶
AndEndsWith add a ends with clause to the clause with an AND conjunction
func (*Builder) AndEqual ¶
AndEqual add an equal clause to the clause with an AND conjunction @receiver c @param f @param v @return *Builder
func (*Builder) AndGreater ¶
AndGreater add a greater than clause to the clause with an AND conjunction @receiver c @param f @param v @return *Builder
func (*Builder) AndNotBetween ¶
AndNotBetween add a not between clause to the clause with an AND conjunction
func (*Builder) AndNotContains ¶
AndNotContains add a contains clause to the clause with an AND conjunction
func (*Builder) AndNotEndsWith ¶
AndNotEndsWith add a ends with clause to the clause with an AND conjunction
func (*Builder) AndNotEqual ¶
AndNotEqual add a not equal clause to the clause with an AND conjunction
func (*Builder) AndNotGreater ¶
AndNotGreater add a not greater than clause to the clause with an AND conjunction
func (*Builder) AndNotIsNull ¶
AndNotIsNull adds a not is null clause to the clause with an AND conjunction
func (*Builder) AndNotLess ¶
AndNotLess add a not less than clause to the clause with an AND conjunction
func (*Builder) AndNotLike ¶
AndNotLike add a not like clause to the clause with an AND conjunction
func (*Builder) AndNotStartsWith ¶
AndNotStartsWith add a starts with clause to the clause with an AND conjunction
func (*Builder) AndStartsWith ¶
AndStartsWith add a starts with clause to the clause with an AND conjunction
func (*Builder) AndSub ¶
AndSub add and existing subclause to the clause with an AND conjunction @receiver c @param n @return *Builder
func (*Builder) OrContains ¶
OrContains add a contains clause to the clause with an OR conjunction
func (*Builder) OrEndsWith ¶
OrEndsWith add a ends with clause to the clause with an OR conjunction
func (*Builder) OrGreater ¶
OrGreater add a greater than clause to the clause with an OR conjunction
func (*Builder) OrNotBetween ¶
OrNotBetween add a not between clause to the clause with an OR conjunction
func (*Builder) OrNotContains ¶
OrNotContains add a not contains clause to the clause with an OR conjunction
func (*Builder) OrNotEndsWith ¶
OrNotEndsWith add a not ends with clause to the clause with an OR conjunction
func (*Builder) OrNotEqual ¶
OrNotEqual add a not equal clause to the clause with an OR conjunction
func (*Builder) OrNotGreater ¶
OrNotGreater add a not greater than clause to the clause with an OR conjunction
func (*Builder) OrNotIsNull ¶
OrNotIsNull adds a not is null clause to the clause with an OR conjunction
func (*Builder) OrNotLess ¶
OrNotLess add a not less than clause to the clause with an OR conjunction
func (*Builder) OrNotStartsWith ¶
OrNotStartsWith add a not starts with clause to the clause with an OR conjunction
func (*Builder) OrStartsWith ¶
OrStartsWith add a starts with clause to the clause with an OR conjunction
type DBField ¶
DBField represents all valid database field types This includes numeric types, boolean, string, and time.Time