You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

843 lines
29 KiB
Go

// Code generated by ent, DO NOT EDIT.
package district
import (
"time"
"entgo.io/ent/dialect/sql"
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/predicate"
)
// ID filters vertices based on their ID field.
func ID(id int64) predicate.District {
return predicate.District(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int64) predicate.District {
return predicate.District(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int64) predicate.District {
return predicate.District(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int64) predicate.District {
return predicate.District(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int64) predicate.District {
return predicate.District(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int64) predicate.District {
return predicate.District(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int64) predicate.District {
return predicate.District(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int64) predicate.District {
return predicate.District(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int64) predicate.District {
return predicate.District(sql.FieldLTE(FieldID, id))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.District {
return predicate.District(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v time.Time) predicate.District {
return predicate.District(sql.FieldEQ(FieldUpdatedAt, v))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldName, v))
}
// ShortName applies equality check predicate on the "short_name" field. It's identical to ShortNameEQ.
func ShortName(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldShortName, v))
}
// Code applies equality check predicate on the "code" field. It's identical to CodeEQ.
func Code(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldCode, v))
}
// Province applies equality check predicate on the "province" field. It's identical to ProvinceEQ.
func Province(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldProvince, v))
}
// City applies equality check predicate on the "city" field. It's identical to CityEQ.
func City(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldCity, v))
}
// Area applies equality check predicate on the "area" field. It's identical to AreaEQ.
func Area(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldArea, v))
}
// Street applies equality check predicate on the "street" field. It's identical to StreetEQ.
func Street(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldStreet, v))
}
// Level applies equality check predicate on the "level" field. It's identical to LevelEQ.
func Level(v uint32) predicate.District {
return predicate.District(sql.FieldEQ(FieldLevel, v))
}
// Latitude applies equality check predicate on the "latitude" field. It's identical to LatitudeEQ.
func Latitude(v float64) predicate.District {
return predicate.District(sql.FieldEQ(FieldLatitude, v))
}
// Longitude applies equality check predicate on the "longitude" field. It's identical to LongitudeEQ.
func Longitude(v float64) predicate.District {
return predicate.District(sql.FieldEQ(FieldLongitude, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.District {
return predicate.District(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.District {
return predicate.District(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.District {
return predicate.District(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.District {
return predicate.District(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.District {
return predicate.District(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.District {
return predicate.District(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.District {
return predicate.District(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.District {
return predicate.District(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.District {
return predicate.District(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.District {
return predicate.District(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.District {
return predicate.District(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.District {
return predicate.District(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.District {
return predicate.District(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.District {
return predicate.District(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.District {
return predicate.District(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.District {
return predicate.District(sql.FieldLTE(FieldUpdatedAt, v))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.District {
return predicate.District(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.District {
return predicate.District(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.District {
return predicate.District(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.District {
return predicate.District(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.District {
return predicate.District(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.District {
return predicate.District(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.District {
return predicate.District(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.District {
return predicate.District(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.District {
return predicate.District(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.District {
return predicate.District(sql.FieldHasSuffix(FieldName, v))
}
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.District {
return predicate.District(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.District {
return predicate.District(sql.FieldContainsFold(FieldName, v))
}
// ShortNameEQ applies the EQ predicate on the "short_name" field.
func ShortNameEQ(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldShortName, v))
}
// ShortNameNEQ applies the NEQ predicate on the "short_name" field.
func ShortNameNEQ(v string) predicate.District {
return predicate.District(sql.FieldNEQ(FieldShortName, v))
}
// ShortNameIn applies the In predicate on the "short_name" field.
func ShortNameIn(vs ...string) predicate.District {
return predicate.District(sql.FieldIn(FieldShortName, vs...))
}
// ShortNameNotIn applies the NotIn predicate on the "short_name" field.
func ShortNameNotIn(vs ...string) predicate.District {
return predicate.District(sql.FieldNotIn(FieldShortName, vs...))
}
// ShortNameGT applies the GT predicate on the "short_name" field.
func ShortNameGT(v string) predicate.District {
return predicate.District(sql.FieldGT(FieldShortName, v))
}
// ShortNameGTE applies the GTE predicate on the "short_name" field.
func ShortNameGTE(v string) predicate.District {
return predicate.District(sql.FieldGTE(FieldShortName, v))
}
// ShortNameLT applies the LT predicate on the "short_name" field.
func ShortNameLT(v string) predicate.District {
return predicate.District(sql.FieldLT(FieldShortName, v))
}
// ShortNameLTE applies the LTE predicate on the "short_name" field.
func ShortNameLTE(v string) predicate.District {
return predicate.District(sql.FieldLTE(FieldShortName, v))
}
// ShortNameContains applies the Contains predicate on the "short_name" field.
func ShortNameContains(v string) predicate.District {
return predicate.District(sql.FieldContains(FieldShortName, v))
}
// ShortNameHasPrefix applies the HasPrefix predicate on the "short_name" field.
func ShortNameHasPrefix(v string) predicate.District {
return predicate.District(sql.FieldHasPrefix(FieldShortName, v))
}
// ShortNameHasSuffix applies the HasSuffix predicate on the "short_name" field.
func ShortNameHasSuffix(v string) predicate.District {
return predicate.District(sql.FieldHasSuffix(FieldShortName, v))
}
// ShortNameIsNil applies the IsNil predicate on the "short_name" field.
func ShortNameIsNil() predicate.District {
return predicate.District(sql.FieldIsNull(FieldShortName))
}
// ShortNameNotNil applies the NotNil predicate on the "short_name" field.
func ShortNameNotNil() predicate.District {
return predicate.District(sql.FieldNotNull(FieldShortName))
}
// ShortNameEqualFold applies the EqualFold predicate on the "short_name" field.
func ShortNameEqualFold(v string) predicate.District {
return predicate.District(sql.FieldEqualFold(FieldShortName, v))
}
// ShortNameContainsFold applies the ContainsFold predicate on the "short_name" field.
func ShortNameContainsFold(v string) predicate.District {
return predicate.District(sql.FieldContainsFold(FieldShortName, v))
}
// CodeEQ applies the EQ predicate on the "code" field.
func CodeEQ(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldCode, v))
}
// CodeNEQ applies the NEQ predicate on the "code" field.
func CodeNEQ(v string) predicate.District {
return predicate.District(sql.FieldNEQ(FieldCode, v))
}
// CodeIn applies the In predicate on the "code" field.
func CodeIn(vs ...string) predicate.District {
return predicate.District(sql.FieldIn(FieldCode, vs...))
}
// CodeNotIn applies the NotIn predicate on the "code" field.
func CodeNotIn(vs ...string) predicate.District {
return predicate.District(sql.FieldNotIn(FieldCode, vs...))
}
// CodeGT applies the GT predicate on the "code" field.
func CodeGT(v string) predicate.District {
return predicate.District(sql.FieldGT(FieldCode, v))
}
// CodeGTE applies the GTE predicate on the "code" field.
func CodeGTE(v string) predicate.District {
return predicate.District(sql.FieldGTE(FieldCode, v))
}
// CodeLT applies the LT predicate on the "code" field.
func CodeLT(v string) predicate.District {
return predicate.District(sql.FieldLT(FieldCode, v))
}
// CodeLTE applies the LTE predicate on the "code" field.
func CodeLTE(v string) predicate.District {
return predicate.District(sql.FieldLTE(FieldCode, v))
}
// CodeContains applies the Contains predicate on the "code" field.
func CodeContains(v string) predicate.District {
return predicate.District(sql.FieldContains(FieldCode, v))
}
// CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasPrefix(v string) predicate.District {
return predicate.District(sql.FieldHasPrefix(FieldCode, v))
}
// CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CodeHasSuffix(v string) predicate.District {
return predicate.District(sql.FieldHasSuffix(FieldCode, v))
}
// CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeEqualFold(v string) predicate.District {
return predicate.District(sql.FieldEqualFold(FieldCode, v))
}
// CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeContainsFold(v string) predicate.District {
return predicate.District(sql.FieldContainsFold(FieldCode, v))
}
// ProvinceEQ applies the EQ predicate on the "province" field.
func ProvinceEQ(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldProvince, v))
}
// ProvinceNEQ applies the NEQ predicate on the "province" field.
func ProvinceNEQ(v string) predicate.District {
return predicate.District(sql.FieldNEQ(FieldProvince, v))
}
// ProvinceIn applies the In predicate on the "province" field.
func ProvinceIn(vs ...string) predicate.District {
return predicate.District(sql.FieldIn(FieldProvince, vs...))
}
// ProvinceNotIn applies the NotIn predicate on the "province" field.
func ProvinceNotIn(vs ...string) predicate.District {
return predicate.District(sql.FieldNotIn(FieldProvince, vs...))
}
// ProvinceGT applies the GT predicate on the "province" field.
func ProvinceGT(v string) predicate.District {
return predicate.District(sql.FieldGT(FieldProvince, v))
}
// ProvinceGTE applies the GTE predicate on the "province" field.
func ProvinceGTE(v string) predicate.District {
return predicate.District(sql.FieldGTE(FieldProvince, v))
}
// ProvinceLT applies the LT predicate on the "province" field.
func ProvinceLT(v string) predicate.District {
return predicate.District(sql.FieldLT(FieldProvince, v))
}
// ProvinceLTE applies the LTE predicate on the "province" field.
func ProvinceLTE(v string) predicate.District {
return predicate.District(sql.FieldLTE(FieldProvince, v))
}
// ProvinceContains applies the Contains predicate on the "province" field.
func ProvinceContains(v string) predicate.District {
return predicate.District(sql.FieldContains(FieldProvince, v))
}
// ProvinceHasPrefix applies the HasPrefix predicate on the "province" field.
func ProvinceHasPrefix(v string) predicate.District {
return predicate.District(sql.FieldHasPrefix(FieldProvince, v))
}
// ProvinceHasSuffix applies the HasSuffix predicate on the "province" field.
func ProvinceHasSuffix(v string) predicate.District {
return predicate.District(sql.FieldHasSuffix(FieldProvince, v))
}
// ProvinceEqualFold applies the EqualFold predicate on the "province" field.
func ProvinceEqualFold(v string) predicate.District {
return predicate.District(sql.FieldEqualFold(FieldProvince, v))
}
// ProvinceContainsFold applies the ContainsFold predicate on the "province" field.
func ProvinceContainsFold(v string) predicate.District {
return predicate.District(sql.FieldContainsFold(FieldProvince, v))
}
// CityEQ applies the EQ predicate on the "city" field.
func CityEQ(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldCity, v))
}
// CityNEQ applies the NEQ predicate on the "city" field.
func CityNEQ(v string) predicate.District {
return predicate.District(sql.FieldNEQ(FieldCity, v))
}
// CityIn applies the In predicate on the "city" field.
func CityIn(vs ...string) predicate.District {
return predicate.District(sql.FieldIn(FieldCity, vs...))
}
// CityNotIn applies the NotIn predicate on the "city" field.
func CityNotIn(vs ...string) predicate.District {
return predicate.District(sql.FieldNotIn(FieldCity, vs...))
}
// CityGT applies the GT predicate on the "city" field.
func CityGT(v string) predicate.District {
return predicate.District(sql.FieldGT(FieldCity, v))
}
// CityGTE applies the GTE predicate on the "city" field.
func CityGTE(v string) predicate.District {
return predicate.District(sql.FieldGTE(FieldCity, v))
}
// CityLT applies the LT predicate on the "city" field.
func CityLT(v string) predicate.District {
return predicate.District(sql.FieldLT(FieldCity, v))
}
// CityLTE applies the LTE predicate on the "city" field.
func CityLTE(v string) predicate.District {
return predicate.District(sql.FieldLTE(FieldCity, v))
}
// CityContains applies the Contains predicate on the "city" field.
func CityContains(v string) predicate.District {
return predicate.District(sql.FieldContains(FieldCity, v))
}
// CityHasPrefix applies the HasPrefix predicate on the "city" field.
func CityHasPrefix(v string) predicate.District {
return predicate.District(sql.FieldHasPrefix(FieldCity, v))
}
// CityHasSuffix applies the HasSuffix predicate on the "city" field.
func CityHasSuffix(v string) predicate.District {
return predicate.District(sql.FieldHasSuffix(FieldCity, v))
}
// CityIsNil applies the IsNil predicate on the "city" field.
func CityIsNil() predicate.District {
return predicate.District(sql.FieldIsNull(FieldCity))
}
// CityNotNil applies the NotNil predicate on the "city" field.
func CityNotNil() predicate.District {
return predicate.District(sql.FieldNotNull(FieldCity))
}
// CityEqualFold applies the EqualFold predicate on the "city" field.
func CityEqualFold(v string) predicate.District {
return predicate.District(sql.FieldEqualFold(FieldCity, v))
}
// CityContainsFold applies the ContainsFold predicate on the "city" field.
func CityContainsFold(v string) predicate.District {
return predicate.District(sql.FieldContainsFold(FieldCity, v))
}
// AreaEQ applies the EQ predicate on the "area" field.
func AreaEQ(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldArea, v))
}
// AreaNEQ applies the NEQ predicate on the "area" field.
func AreaNEQ(v string) predicate.District {
return predicate.District(sql.FieldNEQ(FieldArea, v))
}
// AreaIn applies the In predicate on the "area" field.
func AreaIn(vs ...string) predicate.District {
return predicate.District(sql.FieldIn(FieldArea, vs...))
}
// AreaNotIn applies the NotIn predicate on the "area" field.
func AreaNotIn(vs ...string) predicate.District {
return predicate.District(sql.FieldNotIn(FieldArea, vs...))
}
// AreaGT applies the GT predicate on the "area" field.
func AreaGT(v string) predicate.District {
return predicate.District(sql.FieldGT(FieldArea, v))
}
// AreaGTE applies the GTE predicate on the "area" field.
func AreaGTE(v string) predicate.District {
return predicate.District(sql.FieldGTE(FieldArea, v))
}
// AreaLT applies the LT predicate on the "area" field.
func AreaLT(v string) predicate.District {
return predicate.District(sql.FieldLT(FieldArea, v))
}
// AreaLTE applies the LTE predicate on the "area" field.
func AreaLTE(v string) predicate.District {
return predicate.District(sql.FieldLTE(FieldArea, v))
}
// AreaContains applies the Contains predicate on the "area" field.
func AreaContains(v string) predicate.District {
return predicate.District(sql.FieldContains(FieldArea, v))
}
// AreaHasPrefix applies the HasPrefix predicate on the "area" field.
func AreaHasPrefix(v string) predicate.District {
return predicate.District(sql.FieldHasPrefix(FieldArea, v))
}
// AreaHasSuffix applies the HasSuffix predicate on the "area" field.
func AreaHasSuffix(v string) predicate.District {
return predicate.District(sql.FieldHasSuffix(FieldArea, v))
}
// AreaIsNil applies the IsNil predicate on the "area" field.
func AreaIsNil() predicate.District {
return predicate.District(sql.FieldIsNull(FieldArea))
}
// AreaNotNil applies the NotNil predicate on the "area" field.
func AreaNotNil() predicate.District {
return predicate.District(sql.FieldNotNull(FieldArea))
}
// AreaEqualFold applies the EqualFold predicate on the "area" field.
func AreaEqualFold(v string) predicate.District {
return predicate.District(sql.FieldEqualFold(FieldArea, v))
}
// AreaContainsFold applies the ContainsFold predicate on the "area" field.
func AreaContainsFold(v string) predicate.District {
return predicate.District(sql.FieldContainsFold(FieldArea, v))
}
// StreetEQ applies the EQ predicate on the "street" field.
func StreetEQ(v string) predicate.District {
return predicate.District(sql.FieldEQ(FieldStreet, v))
}
// StreetNEQ applies the NEQ predicate on the "street" field.
func StreetNEQ(v string) predicate.District {
return predicate.District(sql.FieldNEQ(FieldStreet, v))
}
// StreetIn applies the In predicate on the "street" field.
func StreetIn(vs ...string) predicate.District {
return predicate.District(sql.FieldIn(FieldStreet, vs...))
}
// StreetNotIn applies the NotIn predicate on the "street" field.
func StreetNotIn(vs ...string) predicate.District {
return predicate.District(sql.FieldNotIn(FieldStreet, vs...))
}
// StreetGT applies the GT predicate on the "street" field.
func StreetGT(v string) predicate.District {
return predicate.District(sql.FieldGT(FieldStreet, v))
}
// StreetGTE applies the GTE predicate on the "street" field.
func StreetGTE(v string) predicate.District {
return predicate.District(sql.FieldGTE(FieldStreet, v))
}
// StreetLT applies the LT predicate on the "street" field.
func StreetLT(v string) predicate.District {
return predicate.District(sql.FieldLT(FieldStreet, v))
}
// StreetLTE applies the LTE predicate on the "street" field.
func StreetLTE(v string) predicate.District {
return predicate.District(sql.FieldLTE(FieldStreet, v))
}
// StreetContains applies the Contains predicate on the "street" field.
func StreetContains(v string) predicate.District {
return predicate.District(sql.FieldContains(FieldStreet, v))
}
// StreetHasPrefix applies the HasPrefix predicate on the "street" field.
func StreetHasPrefix(v string) predicate.District {
return predicate.District(sql.FieldHasPrefix(FieldStreet, v))
}
// StreetHasSuffix applies the HasSuffix predicate on the "street" field.
func StreetHasSuffix(v string) predicate.District {
return predicate.District(sql.FieldHasSuffix(FieldStreet, v))
}
// StreetIsNil applies the IsNil predicate on the "street" field.
func StreetIsNil() predicate.District {
return predicate.District(sql.FieldIsNull(FieldStreet))
}
// StreetNotNil applies the NotNil predicate on the "street" field.
func StreetNotNil() predicate.District {
return predicate.District(sql.FieldNotNull(FieldStreet))
}
// StreetEqualFold applies the EqualFold predicate on the "street" field.
func StreetEqualFold(v string) predicate.District {
return predicate.District(sql.FieldEqualFold(FieldStreet, v))
}
// StreetContainsFold applies the ContainsFold predicate on the "street" field.
func StreetContainsFold(v string) predicate.District {
return predicate.District(sql.FieldContainsFold(FieldStreet, v))
}
// LevelEQ applies the EQ predicate on the "level" field.
func LevelEQ(v uint32) predicate.District {
return predicate.District(sql.FieldEQ(FieldLevel, v))
}
// LevelNEQ applies the NEQ predicate on the "level" field.
func LevelNEQ(v uint32) predicate.District {
return predicate.District(sql.FieldNEQ(FieldLevel, v))
}
// LevelIn applies the In predicate on the "level" field.
func LevelIn(vs ...uint32) predicate.District {
return predicate.District(sql.FieldIn(FieldLevel, vs...))
}
// LevelNotIn applies the NotIn predicate on the "level" field.
func LevelNotIn(vs ...uint32) predicate.District {
return predicate.District(sql.FieldNotIn(FieldLevel, vs...))
}
// LevelGT applies the GT predicate on the "level" field.
func LevelGT(v uint32) predicate.District {
return predicate.District(sql.FieldGT(FieldLevel, v))
}
// LevelGTE applies the GTE predicate on the "level" field.
func LevelGTE(v uint32) predicate.District {
return predicate.District(sql.FieldGTE(FieldLevel, v))
}
// LevelLT applies the LT predicate on the "level" field.
func LevelLT(v uint32) predicate.District {
return predicate.District(sql.FieldLT(FieldLevel, v))
}
// LevelLTE applies the LTE predicate on the "level" field.
func LevelLTE(v uint32) predicate.District {
return predicate.District(sql.FieldLTE(FieldLevel, v))
}
// LatitudeEQ applies the EQ predicate on the "latitude" field.
func LatitudeEQ(v float64) predicate.District {
return predicate.District(sql.FieldEQ(FieldLatitude, v))
}
// LatitudeNEQ applies the NEQ predicate on the "latitude" field.
func LatitudeNEQ(v float64) predicate.District {
return predicate.District(sql.FieldNEQ(FieldLatitude, v))
}
// LatitudeIn applies the In predicate on the "latitude" field.
func LatitudeIn(vs ...float64) predicate.District {
return predicate.District(sql.FieldIn(FieldLatitude, vs...))
}
// LatitudeNotIn applies the NotIn predicate on the "latitude" field.
func LatitudeNotIn(vs ...float64) predicate.District {
return predicate.District(sql.FieldNotIn(FieldLatitude, vs...))
}
// LatitudeGT applies the GT predicate on the "latitude" field.
func LatitudeGT(v float64) predicate.District {
return predicate.District(sql.FieldGT(FieldLatitude, v))
}
// LatitudeGTE applies the GTE predicate on the "latitude" field.
func LatitudeGTE(v float64) predicate.District {
return predicate.District(sql.FieldGTE(FieldLatitude, v))
}
// LatitudeLT applies the LT predicate on the "latitude" field.
func LatitudeLT(v float64) predicate.District {
return predicate.District(sql.FieldLT(FieldLatitude, v))
}
// LatitudeLTE applies the LTE predicate on the "latitude" field.
func LatitudeLTE(v float64) predicate.District {
return predicate.District(sql.FieldLTE(FieldLatitude, v))
}
// LongitudeEQ applies the EQ predicate on the "longitude" field.
func LongitudeEQ(v float64) predicate.District {
return predicate.District(sql.FieldEQ(FieldLongitude, v))
}
// LongitudeNEQ applies the NEQ predicate on the "longitude" field.
func LongitudeNEQ(v float64) predicate.District {
return predicate.District(sql.FieldNEQ(FieldLongitude, v))
}
// LongitudeIn applies the In predicate on the "longitude" field.
func LongitudeIn(vs ...float64) predicate.District {
return predicate.District(sql.FieldIn(FieldLongitude, vs...))
}
// LongitudeNotIn applies the NotIn predicate on the "longitude" field.
func LongitudeNotIn(vs ...float64) predicate.District {
return predicate.District(sql.FieldNotIn(FieldLongitude, vs...))
}
// LongitudeGT applies the GT predicate on the "longitude" field.
func LongitudeGT(v float64) predicate.District {
return predicate.District(sql.FieldGT(FieldLongitude, v))
}
// LongitudeGTE applies the GTE predicate on the "longitude" field.
func LongitudeGTE(v float64) predicate.District {
return predicate.District(sql.FieldGTE(FieldLongitude, v))
}
// LongitudeLT applies the LT predicate on the "longitude" field.
func LongitudeLT(v float64) predicate.District {
return predicate.District(sql.FieldLT(FieldLongitude, v))
}
// LongitudeLTE applies the LTE predicate on the "longitude" field.
func LongitudeLTE(v float64) predicate.District {
return predicate.District(sql.FieldLTE(FieldLongitude, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.District) predicate.District {
return predicate.District(func(s *sql.Selector) {
s1 := s.Clone().SetP(nil)
for _, p := range predicates {
p(s1)
}
s.Where(s1.P())
})
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.District) predicate.District {
return predicate.District(func(s *sql.Selector) {
s1 := s.Clone().SetP(nil)
for i, p := range predicates {
if i > 0 {
s1.Or()
}
p(s1)
}
s.Where(s1.P())
})
}
// Not applies the not operator on the given predicate.
func Not(p predicate.District) predicate.District {
return predicate.District(func(s *sql.Selector) {
p(s.Not())
})
}