Documentation ¶
Index ¶
- Constants
- Variables
- func About(v string) predicate.User
- func AboutContains(v string) predicate.User
- func AboutContainsFold(v string) predicate.User
- func AboutEQ(v string) predicate.User
- func AboutEqualFold(v string) predicate.User
- func AboutGT(v string) predicate.User
- func AboutGTE(v string) predicate.User
- func AboutHasPrefix(v string) predicate.User
- func AboutHasSuffix(v string) predicate.User
- func AboutIn(vs ...string) predicate.User
- func AboutIsNil() predicate.User
- func AboutLT(v string) predicate.User
- func AboutLTE(v string) predicate.User
- func AboutNEQ(v string) predicate.User
- func AboutNotIn(vs ...string) predicate.User
- func AboutNotNil() predicate.User
- func And(predicates ...predicate.User) predicate.User
- func Created(v int64) predicate.User
- func CreatedEQ(v int64) predicate.User
- func CreatedGT(v int64) predicate.User
- func CreatedGTE(v int64) predicate.User
- func CreatedIn(vs ...int64) predicate.User
- func CreatedIsNil() predicate.User
- func CreatedLT(v int64) predicate.User
- func CreatedLTE(v int64) predicate.User
- func CreatedNEQ(v int64) predicate.User
- func CreatedNotIn(vs ...int64) predicate.User
- func CreatedNotNil() predicate.User
- func ID(id string) predicate.User
- func IDContainsFold(id string) predicate.User
- func IDEQ(id string) predicate.User
- func IDEqualFold(id string) predicate.User
- func IDGT(id string) predicate.User
- func IDGTE(id string) predicate.User
- func IDIn(ids ...string) predicate.User
- func IDLT(id string) predicate.User
- func IDLTE(id string) predicate.User
- func IDNEQ(id string) predicate.User
- func IDNotIn(ids ...string) predicate.User
- func Karma(v int) predicate.User
- func KarmaEQ(v int) predicate.User
- func KarmaGT(v int) predicate.User
- func KarmaGTE(v int) predicate.User
- func KarmaIn(vs ...int) predicate.User
- func KarmaLT(v int) predicate.User
- func KarmaLTE(v int) predicate.User
- func KarmaNEQ(v int) predicate.User
- func KarmaNotIn(vs ...int) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreated holds the string denoting the created field in the database. FieldCreated = "created" // FieldKarma holds the string denoting the karma field in the database. FieldKarma = "karma" // FieldAbout holds the string denoting the about field in the database. FieldAbout = "about" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var Columns = []string{ FieldID, FieldCreated, FieldKarma, FieldAbout, }
Columns holds all SQL columns for user fields.
var ( // DefaultKarma holds the default value on creation for the "karma" field. DefaultKarma int )
Functions ¶
func About ¶
About applies equality check predicate on the "about" field. It's identical to AboutEQ.
func AboutContains ¶
AboutContains applies the Contains predicate on the "about" field.
func AboutContainsFold ¶
AboutContainsFold applies the ContainsFold predicate on the "about" field.
func AboutEqualFold ¶
AboutEqualFold applies the EqualFold predicate on the "about" field.
func AboutHasPrefix ¶
AboutHasPrefix applies the HasPrefix predicate on the "about" field.
func AboutHasSuffix ¶
AboutHasSuffix applies the HasSuffix predicate on the "about" field.
func AboutIsNil ¶
AboutIsNil applies the IsNil predicate on the "about" field.
func AboutNotIn ¶
AboutNotIn applies the NotIn predicate on the "about" field.
func AboutNotNil ¶
AboutNotNil applies the NotNil predicate on the "about" field.
func Created ¶
Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
func CreatedGTE ¶
CreatedGTE applies the GTE predicate on the "created" field.
func CreatedIsNil ¶
CreatedIsNil applies the IsNil predicate on the "created" field.
func CreatedLTE ¶
CreatedLTE applies the LTE predicate on the "created" field.
func CreatedNEQ ¶
CreatedNEQ applies the NEQ predicate on the "created" field.
func CreatedNotIn ¶
CreatedNotIn applies the NotIn predicate on the "created" field.
func CreatedNotNil ¶
CreatedNotNil applies the NotNil predicate on the "created" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func Karma ¶
Karma applies equality check predicate on the "karma" field. It's identical to KarmaEQ.
func KarmaNotIn ¶
KarmaNotIn applies the NotIn predicate on the "karma" 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 User queries.
func ByAbout ¶
func ByAbout(opts ...sql.OrderTermOption) OrderOption
ByAbout orders the results by the about field.
func ByCreated ¶
func ByCreated(opts ...sql.OrderTermOption) OrderOption
ByCreated orders the results by the created field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKarma ¶
func ByKarma(opts ...sql.OrderTermOption) OrderOption
ByKarma orders the results by the karma field.