address

package
v0.0.0-...-05e3429 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 5 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"
	// 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

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

Columns holds all SQL columns for address fields.

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

func HasPersonAddresses() predicate.Address

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

func HasPersons() predicate.Address

HasPersons applies the HasEdge predicate on the "persons" edge.

func HasPersonsWith

func HasPersonsWith(preds ...predicate.Person) predicate.Address

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

func ID

func ID(id uuid.UUID) predicate.Address

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Address

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Address

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Address

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Address

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Address

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Address

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Address

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Address

IDNotIn applies the NotIn predicate on the ID field.

func Line1

func Line1(v string) predicate.Address

Line1 applies equality check predicate on the "line1" field. It's identical to Line1EQ.

func Line1Contains

func Line1Contains(v string) predicate.Address

Line1Contains applies the Contains predicate on the "line1" field.

func Line1ContainsFold

func Line1ContainsFold(v string) predicate.Address

Line1ContainsFold applies the ContainsFold predicate on the "line1" field.

func Line1EQ

func Line1EQ(v string) predicate.Address

Line1EQ applies the EQ predicate on the "line1" field.

func Line1EqualFold

func Line1EqualFold(v string) predicate.Address

Line1EqualFold applies the EqualFold predicate on the "line1" field.

func Line1GT

func Line1GT(v string) predicate.Address

Line1GT applies the GT predicate on the "line1" field.

func Line1GTE

func Line1GTE(v string) predicate.Address

Line1GTE applies the GTE predicate on the "line1" field.

func Line1HasPrefix

func Line1HasPrefix(v string) predicate.Address

Line1HasPrefix applies the HasPrefix predicate on the "line1" field.

func Line1HasSuffix

func Line1HasSuffix(v string) predicate.Address

Line1HasSuffix applies the HasSuffix predicate on the "line1" field.

func Line1In

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

Line1In applies the In predicate on the "line1" field.

func Line1LT

func Line1LT(v string) predicate.Address

Line1LT applies the LT predicate on the "line1" field.

func Line1LTE

func Line1LTE(v string) predicate.Address

Line1LTE applies the LTE predicate on the "line1" field.

func Line1NEQ

func Line1NEQ(v string) predicate.Address

Line1NEQ applies the NEQ predicate on the "line1" field.

func Line1NotIn

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

Line1NotIn applies the NotIn predicate on the "line1" field.

func Line2

func Line2(v string) predicate.Address

Line2 applies equality check predicate on the "line2" field. It's identical to Line2EQ.

func Line2Contains

func Line2Contains(v string) predicate.Address

Line2Contains applies the Contains predicate on the "line2" field.

func Line2ContainsFold

func Line2ContainsFold(v string) predicate.Address

Line2ContainsFold applies the ContainsFold predicate on the "line2" field.

func Line2EQ

func Line2EQ(v string) predicate.Address

Line2EQ applies the EQ predicate on the "line2" field.

func Line2EqualFold

func Line2EqualFold(v string) predicate.Address

Line2EqualFold applies the EqualFold predicate on the "line2" field.

func Line2GT

func Line2GT(v string) predicate.Address

Line2GT applies the GT predicate on the "line2" field.

func Line2GTE

func Line2GTE(v string) predicate.Address

Line2GTE applies the GTE predicate on the "line2" field.

func Line2HasPrefix

func Line2HasPrefix(v string) predicate.Address

Line2HasPrefix applies the HasPrefix predicate on the "line2" field.

func Line2HasSuffix

func Line2HasSuffix(v string) predicate.Address

Line2HasSuffix applies the HasSuffix predicate on the "line2" field.

func Line2In

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

Line2In applies the In predicate on the "line2" field.

func Line2IsNil

func Line2IsNil() predicate.Address

Line2IsNil applies the IsNil predicate on the "line2" field.

func Line2LT

func Line2LT(v string) predicate.Address

Line2LT applies the LT predicate on the "line2" field.

func Line2LTE

func Line2LTE(v string) predicate.Address

Line2LTE applies the LTE predicate on the "line2" field.

func Line2NEQ

func Line2NEQ(v string) predicate.Address

Line2NEQ applies the NEQ predicate on the "line2" field.

func Line2NotIn

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

Line2NotIn applies the NotIn predicate on the "line2" field.

func Line2NotNil

func Line2NotNil() predicate.Address

Line2NotNil applies the NotNil predicate on the "line2" 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 OtherAddressDetails

func OtherAddressDetails(v string) predicate.Address

OtherAddressDetails applies equality check predicate on the "other_address_details" field. It's identical to OtherAddressDetailsEQ.

func OtherAddressDetailsContains

func OtherAddressDetailsContains(v string) predicate.Address

OtherAddressDetailsContains applies the Contains predicate on the "other_address_details" field.

func OtherAddressDetailsContainsFold

func OtherAddressDetailsContainsFold(v string) predicate.Address

OtherAddressDetailsContainsFold applies the ContainsFold predicate on the "other_address_details" field.

func OtherAddressDetailsEQ

func OtherAddressDetailsEQ(v string) predicate.Address

OtherAddressDetailsEQ applies the EQ predicate on the "other_address_details" field.

func OtherAddressDetailsEqualFold

func OtherAddressDetailsEqualFold(v string) predicate.Address

OtherAddressDetailsEqualFold applies the EqualFold predicate on the "other_address_details" field.

func OtherAddressDetailsGT

func OtherAddressDetailsGT(v string) predicate.Address

OtherAddressDetailsGT applies the GT predicate on the "other_address_details" field.

func OtherAddressDetailsGTE

func OtherAddressDetailsGTE(v string) predicate.Address

OtherAddressDetailsGTE applies the GTE predicate on the "other_address_details" field.

func OtherAddressDetailsHasPrefix

func OtherAddressDetailsHasPrefix(v string) predicate.Address

OtherAddressDetailsHasPrefix applies the HasPrefix predicate on the "other_address_details" field.

func OtherAddressDetailsHasSuffix

func OtherAddressDetailsHasSuffix(v string) predicate.Address

OtherAddressDetailsHasSuffix applies the HasSuffix predicate on the "other_address_details" field.

func OtherAddressDetailsIn

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

OtherAddressDetailsIn applies the In predicate on the "other_address_details" field.

func OtherAddressDetailsIsNil

func OtherAddressDetailsIsNil() predicate.Address

OtherAddressDetailsIsNil applies the IsNil predicate on the "other_address_details" field.

func OtherAddressDetailsLT

func OtherAddressDetailsLT(v string) predicate.Address

OtherAddressDetailsLT applies the LT predicate on the "other_address_details" field.

func OtherAddressDetailsLTE

func OtherAddressDetailsLTE(v string) predicate.Address

OtherAddressDetailsLTE applies the LTE predicate on the "other_address_details" field.

func OtherAddressDetailsNEQ

func OtherAddressDetailsNEQ(v string) predicate.Address

OtherAddressDetailsNEQ applies the NEQ predicate on the "other_address_details" field.

func OtherAddressDetailsNotIn

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

OtherAddressDetailsNotIn applies the NotIn predicate on the "other_address_details" field.

func OtherAddressDetailsNotNil

func OtherAddressDetailsNotNil() predicate.Address

OtherAddressDetailsNotNil applies the NotNil predicate on the "other_address_details" field.

func StateOrProvince

func StateOrProvince(v string) predicate.Address

StateOrProvince applies equality check predicate on the "state_or_province" field. It's identical to StateOrProvinceEQ.

func StateOrProvinceContains

func StateOrProvinceContains(v string) predicate.Address

StateOrProvinceContains applies the Contains predicate on the "state_or_province" field.

func StateOrProvinceContainsFold

func StateOrProvinceContainsFold(v string) predicate.Address

StateOrProvinceContainsFold applies the ContainsFold predicate on the "state_or_province" field.

func StateOrProvinceEQ

func StateOrProvinceEQ(v string) predicate.Address

StateOrProvinceEQ applies the EQ predicate on the "state_or_province" field.

func StateOrProvinceEqualFold

func StateOrProvinceEqualFold(v string) predicate.Address

StateOrProvinceEqualFold applies the EqualFold predicate on the "state_or_province" field.

func StateOrProvinceGT

func StateOrProvinceGT(v string) predicate.Address

StateOrProvinceGT applies the GT predicate on the "state_or_province" field.

func StateOrProvinceGTE

func StateOrProvinceGTE(v string) predicate.Address

StateOrProvinceGTE applies the GTE predicate on the "state_or_province" field.

func StateOrProvinceHasPrefix

func StateOrProvinceHasPrefix(v string) predicate.Address

StateOrProvinceHasPrefix applies the HasPrefix predicate on the "state_or_province" field.

func StateOrProvinceHasSuffix

func StateOrProvinceHasSuffix(v string) predicate.Address

StateOrProvinceHasSuffix applies the HasSuffix predicate on the "state_or_province" field.

func StateOrProvinceIn

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

StateOrProvinceIn applies the In predicate on the "state_or_province" field.

func StateOrProvinceLT

func StateOrProvinceLT(v string) predicate.Address

StateOrProvinceLT applies the LT predicate on the "state_or_province" field.

func StateOrProvinceLTE

func StateOrProvinceLTE(v string) predicate.Address

StateOrProvinceLTE applies the LTE predicate on the "state_or_province" field.

func StateOrProvinceNEQ

func StateOrProvinceNEQ(v string) predicate.Address

StateOrProvinceNEQ applies the NEQ predicate on the "state_or_province" field.

func StateOrProvinceNotIn

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

StateOrProvinceNotIn applies the NotIn predicate on the "state_or_province" field.

func ValidColumn

func ValidColumn(column string) bool

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

func ZipOrPostcode

func ZipOrPostcode(v string) predicate.Address

ZipOrPostcode applies equality check predicate on the "zip_or_postcode" field. It's identical to ZipOrPostcodeEQ.

func ZipOrPostcodeContains

func ZipOrPostcodeContains(v string) predicate.Address

ZipOrPostcodeContains applies the Contains predicate on the "zip_or_postcode" field.

func ZipOrPostcodeContainsFold

func ZipOrPostcodeContainsFold(v string) predicate.Address

ZipOrPostcodeContainsFold applies the ContainsFold predicate on the "zip_or_postcode" field.

func ZipOrPostcodeEQ

func ZipOrPostcodeEQ(v string) predicate.Address

ZipOrPostcodeEQ applies the EQ predicate on the "zip_or_postcode" field.

func ZipOrPostcodeEqualFold

func ZipOrPostcodeEqualFold(v string) predicate.Address

ZipOrPostcodeEqualFold applies the EqualFold predicate on the "zip_or_postcode" field.

func ZipOrPostcodeGT

func ZipOrPostcodeGT(v string) predicate.Address

ZipOrPostcodeGT applies the GT predicate on the "zip_or_postcode" field.

func ZipOrPostcodeGTE

func ZipOrPostcodeGTE(v string) predicate.Address

ZipOrPostcodeGTE applies the GTE predicate on the "zip_or_postcode" field.

func ZipOrPostcodeHasPrefix

func ZipOrPostcodeHasPrefix(v string) predicate.Address

ZipOrPostcodeHasPrefix applies the HasPrefix predicate on the "zip_or_postcode" field.

func ZipOrPostcodeHasSuffix

func ZipOrPostcodeHasSuffix(v string) predicate.Address

ZipOrPostcodeHasSuffix applies the HasSuffix predicate on the "zip_or_postcode" field.

func ZipOrPostcodeIn

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

ZipOrPostcodeIn applies the In predicate on the "zip_or_postcode" field.

func ZipOrPostcodeLT

func ZipOrPostcodeLT(v string) predicate.Address

ZipOrPostcodeLT applies the LT predicate on the "zip_or_postcode" field.

func ZipOrPostcodeLTE

func ZipOrPostcodeLTE(v string) predicate.Address

ZipOrPostcodeLTE applies the LTE predicate on the "zip_or_postcode" field.

func ZipOrPostcodeNEQ

func ZipOrPostcodeNEQ(v string) predicate.Address

ZipOrPostcodeNEQ applies the NEQ predicate on the "zip_or_postcode" field.

func ZipOrPostcodeNotIn

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

ZipOrPostcodeNotIn applies the NotIn predicate on the "zip_or_postcode" field.

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 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.

Jump to

Keyboard shortcuts

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