Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v int) predicate.Pet
- func AgeEQ(v int) predicate.Pet
- func AgeGT(v int) predicate.Pet
- func AgeGTE(v int) predicate.Pet
- func AgeIn(vs ...int) predicate.Pet
- func AgeLT(v int) predicate.Pet
- func AgeLTE(v int) predicate.Pet
- func AgeNEQ(v int) predicate.Pet
- func AgeNotIn(vs ...int) predicate.Pet
- func And(predicates ...predicate.Pet) predicate.Pet
- func HasOwner() predicate.Pet
- func HasOwnerWith(preds ...predicate.User) predicate.Pet
- func ID(id int) predicate.Pet
- func IDEQ(id int) predicate.Pet
- func IDGT(id int) predicate.Pet
- func IDGTE(id int) predicate.Pet
- func IDIn(ids ...int) predicate.Pet
- func IDLT(id int) predicate.Pet
- func IDLTE(id int) predicate.Pet
- func IDNEQ(id int) predicate.Pet
- func IDNotIn(ids ...int) predicate.Pet
- func LicensedAt(v time.Time) predicate.Pet
- func LicensedAtEQ(v time.Time) predicate.Pet
- func LicensedAtGT(v time.Time) predicate.Pet
- func LicensedAtGTE(v time.Time) predicate.Pet
- func LicensedAtIn(vs ...time.Time) predicate.Pet
- func LicensedAtIsNil() predicate.Pet
- func LicensedAtLT(v time.Time) predicate.Pet
- func LicensedAtLTE(v time.Time) predicate.Pet
- func LicensedAtNEQ(v time.Time) predicate.Pet
- func LicensedAtNotIn(vs ...time.Time) predicate.Pet
- func LicensedAtNotNil() predicate.Pet
- func Not(p predicate.Pet) predicate.Pet
- func Or(predicates ...predicate.Pet) predicate.Pet
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the pet type in the database. Label = "pet" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // FieldLicensedAt holds the string denoting the licensed_at field in the database. FieldLicensedAt = "licensed_at" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the pet in the database. Table = "pets" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "pets" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_pets" )
Variables ¶
var Columns = []string{ FieldID, FieldAge, FieldLicensedAt, }
Columns holds all SQL columns for pet fields.
var ForeignKeys = []string{
"user_pets",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "pets" table and are not defined as standalone fields in the schema.
Functions ¶
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func LicensedAt ¶
LicensedAt applies equality check predicate on the "licensed_at" field. It's identical to LicensedAtEQ.
func LicensedAtEQ ¶
LicensedAtEQ applies the EQ predicate on the "licensed_at" field.
func LicensedAtGT ¶
LicensedAtGT applies the GT predicate on the "licensed_at" field.
func LicensedAtGTE ¶
LicensedAtGTE applies the GTE predicate on the "licensed_at" field.
func LicensedAtIn ¶
LicensedAtIn applies the In predicate on the "licensed_at" field.
func LicensedAtIsNil ¶
LicensedAtIsNil applies the IsNil predicate on the "licensed_at" field.
func LicensedAtLT ¶
LicensedAtLT applies the LT predicate on the "licensed_at" field.
func LicensedAtLTE ¶
LicensedAtLTE applies the LTE predicate on the "licensed_at" field.
func LicensedAtNEQ ¶
LicensedAtNEQ applies the NEQ predicate on the "licensed_at" field.
func LicensedAtNotIn ¶
LicensedAtNotIn applies the NotIn predicate on the "licensed_at" field.
func LicensedAtNotNil ¶
LicensedAtNotNil applies the NotNil predicate on the "licensed_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.