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 HasPersonAddresses() predicate.Address
- func HasPersonAddressesWith(preds ...predicate.PersonAddress) predicate.Address
- func HasPersons() predicate.Address
- func HasPersonsWith(preds ...predicate.Person) predicate.Address
- func ID(id uuid.UUID) predicate.Address
- func IDEQ(id uuid.UUID) predicate.Address
- func IDGT(id uuid.UUID) predicate.Address
- func IDGTE(id uuid.UUID) predicate.Address
- func IDIn(ids ...uuid.UUID) predicate.Address
- func IDLT(id uuid.UUID) predicate.Address
- func IDLTE(id uuid.UUID) predicate.Address
- func IDNEQ(id uuid.UUID) predicate.Address
- func IDNotIn(ids ...uuid.UUID) predicate.Address
- func Line1(v string) predicate.Address
- func Line1Contains(v string) predicate.Address
- func Line1ContainsFold(v string) predicate.Address
- func Line1EQ(v string) predicate.Address
- func Line1EqualFold(v string) predicate.Address
- func Line1GT(v string) predicate.Address
- func Line1GTE(v string) predicate.Address
- func Line1HasPrefix(v string) predicate.Address
- func Line1HasSuffix(v string) predicate.Address
- func Line1In(vs ...string) predicate.Address
- func Line1LT(v string) predicate.Address
- func Line1LTE(v string) predicate.Address
- func Line1NEQ(v string) predicate.Address
- func Line1NotIn(vs ...string) predicate.Address
- func Line2(v string) predicate.Address
- func Line2Contains(v string) predicate.Address
- func Line2ContainsFold(v string) predicate.Address
- func Line2EQ(v string) predicate.Address
- func Line2EqualFold(v string) predicate.Address
- func Line2GT(v string) predicate.Address
- func Line2GTE(v string) predicate.Address
- func Line2HasPrefix(v string) predicate.Address
- func Line2HasSuffix(v string) predicate.Address
- func Line2In(vs ...string) predicate.Address
- func Line2IsNil() predicate.Address
- func Line2LT(v string) predicate.Address
- func Line2LTE(v string) predicate.Address
- func Line2NEQ(v string) predicate.Address
- func Line2NotIn(vs ...string) predicate.Address
- func Line2NotNil() predicate.Address
- func Not(p predicate.Address) predicate.Address
- func Or(predicates ...predicate.Address) predicate.Address
- func OtherAddressDetails(v string) predicate.Address
- func OtherAddressDetailsContains(v string) predicate.Address
- func OtherAddressDetailsContainsFold(v string) predicate.Address
- func OtherAddressDetailsEQ(v string) predicate.Address
- func OtherAddressDetailsEqualFold(v string) predicate.Address
- func OtherAddressDetailsGT(v string) predicate.Address
- func OtherAddressDetailsGTE(v string) predicate.Address
- func OtherAddressDetailsHasPrefix(v string) predicate.Address
- func OtherAddressDetailsHasSuffix(v string) predicate.Address
- func OtherAddressDetailsIn(vs ...string) predicate.Address
- func OtherAddressDetailsIsNil() predicate.Address
- func OtherAddressDetailsLT(v string) predicate.Address
- func OtherAddressDetailsLTE(v string) predicate.Address
- func OtherAddressDetailsNEQ(v string) predicate.Address
- func OtherAddressDetailsNotIn(vs ...string) predicate.Address
- func OtherAddressDetailsNotNil() predicate.Address
- func StateOrProvince(v string) predicate.Address
- func StateOrProvinceContains(v string) predicate.Address
- func StateOrProvinceContainsFold(v string) predicate.Address
- func StateOrProvinceEQ(v string) predicate.Address
- func StateOrProvinceEqualFold(v string) predicate.Address
- func StateOrProvinceGT(v string) predicate.Address
- func StateOrProvinceGTE(v string) predicate.Address
- func StateOrProvinceHasPrefix(v string) predicate.Address
- func StateOrProvinceHasSuffix(v string) predicate.Address
- func StateOrProvinceIn(vs ...string) predicate.Address
- func StateOrProvinceLT(v string) predicate.Address
- func StateOrProvinceLTE(v string) predicate.Address
- func StateOrProvinceNEQ(v string) predicate.Address
- func StateOrProvinceNotIn(vs ...string) predicate.Address
- func ValidColumn(column string) bool
- func ZipOrPostcode(v string) predicate.Address
- func ZipOrPostcodeContains(v string) predicate.Address
- func ZipOrPostcodeContainsFold(v string) predicate.Address
- func ZipOrPostcodeEQ(v string) predicate.Address
- func ZipOrPostcodeEqualFold(v string) predicate.Address
- func ZipOrPostcodeGT(v string) predicate.Address
- func ZipOrPostcodeGTE(v string) predicate.Address
- func ZipOrPostcodeHasPrefix(v string) predicate.Address
- func ZipOrPostcodeHasSuffix(v string) predicate.Address
- func ZipOrPostcodeIn(vs ...string) predicate.Address
- func ZipOrPostcodeLT(v string) predicate.Address
- func ZipOrPostcodeLTE(v string) predicate.Address
- func ZipOrPostcodeNEQ(v string) predicate.Address
- func ZipOrPostcodeNotIn(vs ...string) predicate.Address
- type OrderOption
- func ByCity(opts ...sql.OrderTermOption) OrderOption
- func ByCountry(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLine1(opts ...sql.OrderTermOption) OrderOption
- func ByLine2(opts ...sql.OrderTermOption) OrderOption
- func ByOtherAddressDetails(opts ...sql.OrderTermOption) OrderOption
- func ByPersonAddresses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPersonAddressesCount(opts ...sql.OrderTermOption) OrderOption
- func ByPersons(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPersonsCount(opts ...sql.OrderTermOption) OrderOption
- func ByStateOrProvince(opts ...sql.OrderTermOption) OrderOption
- func ByZipOrPostcode(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" // FieldLine1 holds the string denoting the line1 field in the database. FieldLine1 = "line1" // FieldLine2 holds the string denoting the line2 field in the database. FieldLine2 = "line2" // FieldCity holds the string denoting the city field in the database. FieldCity = "city" // FieldStateOrProvince holds the string denoting the state_or_province field in the database. FieldStateOrProvince = "state_or_province" // FieldZipOrPostcode holds the string denoting the zip_or_postcode field in the database. FieldZipOrPostcode = "zip_or_postcode" // FieldCountry holds the string denoting the country field in the database. FieldCountry = "country" // FieldOtherAddressDetails holds the string denoting the other_address_details field in the database. FieldOtherAddressDetails = "other_address_details" // EdgePersons holds the string denoting the persons edge name in mutations. EdgePersons = "persons" // EdgePersonAddresses holds the string denoting the person_addresses edge name in mutations. EdgePersonAddresses = "person_addresses" // Table holds the table name of the address in the database. Table = "addresses" // PersonsTable is the table that holds the persons relation/edge. The primary key declared below. PersonsTable = "person_addresses" // PersonsInverseTable is the table name for the Person entity. // It exists in this package in order to avoid circular dependency with the "person" package. PersonsInverseTable = "persons" // PersonAddressesTable is the table that holds the person_addresses relation/edge. PersonAddressesTable = "person_addresses" // PersonAddressesInverseTable is the table name for the PersonAddress entity. // It exists in this package in order to avoid circular dependency with the "personaddress" package. PersonAddressesInverseTable = "person_addresses" // PersonAddressesColumn is the table column denoting the person_addresses relation/edge. PersonAddressesColumn = "address_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // Line1Validator is a validator for the "line1" field. It is called by the builders before save. Line1Validator func(string) error // CityValidator is a validator for the "city" field. It is called by the builders before save. CityValidator func(string) error // StateOrProvinceValidator is a validator for the "state_or_province" field. It is called by the builders before save. StateOrProvinceValidator func(string) error // ZipOrPostcodeValidator is a validator for the "zip_or_postcode" field. It is called by the builders before save. ZipOrPostcodeValidator func(string) error // CountryValidator is a validator for the "country" field. It is called by the builders before save. CountryValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldLine1, FieldLine2, FieldCity, FieldStateOrProvince, FieldZipOrPostcode, FieldCountry, FieldOtherAddressDetails, }
Columns holds all SQL columns for address fields.
var ( // PersonsPrimaryKey and PersonsColumn2 are the table columns denoting the // primary key for the persons relation (M2M). PersonsPrimaryKey = []string{"person_id", "address_id"} )
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 HasPersonAddresses ¶
HasPersonAddresses applies the HasEdge predicate on the "person_addresses" edge.
func HasPersonAddressesWith ¶
func HasPersonAddressesWith(preds ...predicate.PersonAddress) predicate.Address
HasPersonAddressesWith applies the HasEdge predicate on the "person_addresses" edge with a given conditions (other predicates).
func HasPersons ¶
HasPersons applies the HasEdge predicate on the "persons" edge.
func HasPersonsWith ¶
HasPersonsWith applies the HasEdge predicate on the "persons" edge with a given conditions (other predicates).
func Line1 ¶
Line1 applies equality check predicate on the "line1" field. It's identical to Line1EQ.
func Line1Contains ¶
Line1Contains applies the Contains predicate on the "line1" field.
func Line1ContainsFold ¶
Line1ContainsFold applies the ContainsFold predicate on the "line1" field.
func Line1EqualFold ¶
Line1EqualFold applies the EqualFold predicate on the "line1" field.
func Line1HasPrefix ¶
Line1HasPrefix applies the HasPrefix predicate on the "line1" field.
func Line1HasSuffix ¶
Line1HasSuffix applies the HasSuffix predicate on the "line1" field.
func Line1NotIn ¶
Line1NotIn applies the NotIn predicate on the "line1" field.
func Line2 ¶
Line2 applies equality check predicate on the "line2" field. It's identical to Line2EQ.
func Line2Contains ¶
Line2Contains applies the Contains predicate on the "line2" field.
func Line2ContainsFold ¶
Line2ContainsFold applies the ContainsFold predicate on the "line2" field.
func Line2EqualFold ¶
Line2EqualFold applies the EqualFold predicate on the "line2" field.
func Line2HasPrefix ¶
Line2HasPrefix applies the HasPrefix predicate on the "line2" field.
func Line2HasSuffix ¶
Line2HasSuffix applies the HasSuffix predicate on the "line2" field.
func Line2IsNil ¶
Line2IsNil applies the IsNil predicate on the "line2" field.
func Line2NotIn ¶
Line2NotIn applies the NotIn predicate on the "line2" field.
func Line2NotNil ¶
Line2NotNil applies the NotNil predicate on the "line2" field.
func OtherAddressDetails ¶
OtherAddressDetails applies equality check predicate on the "other_address_details" field. It's identical to OtherAddressDetailsEQ.
func OtherAddressDetailsContains ¶
OtherAddressDetailsContains applies the Contains predicate on the "other_address_details" field.
func OtherAddressDetailsContainsFold ¶
OtherAddressDetailsContainsFold applies the ContainsFold predicate on the "other_address_details" field.
func OtherAddressDetailsEQ ¶
OtherAddressDetailsEQ applies the EQ predicate on the "other_address_details" field.
func OtherAddressDetailsEqualFold ¶
OtherAddressDetailsEqualFold applies the EqualFold predicate on the "other_address_details" field.
func OtherAddressDetailsGT ¶
OtherAddressDetailsGT applies the GT predicate on the "other_address_details" field.
func OtherAddressDetailsGTE ¶
OtherAddressDetailsGTE applies the GTE predicate on the "other_address_details" field.
func OtherAddressDetailsHasPrefix ¶
OtherAddressDetailsHasPrefix applies the HasPrefix predicate on the "other_address_details" field.
func OtherAddressDetailsHasSuffix ¶
OtherAddressDetailsHasSuffix applies the HasSuffix predicate on the "other_address_details" field.
func OtherAddressDetailsIn ¶
OtherAddressDetailsIn applies the In predicate on the "other_address_details" field.
func OtherAddressDetailsIsNil ¶
OtherAddressDetailsIsNil applies the IsNil predicate on the "other_address_details" field.
func OtherAddressDetailsLT ¶
OtherAddressDetailsLT applies the LT predicate on the "other_address_details" field.
func OtherAddressDetailsLTE ¶
OtherAddressDetailsLTE applies the LTE predicate on the "other_address_details" field.
func OtherAddressDetailsNEQ ¶
OtherAddressDetailsNEQ applies the NEQ predicate on the "other_address_details" field.
func OtherAddressDetailsNotIn ¶
OtherAddressDetailsNotIn applies the NotIn predicate on the "other_address_details" field.
func OtherAddressDetailsNotNil ¶
OtherAddressDetailsNotNil applies the NotNil predicate on the "other_address_details" field.
func StateOrProvince ¶
StateOrProvince applies equality check predicate on the "state_or_province" field. It's identical to StateOrProvinceEQ.
func StateOrProvinceContains ¶
StateOrProvinceContains applies the Contains predicate on the "state_or_province" field.
func StateOrProvinceContainsFold ¶
StateOrProvinceContainsFold applies the ContainsFold predicate on the "state_or_province" field.
func StateOrProvinceEQ ¶
StateOrProvinceEQ applies the EQ predicate on the "state_or_province" field.
func StateOrProvinceEqualFold ¶
StateOrProvinceEqualFold applies the EqualFold predicate on the "state_or_province" field.
func StateOrProvinceGT ¶
StateOrProvinceGT applies the GT predicate on the "state_or_province" field.
func StateOrProvinceGTE ¶
StateOrProvinceGTE applies the GTE predicate on the "state_or_province" field.
func StateOrProvinceHasPrefix ¶
StateOrProvinceHasPrefix applies the HasPrefix predicate on the "state_or_province" field.
func StateOrProvinceHasSuffix ¶
StateOrProvinceHasSuffix applies the HasSuffix predicate on the "state_or_province" field.
func StateOrProvinceIn ¶
StateOrProvinceIn applies the In predicate on the "state_or_province" field.
func StateOrProvinceLT ¶
StateOrProvinceLT applies the LT predicate on the "state_or_province" field.
func StateOrProvinceLTE ¶
StateOrProvinceLTE applies the LTE predicate on the "state_or_province" field.
func StateOrProvinceNEQ ¶
StateOrProvinceNEQ applies the NEQ predicate on the "state_or_province" field.
func StateOrProvinceNotIn ¶
StateOrProvinceNotIn applies the NotIn predicate on the "state_or_province" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func ZipOrPostcode ¶
ZipOrPostcode applies equality check predicate on the "zip_or_postcode" field. It's identical to ZipOrPostcodeEQ.
func ZipOrPostcodeContains ¶
ZipOrPostcodeContains applies the Contains predicate on the "zip_or_postcode" field.
func ZipOrPostcodeContainsFold ¶
ZipOrPostcodeContainsFold applies the ContainsFold predicate on the "zip_or_postcode" field.
func ZipOrPostcodeEQ ¶
ZipOrPostcodeEQ applies the EQ predicate on the "zip_or_postcode" field.
func ZipOrPostcodeEqualFold ¶
ZipOrPostcodeEqualFold applies the EqualFold predicate on the "zip_or_postcode" field.
func ZipOrPostcodeGT ¶
ZipOrPostcodeGT applies the GT predicate on the "zip_or_postcode" field.
func ZipOrPostcodeGTE ¶
ZipOrPostcodeGTE applies the GTE predicate on the "zip_or_postcode" field.
func ZipOrPostcodeHasPrefix ¶
ZipOrPostcodeHasPrefix applies the HasPrefix predicate on the "zip_or_postcode" field.
func ZipOrPostcodeHasSuffix ¶
ZipOrPostcodeHasSuffix applies the HasSuffix predicate on the "zip_or_postcode" field.
func ZipOrPostcodeIn ¶
ZipOrPostcodeIn applies the In predicate on the "zip_or_postcode" field.
func ZipOrPostcodeLT ¶
ZipOrPostcodeLT applies the LT predicate on the "zip_or_postcode" field.
func ZipOrPostcodeLTE ¶
ZipOrPostcodeLTE applies the LTE predicate on the "zip_or_postcode" field.
func ZipOrPostcodeNEQ ¶
ZipOrPostcodeNEQ applies the NEQ predicate on the "zip_or_postcode" field.
func ZipOrPostcodeNotIn ¶
ZipOrPostcodeNotIn applies the NotIn predicate on the "zip_or_postcode" field.
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 ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLine1 ¶
func ByLine1(opts ...sql.OrderTermOption) OrderOption
ByLine1 orders the results by the line1 field.
func ByLine2 ¶
func ByLine2(opts ...sql.OrderTermOption) OrderOption
ByLine2 orders the results by the line2 field.
func ByOtherAddressDetails ¶
func ByOtherAddressDetails(opts ...sql.OrderTermOption) OrderOption
ByOtherAddressDetails orders the results by the other_address_details field.
func ByPersonAddresses ¶
func ByPersonAddresses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPersonAddresses orders the results by person_addresses terms.
func ByPersonAddressesCount ¶
func ByPersonAddressesCount(opts ...sql.OrderTermOption) OrderOption
ByPersonAddressesCount orders the results by person_addresses count.
func ByPersons ¶
func ByPersons(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPersons orders the results by persons terms.
func ByPersonsCount ¶
func ByPersonsCount(opts ...sql.OrderTermOption) OrderOption
ByPersonsCount orders the results by persons count.
func ByStateOrProvince ¶
func ByStateOrProvince(opts ...sql.OrderTermOption) OrderOption
ByStateOrProvince orders the results by the state_or_province field.
func ByZipOrPostcode ¶
func ByZipOrPostcode(opts ...sql.OrderTermOption) OrderOption
ByZipOrPostcode orders the results by the zip_or_postcode field.