address

package
v0.0.0-...-f15602e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for address fields.

Functions

func And

func And(predicates ...predicate.Address) predicate.Address

And groups predicates with the AND operator between them.

func City

func City(v string) predicate.Address

City applies equality check predicate on the "city" field. It's identical to CityEQ.

func CityContains

func CityContains(v string) predicate.Address

CityContains applies the Contains predicate on the "city" field.

func CityContainsFold

func CityContainsFold(v string) predicate.Address

CityContainsFold applies the ContainsFold predicate on the "city" field.

func CityEQ

func CityEQ(v string) predicate.Address

CityEQ applies the EQ predicate on the "city" field.

func CityEqualFold

func CityEqualFold(v string) predicate.Address

CityEqualFold applies the EqualFold predicate on the "city" field.

func CityGT

func CityGT(v string) predicate.Address

CityGT applies the GT predicate on the "city" field.

func CityGTE

func CityGTE(v string) predicate.Address

CityGTE applies the GTE predicate on the "city" field.

func CityHasPrefix

func CityHasPrefix(v string) predicate.Address

CityHasPrefix applies the HasPrefix predicate on the "city" field.

func CityHasSuffix

func CityHasSuffix(v string) predicate.Address

CityHasSuffix applies the HasSuffix predicate on the "city" field.

func CityIn

func CityIn(vs ...string) predicate.Address

CityIn applies the In predicate on the "city" field.

func CityLT

func CityLT(v string) predicate.Address

CityLT applies the LT predicate on the "city" field.

func CityLTE

func CityLTE(v string) predicate.Address

CityLTE applies the LTE predicate on the "city" field.

func CityNEQ

func CityNEQ(v string) predicate.Address

CityNEQ applies the NEQ predicate on the "city" field.

func CityNotIn

func CityNotIn(vs ...string) predicate.Address

CityNotIn applies the NotIn predicate on the "city" field.

func Country

func Country(v string) predicate.Address

Country applies equality check predicate on the "country" field. It's identical to CountryEQ.

func CountryContains

func CountryContains(v string) predicate.Address

CountryContains applies the Contains predicate on the "country" field.

func CountryContainsFold

func CountryContainsFold(v string) predicate.Address

CountryContainsFold applies the ContainsFold predicate on the "country" field.

func CountryEQ

func CountryEQ(v string) predicate.Address

CountryEQ applies the EQ predicate on the "country" field.

func CountryEqualFold

func CountryEqualFold(v string) predicate.Address

CountryEqualFold applies the EqualFold predicate on the "country" field.

func CountryGT

func CountryGT(v string) predicate.Address

CountryGT applies the GT predicate on the "country" field.

func CountryGTE

func CountryGTE(v string) predicate.Address

CountryGTE applies the GTE predicate on the "country" field.

func CountryHasPrefix

func CountryHasPrefix(v string) predicate.Address

CountryHasPrefix applies the HasPrefix predicate on the "country" field.

func CountryHasSuffix

func CountryHasSuffix(v string) predicate.Address

CountryHasSuffix applies the HasSuffix predicate on the "country" field.

func CountryIn

func CountryIn(vs ...string) predicate.Address

CountryIn applies the In predicate on the "country" field.

func CountryLT

func CountryLT(v string) predicate.Address

CountryLT applies the LT predicate on the "country" field.

func CountryLTE

func CountryLTE(v string) predicate.Address

CountryLTE applies the LTE predicate on the "country" field.

func CountryNEQ

func CountryNEQ(v string) predicate.Address

CountryNEQ applies the NEQ predicate on the "country" field.

func CountryNotIn

func CountryNotIn(vs ...string) predicate.Address

CountryNotIn applies the NotIn predicate on the "country" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Address

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Address

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Address

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Address

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Address

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Address

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Address

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Address

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Address

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Flat

func Flat(v int) predicate.Address

Flat applies equality check predicate on the "flat" field. It's identical to FlatEQ.

func FlatEQ

func FlatEQ(v int) predicate.Address

FlatEQ applies the EQ predicate on the "flat" field.

func FlatGT

func FlatGT(v int) predicate.Address

FlatGT applies the GT predicate on the "flat" field.

func FlatGTE

func FlatGTE(v int) predicate.Address

FlatGTE applies the GTE predicate on the "flat" field.

func FlatIn

func FlatIn(vs ...int) predicate.Address

FlatIn applies the In predicate on the "flat" field.

func FlatIsNil

func FlatIsNil() predicate.Address

FlatIsNil applies the IsNil predicate on the "flat" field.

func FlatLT

func FlatLT(v int) predicate.Address

FlatLT applies the LT predicate on the "flat" field.

func FlatLTE

func FlatLTE(v int) predicate.Address

FlatLTE applies the LTE predicate on the "flat" field.

func FlatNEQ

func FlatNEQ(v int) predicate.Address

FlatNEQ applies the NEQ predicate on the "flat" field.

func FlatNotIn

func FlatNotIn(vs ...int) predicate.Address

FlatNotIn applies the NotIn predicate on the "flat" field.

func FlatNotNil

func FlatNotNil() predicate.Address

FlatNotNil applies the NotNil predicate on the "flat" field.

func HasUsers

func HasUsers() predicate.Address

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.Address

HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).

func House

func House(v int) predicate.Address

House applies equality check predicate on the "house" field. It's identical to HouseEQ.

func HouseEQ

func HouseEQ(v int) predicate.Address

HouseEQ applies the EQ predicate on the "house" field.

func HouseGT

func HouseGT(v int) predicate.Address

HouseGT applies the GT predicate on the "house" field.

func HouseGTE

func HouseGTE(v int) predicate.Address

HouseGTE applies the GTE predicate on the "house" field.

func HouseIn

func HouseIn(vs ...int) predicate.Address

HouseIn applies the In predicate on the "house" field.

func HouseLT

func HouseLT(v int) predicate.Address

HouseLT applies the LT predicate on the "house" field.

func HouseLTE

func HouseLTE(v int) predicate.Address

HouseLTE applies the LTE predicate on the "house" field.

func HouseNEQ

func HouseNEQ(v int) predicate.Address

HouseNEQ applies the NEQ predicate on the "house" field.

func HouseNotIn

func HouseNotIn(vs ...int) predicate.Address

HouseNotIn applies the NotIn predicate on the "house" field.

func ID

func ID(id int64) predicate.Address

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Address

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Address

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Address

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Address

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Address

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Address

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Address

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Address

IDNotIn applies the NotIn predicate on the ID field.

func Letter

func Letter(v string) predicate.Address

Letter applies equality check predicate on the "letter" field. It's identical to LetterEQ.

func LetterContains

func LetterContains(v string) predicate.Address

LetterContains applies the Contains predicate on the "letter" field.

func LetterContainsFold

func LetterContainsFold(v string) predicate.Address

LetterContainsFold applies the ContainsFold predicate on the "letter" field.

func LetterEQ

func LetterEQ(v string) predicate.Address

LetterEQ applies the EQ predicate on the "letter" field.

func LetterEqualFold

func LetterEqualFold(v string) predicate.Address

LetterEqualFold applies the EqualFold predicate on the "letter" field.

func LetterGT

func LetterGT(v string) predicate.Address

LetterGT applies the GT predicate on the "letter" field.

func LetterGTE

func LetterGTE(v string) predicate.Address

LetterGTE applies the GTE predicate on the "letter" field.

func LetterHasPrefix

func LetterHasPrefix(v string) predicate.Address

LetterHasPrefix applies the HasPrefix predicate on the "letter" field.

func LetterHasSuffix

func LetterHasSuffix(v string) predicate.Address

LetterHasSuffix applies the HasSuffix predicate on the "letter" field.

func LetterIn

func LetterIn(vs ...string) predicate.Address

LetterIn applies the In predicate on the "letter" field.

func LetterIsNil

func LetterIsNil() predicate.Address

LetterIsNil applies the IsNil predicate on the "letter" field.

func LetterLT

func LetterLT(v string) predicate.Address

LetterLT applies the LT predicate on the "letter" field.

func LetterLTE

func LetterLTE(v string) predicate.Address

LetterLTE applies the LTE predicate on the "letter" field.

func LetterNEQ

func LetterNEQ(v string) predicate.Address

LetterNEQ applies the NEQ predicate on the "letter" field.

func LetterNotIn

func LetterNotIn(vs ...string) predicate.Address

LetterNotIn applies the NotIn predicate on the "letter" field.

func LetterNotNil

func LetterNotNil() predicate.Address

LetterNotNil applies the NotNil predicate on the "letter" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Address) predicate.Address

Or groups predicates with the OR operator between them.

func Postcode

func Postcode(v int) predicate.Address

Postcode applies equality check predicate on the "postcode" field. It's identical to PostcodeEQ.

func PostcodeEQ

func PostcodeEQ(v int) predicate.Address

PostcodeEQ applies the EQ predicate on the "postcode" field.

func PostcodeGT

func PostcodeGT(v int) predicate.Address

PostcodeGT applies the GT predicate on the "postcode" field.

func PostcodeGTE

func PostcodeGTE(v int) predicate.Address

PostcodeGTE applies the GTE predicate on the "postcode" field.

func PostcodeIn

func PostcodeIn(vs ...int) predicate.Address

PostcodeIn applies the In predicate on the "postcode" field.

func PostcodeLT

func PostcodeLT(v int) predicate.Address

PostcodeLT applies the LT predicate on the "postcode" field.

func PostcodeLTE

func PostcodeLTE(v int) predicate.Address

PostcodeLTE applies the LTE predicate on the "postcode" field.

func PostcodeNEQ

func PostcodeNEQ(v int) predicate.Address

PostcodeNEQ applies the NEQ predicate on the "postcode" field.

func PostcodeNotIn

func PostcodeNotIn(vs ...int) predicate.Address

PostcodeNotIn applies the NotIn predicate on the "postcode" field.

func Street

func Street(v string) predicate.Address

Street applies equality check predicate on the "street" field. It's identical to StreetEQ.

func StreetContains

func StreetContains(v string) predicate.Address

StreetContains applies the Contains predicate on the "street" field.

func StreetContainsFold

func StreetContainsFold(v string) predicate.Address

StreetContainsFold applies the ContainsFold predicate on the "street" field.

func StreetEQ

func StreetEQ(v string) predicate.Address

StreetEQ applies the EQ predicate on the "street" field.

func StreetEqualFold

func StreetEqualFold(v string) predicate.Address

StreetEqualFold applies the EqualFold predicate on the "street" field.

func StreetGT

func StreetGT(v string) predicate.Address

StreetGT applies the GT predicate on the "street" field.

func StreetGTE

func StreetGTE(v string) predicate.Address

StreetGTE applies the GTE predicate on the "street" field.

func StreetHasPrefix

func StreetHasPrefix(v string) predicate.Address

StreetHasPrefix applies the HasPrefix predicate on the "street" field.

func StreetHasSuffix

func StreetHasSuffix(v string) predicate.Address

StreetHasSuffix applies the HasSuffix predicate on the "street" field.

func StreetIn

func StreetIn(vs ...string) predicate.Address

StreetIn applies the In predicate on the "street" field.

func StreetLT

func StreetLT(v string) predicate.Address

StreetLT applies the LT predicate on the "street" field.

func StreetLTE

func StreetLTE(v string) predicate.Address

StreetLTE applies the LTE predicate on the "street" field.

func StreetNEQ

func StreetNEQ(v string) predicate.Address

StreetNEQ applies the NEQ predicate on the "street" field.

func StreetNotIn

func StreetNotIn(vs ...string) predicate.Address

StreetNotIn applies the NotIn predicate on the "street" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Address

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Address

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Address

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Address

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Address

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Address

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Address

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Address

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Address

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserID

func UserID(v int64) predicate.Address

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int64) predicate.Address

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int64) predicate.Address

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int64) predicate.Address

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int64) predicate.Address

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL