Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Address) predicate.Address
- func City(v string) predicate.Address
- func CityContains(v string) predicate.Address
- func CityContainsFold(v string) predicate.Address
- func CityEQ(v string) predicate.Address
- func CityEqualFold(v string) predicate.Address
- func CityGT(v string) predicate.Address
- func CityGTE(v string) predicate.Address
- func CityHasPrefix(v string) predicate.Address
- func CityHasSuffix(v string) predicate.Address
- func CityIn(vs ...string) predicate.Address
- func CityLT(v string) predicate.Address
- func CityLTE(v string) predicate.Address
- func CityNEQ(v string) predicate.Address
- func CityNotIn(vs ...string) predicate.Address
- func Country(v string) predicate.Address
- func CountryContains(v string) predicate.Address
- func CountryContainsFold(v string) predicate.Address
- func CountryEQ(v string) predicate.Address
- func CountryEqualFold(v string) predicate.Address
- func CountryGT(v string) predicate.Address
- func CountryGTE(v string) predicate.Address
- func CountryHasPrefix(v string) predicate.Address
- func CountryHasSuffix(v string) predicate.Address
- func CountryIn(vs ...string) predicate.Address
- func CountryLT(v string) predicate.Address
- func CountryLTE(v string) predicate.Address
- func CountryNEQ(v string) predicate.Address
- func CountryNotIn(vs ...string) predicate.Address
- func CreatedAt(v time.Time) predicate.Address
- func CreatedAtEQ(v time.Time) predicate.Address
- func CreatedAtGT(v time.Time) predicate.Address
- func CreatedAtGTE(v time.Time) predicate.Address
- func CreatedAtIn(vs ...time.Time) predicate.Address
- func CreatedAtLT(v time.Time) predicate.Address
- func CreatedAtLTE(v time.Time) predicate.Address
- func CreatedAtNEQ(v time.Time) predicate.Address
- func CreatedAtNotIn(vs ...time.Time) predicate.Address
- func Flat(v int) predicate.Address
- func FlatEQ(v int) predicate.Address
- func FlatGT(v int) predicate.Address
- func FlatGTE(v int) predicate.Address
- func FlatIn(vs ...int) predicate.Address
- func FlatIsNil() predicate.Address
- func FlatLT(v int) predicate.Address
- func FlatLTE(v int) predicate.Address
- func FlatNEQ(v int) predicate.Address
- func FlatNotIn(vs ...int) predicate.Address
- func FlatNotNil() predicate.Address
- func HasUsers() predicate.Address
- func HasUsersWith(preds ...predicate.User) predicate.Address
- func House(v int) predicate.Address
- func HouseEQ(v int) predicate.Address
- func HouseGT(v int) predicate.Address
- func HouseGTE(v int) predicate.Address
- func HouseIn(vs ...int) predicate.Address
- func HouseLT(v int) predicate.Address
- func HouseLTE(v int) predicate.Address
- func HouseNEQ(v int) predicate.Address
- func HouseNotIn(vs ...int) predicate.Address
- func ID(id int64) predicate.Address
- func IDEQ(id int64) predicate.Address
- func IDGT(id int64) predicate.Address
- func IDGTE(id int64) predicate.Address
- func IDIn(ids ...int64) predicate.Address
- func IDLT(id int64) predicate.Address
- func IDLTE(id int64) predicate.Address
- func IDNEQ(id int64) predicate.Address
- func IDNotIn(ids ...int64) predicate.Address
- func Letter(v string) predicate.Address
- func LetterContains(v string) predicate.Address
- func LetterContainsFold(v string) predicate.Address
- func LetterEQ(v string) predicate.Address
- func LetterEqualFold(v string) predicate.Address
- func LetterGT(v string) predicate.Address
- func LetterGTE(v string) predicate.Address
- func LetterHasPrefix(v string) predicate.Address
- func LetterHasSuffix(v string) predicate.Address
- func LetterIn(vs ...string) predicate.Address
- func LetterIsNil() predicate.Address
- func LetterLT(v string) predicate.Address
- func LetterLTE(v string) predicate.Address
- func LetterNEQ(v string) predicate.Address
- func LetterNotIn(vs ...string) predicate.Address
- func LetterNotNil() predicate.Address
- func Not(p predicate.Address) predicate.Address
- func Or(predicates ...predicate.Address) predicate.Address
- func Postcode(v int) predicate.Address
- func PostcodeEQ(v int) predicate.Address
- func PostcodeGT(v int) predicate.Address
- func PostcodeGTE(v int) predicate.Address
- func PostcodeIn(vs ...int) predicate.Address
- func PostcodeLT(v int) predicate.Address
- func PostcodeLTE(v int) predicate.Address
- func PostcodeNEQ(v int) predicate.Address
- func PostcodeNotIn(vs ...int) predicate.Address
- func Street(v string) predicate.Address
- func StreetContains(v string) predicate.Address
- func StreetContainsFold(v string) predicate.Address
- func StreetEQ(v string) predicate.Address
- func StreetEqualFold(v string) predicate.Address
- func StreetGT(v string) predicate.Address
- func StreetGTE(v string) predicate.Address
- func StreetHasPrefix(v string) predicate.Address
- func StreetHasSuffix(v string) predicate.Address
- func StreetIn(vs ...string) predicate.Address
- func StreetLT(v string) predicate.Address
- func StreetLTE(v string) predicate.Address
- func StreetNEQ(v string) predicate.Address
- func StreetNotIn(vs ...string) predicate.Address
- func UpdatedAt(v time.Time) predicate.Address
- func UpdatedAtEQ(v time.Time) predicate.Address
- func UpdatedAtGT(v time.Time) predicate.Address
- func UpdatedAtGTE(v time.Time) predicate.Address
- func UpdatedAtIn(vs ...time.Time) predicate.Address
- func UpdatedAtLT(v time.Time) predicate.Address
- func UpdatedAtLTE(v time.Time) predicate.Address
- func UpdatedAtNEQ(v time.Time) predicate.Address
- func UpdatedAtNotIn(vs ...time.Time) predicate.Address
- func UserID(v int64) predicate.Address
- func UserIDEQ(v int64) predicate.Address
- func UserIDIn(vs ...int64) predicate.Address
- func UserIDNEQ(v int64) predicate.Address
- func UserIDNotIn(vs ...int64) predicate.Address
- func ValidColumn(column string) bool
- type OrderOption
- func ByCity(opts ...sql.OrderTermOption) OrderOption
- func ByCountry(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFlat(opts ...sql.OrderTermOption) OrderOption
- func ByHouse(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLetter(opts ...sql.OrderTermOption) OrderOption
- func ByPostcode(opts ...sql.OrderTermOption) OrderOption
- func ByStreet(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- func ByUsersField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the address type in the database. Label = "address" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldCity holds the string denoting the city field in the database. FieldCity = "city" // FieldCountry holds the string denoting the country field in the database. FieldCountry = "country" // FieldFlat holds the string denoting the flat field in the database. FieldFlat = "flat" // FieldHouse holds the string denoting the house field in the database. FieldHouse = "house" // FieldLetter holds the string denoting the letter field in the database. FieldLetter = "letter" // FieldPostcode holds the string denoting the postcode field in the database. FieldPostcode = "postcode" // FieldStreet holds the string denoting the street field in the database. FieldStreet = "street" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // Table holds the table name of the address in the database. Table = "addresses" // UsersTable is the table that holds the users relation/edge. UsersTable = "addresses" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" // UsersColumn is the table column denoting the users relation/edge. UsersColumn = "user_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // CityValidator is a validator for the "city" field. It is called by the builders before save. CityValidator func(string) error // CountryValidator is a validator for the "country" field. It is called by the builders before save. CountryValidator func(string) error // StreetValidator is a validator for the "street" field. It is called by the builders before save. StreetValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldUserID, FieldCity, FieldCountry, FieldFlat, FieldHouse, FieldLetter, FieldPostcode, FieldStreet, }
Columns holds all SQL columns for address fields.
Functions ¶
func CityContains ¶
CityContains applies the Contains predicate on the "city" field.
func CityContainsFold ¶
CityContainsFold applies the ContainsFold predicate on the "city" field.
func CityEqualFold ¶
CityEqualFold applies the EqualFold predicate on the "city" field.
func CityHasPrefix ¶
CityHasPrefix applies the HasPrefix predicate on the "city" field.
func CityHasSuffix ¶
CityHasSuffix applies the HasSuffix predicate on the "city" field.
func Country ¶
Country applies equality check predicate on the "country" field. It's identical to CountryEQ.
func CountryContains ¶
CountryContains applies the Contains predicate on the "country" field.
func CountryContainsFold ¶
CountryContainsFold applies the ContainsFold predicate on the "country" field.
func CountryEqualFold ¶
CountryEqualFold applies the EqualFold predicate on the "country" field.
func CountryGTE ¶
CountryGTE applies the GTE predicate on the "country" field.
func CountryHasPrefix ¶
CountryHasPrefix applies the HasPrefix predicate on the "country" field.
func CountryHasSuffix ¶
CountryHasSuffix applies the HasSuffix predicate on the "country" field.
func CountryLTE ¶
CountryLTE applies the LTE predicate on the "country" field.
func CountryNEQ ¶
CountryNEQ applies the NEQ predicate on the "country" field.
func CountryNotIn ¶
CountryNotIn applies the NotIn predicate on the "country" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func FlatNotNil ¶
FlatNotNil applies the NotNil predicate on the "flat" field.
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func House ¶
House applies equality check predicate on the "house" field. It's identical to HouseEQ.
func HouseNotIn ¶
HouseNotIn applies the NotIn predicate on the "house" field.
func Letter ¶
Letter applies equality check predicate on the "letter" field. It's identical to LetterEQ.
func LetterContains ¶
LetterContains applies the Contains predicate on the "letter" field.
func LetterContainsFold ¶
LetterContainsFold applies the ContainsFold predicate on the "letter" field.
func LetterEqualFold ¶
LetterEqualFold applies the EqualFold predicate on the "letter" field.
func LetterHasPrefix ¶
LetterHasPrefix applies the HasPrefix predicate on the "letter" field.
func LetterHasSuffix ¶
LetterHasSuffix applies the HasSuffix predicate on the "letter" field.
func LetterIsNil ¶
LetterIsNil applies the IsNil predicate on the "letter" field.
func LetterNotIn ¶
LetterNotIn applies the NotIn predicate on the "letter" field.
func LetterNotNil ¶
LetterNotNil applies the NotNil predicate on the "letter" field.
func Postcode ¶
Postcode applies equality check predicate on the "postcode" field. It's identical to PostcodeEQ.
func PostcodeEQ ¶
PostcodeEQ applies the EQ predicate on the "postcode" field.
func PostcodeGT ¶
PostcodeGT applies the GT predicate on the "postcode" field.
func PostcodeGTE ¶
PostcodeGTE applies the GTE predicate on the "postcode" field.
func PostcodeIn ¶
PostcodeIn applies the In predicate on the "postcode" field.
func PostcodeLT ¶
PostcodeLT applies the LT predicate on the "postcode" field.
func PostcodeLTE ¶
PostcodeLTE applies the LTE predicate on the "postcode" field.
func PostcodeNEQ ¶
PostcodeNEQ applies the NEQ predicate on the "postcode" field.
func PostcodeNotIn ¶
PostcodeNotIn applies the NotIn predicate on the "postcode" field.
func Street ¶
Street applies equality check predicate on the "street" field. It's identical to StreetEQ.
func StreetContains ¶
StreetContains applies the Contains predicate on the "street" field.
func StreetContainsFold ¶
StreetContainsFold applies the ContainsFold predicate on the "street" field.
func StreetEqualFold ¶
StreetEqualFold applies the EqualFold predicate on the "street" field.
func StreetHasPrefix ¶
StreetHasPrefix applies the HasPrefix predicate on the "street" field.
func StreetHasSuffix ¶
StreetHasSuffix applies the HasSuffix predicate on the "street" field.
func StreetNotIn ¶
StreetNotIn applies the NotIn predicate on the "street" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" 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 Address queries.
func ByCity ¶
func ByCity(opts ...sql.OrderTermOption) OrderOption
ByCity orders the results by the city field.
func ByCountry ¶
func ByCountry(opts ...sql.OrderTermOption) OrderOption
ByCountry orders the results by the country field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByFlat ¶
func ByFlat(opts ...sql.OrderTermOption) OrderOption
ByFlat orders the results by the flat field.
func ByHouse ¶
func ByHouse(opts ...sql.OrderTermOption) OrderOption
ByHouse orders the results by the house field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLetter ¶
func ByLetter(opts ...sql.OrderTermOption) OrderOption
ByLetter orders the results by the letter field.
func ByPostcode ¶
func ByPostcode(opts ...sql.OrderTermOption) OrderOption
ByPostcode orders the results by the postcode field.
func ByStreet ¶
func ByStreet(opts ...sql.OrderTermOption) OrderOption
ByStreet orders the results by the street field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.
func ByUsersField ¶
func ByUsersField(field string, opts ...sql.OrderTermOption) OrderOption
ByUsersField orders the results by users field.