Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Bundle) predicate.Bundle
- func ID(id int) predicate.Bundle
- func IDEQ(id int) predicate.Bundle
- func IDGT(id int) predicate.Bundle
- func IDGTE(id int) predicate.Bundle
- func IDIn(ids ...int) predicate.Bundle
- func IDLT(id int) predicate.Bundle
- func IDLTE(id int) predicate.Bundle
- func IDNEQ(id int) predicate.Bundle
- func IDNotIn(ids ...int) predicate.Bundle
- func Key(v string) predicate.Bundle
- func KeyContains(v string) predicate.Bundle
- func KeyContainsFold(v string) predicate.Bundle
- func KeyEQ(v string) predicate.Bundle
- func KeyEqualFold(v string) predicate.Bundle
- func KeyGT(v string) predicate.Bundle
- func KeyGTE(v string) predicate.Bundle
- func KeyHasPrefix(v string) predicate.Bundle
- func KeyHasSuffix(v string) predicate.Bundle
- func KeyIn(vs ...string) predicate.Bundle
- func KeyLT(v string) predicate.Bundle
- func KeyLTE(v string) predicate.Bundle
- func KeyNEQ(v string) predicate.Bundle
- func KeyNotIn(vs ...string) predicate.Bundle
- func Not(p predicate.Bundle) predicate.Bundle
- func Or(predicates ...predicate.Bundle) predicate.Bundle
- func Userid(v int64) predicate.Bundle
- func UseridEQ(v int64) predicate.Bundle
- func UseridGT(v int64) predicate.Bundle
- func UseridGTE(v int64) predicate.Bundle
- func UseridIn(vs ...int64) predicate.Bundle
- func UseridLT(v int64) predicate.Bundle
- func UseridLTE(v int64) predicate.Bundle
- func UseridNEQ(v int64) predicate.Bundle
- func UseridNotIn(vs ...int64) predicate.Bundle
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the bundle type in the database. Label = "bundle" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserid holds the string denoting the userid field in the database. FieldUserid = "userid" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldData holds the string denoting the data field in the database. FieldData = "data" // Table holds the table name of the bundle in the database. Table = "bundles" )
Variables ¶
var Columns = []string{ FieldID, FieldUserid, FieldKey, FieldData, }
Columns holds all SQL columns for bundle fields.
Functions ¶
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func Userid ¶
Userid applies equality check predicate on the "userid" field. It's identical to UseridEQ.
func UseridNotIn ¶
UseridNotIn applies the NotIn predicate on the "userid" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Bundle queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKey ¶
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key field.
func ByUserid ¶
func ByUserid(opts ...sql.OrderTermOption) OrderOption
ByUserid orders the results by the userid field.