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 District(v string) predicate.Address
- func DistrictContains(v string) predicate.Address
- func DistrictContainsFold(v string) predicate.Address
- func DistrictEQ(v string) predicate.Address
- func DistrictEqualFold(v string) predicate.Address
- func DistrictGT(v string) predicate.Address
- func DistrictGTE(v string) predicate.Address
- func DistrictHasPrefix(v string) predicate.Address
- func DistrictHasSuffix(v string) predicate.Address
- func DistrictIn(vs ...string) predicate.Address
- func DistrictLT(v string) predicate.Address
- func DistrictLTE(v string) predicate.Address
- func DistrictNEQ(v string) predicate.Address
- func DistrictNotIn(vs ...string) predicate.Address
- func ID(id int) predicate.Address
- func IDEQ(id int) predicate.Address
- func IDGT(id int) predicate.Address
- func IDGTE(id int) predicate.Address
- func IDIn(ids ...int) predicate.Address
- func IDLT(id int) predicate.Address
- func IDLTE(id int) predicate.Address
- func IDNEQ(id int) predicate.Address
- func IDNotIn(ids ...int) predicate.Address
- func Not(p predicate.Address) predicate.Address
- func Or(predicates ...predicate.Address) 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 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 ByDistrict(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByStreet(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(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" // FieldStreet holds the string denoting the street field in the database. FieldStreet = "street" // FieldDistrict holds the string denoting the district field in the database. FieldDistrict = "district" // 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" // 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" // Table holds the table name of the address in the database. Table = "addresses" )
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 )
var Columns = []string{ FieldID, FieldStreet, FieldDistrict, FieldCity, FieldCountry, FieldCreatedAt, FieldUpdatedAt, }
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 District ¶
District applies equality check predicate on the "district" field. It's identical to DistrictEQ.
func DistrictContains ¶
DistrictContains applies the Contains predicate on the "district" field.
func DistrictContainsFold ¶
DistrictContainsFold applies the ContainsFold predicate on the "district" field.
func DistrictEQ ¶
DistrictEQ applies the EQ predicate on the "district" field.
func DistrictEqualFold ¶
DistrictEqualFold applies the EqualFold predicate on the "district" field.
func DistrictGT ¶
DistrictGT applies the GT predicate on the "district" field.
func DistrictGTE ¶
DistrictGTE applies the GTE predicate on the "district" field.
func DistrictHasPrefix ¶
DistrictHasPrefix applies the HasPrefix predicate on the "district" field.
func DistrictHasSuffix ¶
DistrictHasSuffix applies the HasSuffix predicate on the "district" field.
func DistrictIn ¶
DistrictIn applies the In predicate on the "district" field.
func DistrictLT ¶
DistrictLT applies the LT predicate on the "district" field.
func DistrictLTE ¶
DistrictLTE applies the LTE predicate on the "district" field.
func DistrictNEQ ¶
DistrictNEQ applies the NEQ predicate on the "district" field.
func DistrictNotIn ¶
DistrictNotIn applies the NotIn predicate on the "district" 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 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 ByDistrict ¶
func ByDistrict(opts ...sql.OrderTermOption) OrderOption
ByDistrict orders the results by the district field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id 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.