Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AgeKey) predicate.AgeKey
- func Created(v time.Time) predicate.AgeKey
- func CreatedEQ(v time.Time) predicate.AgeKey
- func CreatedGT(v time.Time) predicate.AgeKey
- func CreatedGTE(v time.Time) predicate.AgeKey
- func CreatedIn(vs ...time.Time) predicate.AgeKey
- func CreatedLT(v time.Time) predicate.AgeKey
- func CreatedLTE(v time.Time) predicate.AgeKey
- func CreatedNEQ(v time.Time) predicate.AgeKey
- func CreatedNotIn(vs ...time.Time) predicate.AgeKey
- func HasUser() predicate.AgeKey
- func HasUserWith(preds ...predicate.User) predicate.AgeKey
- func ID(id uuid.UUID) predicate.AgeKey
- func IDEQ(id uuid.UUID) predicate.AgeKey
- func IDGT(id uuid.UUID) predicate.AgeKey
- func IDGTE(id uuid.UUID) predicate.AgeKey
- func IDIn(ids ...uuid.UUID) predicate.AgeKey
- func IDLT(id uuid.UUID) predicate.AgeKey
- func IDLTE(id uuid.UUID) predicate.AgeKey
- func IDNEQ(id uuid.UUID) predicate.AgeKey
- func IDNotIn(ids ...uuid.UUID) predicate.AgeKey
- func Key(v []byte) predicate.AgeKey
- func KeyEQ(v []byte) predicate.AgeKey
- func KeyGT(v []byte) predicate.AgeKey
- func KeyGTE(v []byte) predicate.AgeKey
- func KeyIn(vs ...[]byte) predicate.AgeKey
- func KeyLT(v []byte) predicate.AgeKey
- func KeyLTE(v []byte) predicate.AgeKey
- func KeyNEQ(v []byte) predicate.AgeKey
- func KeyNotIn(vs ...[]byte) predicate.AgeKey
- func Not(p predicate.AgeKey) predicate.AgeKey
- func Or(predicates ...predicate.AgeKey) predicate.AgeKey
- func Owner(v uuid.UUID) predicate.AgeKey
- func OwnerEQ(v uuid.UUID) predicate.AgeKey
- func OwnerIn(vs ...uuid.UUID) predicate.AgeKey
- func OwnerNEQ(v uuid.UUID) predicate.AgeKey
- func OwnerNotIn(vs ...uuid.UUID) predicate.AgeKey
- func Updated(v time.Time) predicate.AgeKey
- func UpdatedEQ(v time.Time) predicate.AgeKey
- func UpdatedGT(v time.Time) predicate.AgeKey
- func UpdatedGTE(v time.Time) predicate.AgeKey
- func UpdatedIn(vs ...time.Time) predicate.AgeKey
- func UpdatedLT(v time.Time) predicate.AgeKey
- func UpdatedLTE(v time.Time) predicate.AgeKey
- func UpdatedNEQ(v time.Time) predicate.AgeKey
- func UpdatedNotIn(vs ...time.Time) predicate.AgeKey
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the agekey type in the database. Label = "age_key" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldCreated holds the string denoting the created field in the database. FieldCreated = "created" // FieldUpdated holds the string denoting the updated field in the database. FieldUpdated = "updated" // FieldOwner holds the string denoting the owner field in the database. FieldOwner = "owner" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the agekey in the database. Table = "age_keys" // UserTable is the table that holds the user relation/edge. UserTable = "age_keys" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "owner" )
Variables ¶
var ( // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func([]byte) error // DefaultCreated holds the default value on creation for the "created" field. DefaultCreated func() time.Time // DefaultUpdated holds the default value on creation for the "updated" field. DefaultUpdated func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldKey, FieldCreated, FieldUpdated, FieldOwner, }
Columns holds all SQL columns for agekey fields.
Functions ¶
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 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 HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func Owner ¶
Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.
func OwnerNotIn ¶
OwnerNotIn applies the NotIn predicate on the "owner" field.
func Updated ¶
Updated applies equality check predicate on the "updated" field. It's identical to UpdatedEQ.
func UpdatedGTE ¶
UpdatedGTE applies the GTE predicate on the "updated" field.
func UpdatedLTE ¶
UpdatedLTE applies the LTE predicate on the "updated" field.
func UpdatedNEQ ¶
UpdatedNEQ applies the NEQ predicate on the "updated" field.
func UpdatedNotIn ¶
UpdatedNotIn applies the NotIn predicate on the "updated" 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 AgeKey queries.
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 ByOwner ¶
func ByOwner(opts ...sql.OrderTermOption) OrderOption
ByOwner orders the results by the owner field.
func ByUpdated ¶
func ByUpdated(opts ...sql.OrderTermOption) OrderOption
ByUpdated orders the results by the updated field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.