deliveryaddress

package
v1.0.1-a Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the deliveryaddress type in the database.
	Label = "delivery_address"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCity holds the string denoting the city field in the database.
	FieldCity = "city"
	// FieldStreet holds the string denoting the street field in the database.
	FieldStreet = "street"
	// FieldZip holds the string denoting the zip field in the database.
	FieldZip = "zip"
	// FieldNumber holds the string denoting the number field in the database.
	FieldNumber = "number"
	// 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"
	// EdgeTelephone holds the string denoting the telephone edge name in mutations.
	EdgeTelephone = "telephone"
	// EdgeNotes holds the string denoting the notes edge name in mutations.
	EdgeNotes = "notes"
	// EdgeCustomer holds the string denoting the customer edge name in mutations.
	EdgeCustomer = "customer"
	// Table holds the table name of the deliveryaddress in the database.
	Table = "delivery_addresses"
	// TelephoneTable is the table that holds the telephone relation/edge.
	TelephoneTable = "delivery_addresses"
	// TelephoneInverseTable is the table name for the Tel entity.
	// It exists in this package in order to avoid circular dependency with the "tel" package.
	TelephoneInverseTable = "tels"
	// TelephoneColumn is the table column denoting the telephone relation/edge.
	TelephoneColumn = "delivery_address_telephone"
	// NotesTable is the table that holds the notes relation/edge.
	NotesTable = "notes"
	// NotesInverseTable is the table name for the Note entity.
	// It exists in this package in order to avoid circular dependency with the "note" package.
	NotesInverseTable = "notes"
	// NotesColumn is the table column denoting the notes relation/edge.
	NotesColumn = "delivery_address_notes"
	// CustomerTable is the table that holds the customer relation/edge.
	CustomerTable = "delivery_addresses"
	// CustomerInverseTable is the table name for the Customer entity.
	// It exists in this package in order to avoid circular dependency with the "customer" package.
	CustomerInverseTable = "customers"
	// CustomerColumn is the table column denoting the customer relation/edge.
	CustomerColumn = "customer_delivery_addresses"
)

Variables

View Source
var (
	// CityValidator is a validator for the "city" field. It is called by the builders before save.
	CityValidator func(string) error
	// StreetValidator is a validator for the "street" field. It is called by the builders before save.
	StreetValidator func(string) error
	// ZipValidator is a validator for the "zip" field. It is called by the builders before save.
	ZipValidator func(string) error
	// NumberValidator is a validator for the "number" field. It is called by the builders before save.
	NumberValidator func(string) error
	// 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
)

Columns holds all SQL columns for deliveryaddress fields.

View Source
var ForeignKeys = []string{
	"customer_delivery_addresses",
	"delivery_address_telephone",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "delivery_addresses" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func City

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

func CityContains

func CityContains(v string) predicate.DeliveryAddress

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

func CityContainsFold

func CityContainsFold(v string) predicate.DeliveryAddress

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

func CityEQ

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

func CityEqualFold

func CityEqualFold(v string) predicate.DeliveryAddress

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

func CityGT

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

func CityGTE

func CityGTE(v string) predicate.DeliveryAddress

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

func CityHasPrefix

func CityHasPrefix(v string) predicate.DeliveryAddress

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

func CityHasSuffix

func CityHasSuffix(v string) predicate.DeliveryAddress

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

func CityIn

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

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

func CityLT

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

func CityLTE

func CityLTE(v string) predicate.DeliveryAddress

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

func CityNEQ

func CityNEQ(v string) predicate.DeliveryAddress

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

func CityNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.DeliveryAddress

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.DeliveryAddress

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.DeliveryAddress

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.DeliveryAddress

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.DeliveryAddress

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.DeliveryAddress

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.DeliveryAddress

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

func CreatedAtNotIn

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

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

func HasCustomer

func HasCustomer() predicate.DeliveryAddress

HasCustomer applies the HasEdge predicate on the "customer" edge.

func HasCustomerWith

func HasCustomerWith(preds ...predicate.Customer) predicate.DeliveryAddress

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

func HasNotes

func HasNotes() predicate.DeliveryAddress

HasNotes applies the HasEdge predicate on the "notes" edge.

func HasNotesWith

func HasNotesWith(preds ...predicate.Note) predicate.DeliveryAddress

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

func HasTelephone

func HasTelephone() predicate.DeliveryAddress

HasTelephone applies the HasEdge predicate on the "telephone" edge.

func HasTelephoneWith

func HasTelephoneWith(preds ...predicate.Tel) predicate.DeliveryAddress

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.DeliveryAddress

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.DeliveryAddress

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.DeliveryAddress

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.DeliveryAddress

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.DeliveryAddress

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.DeliveryAddress

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.DeliveryAddress

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.DeliveryAddress

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Number

Number applies equality check predicate on the "number" field. It's identical to NumberEQ.

func NumberContains

func NumberContains(v string) predicate.DeliveryAddress

NumberContains applies the Contains predicate on the "number" field.

func NumberContainsFold

func NumberContainsFold(v string) predicate.DeliveryAddress

NumberContainsFold applies the ContainsFold predicate on the "number" field.

func NumberEQ

func NumberEQ(v string) predicate.DeliveryAddress

NumberEQ applies the EQ predicate on the "number" field.

func NumberEqualFold

func NumberEqualFold(v string) predicate.DeliveryAddress

NumberEqualFold applies the EqualFold predicate on the "number" field.

func NumberGT

func NumberGT(v string) predicate.DeliveryAddress

NumberGT applies the GT predicate on the "number" field.

func NumberGTE

func NumberGTE(v string) predicate.DeliveryAddress

NumberGTE applies the GTE predicate on the "number" field.

func NumberHasPrefix

func NumberHasPrefix(v string) predicate.DeliveryAddress

NumberHasPrefix applies the HasPrefix predicate on the "number" field.

func NumberHasSuffix

func NumberHasSuffix(v string) predicate.DeliveryAddress

NumberHasSuffix applies the HasSuffix predicate on the "number" field.

func NumberIn

func NumberIn(vs ...string) predicate.DeliveryAddress

NumberIn applies the In predicate on the "number" field.

func NumberLT

func NumberLT(v string) predicate.DeliveryAddress

NumberLT applies the LT predicate on the "number" field.

func NumberLTE

func NumberLTE(v string) predicate.DeliveryAddress

NumberLTE applies the LTE predicate on the "number" field.

func NumberNEQ

func NumberNEQ(v string) predicate.DeliveryAddress

NumberNEQ applies the NEQ predicate on the "number" field.

func NumberNotIn

func NumberNotIn(vs ...string) predicate.DeliveryAddress

NumberNotIn applies the NotIn predicate on the "number" field.

func Or

Or groups predicates with the OR operator between them.

func Street

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

func StreetContains

func StreetContains(v string) predicate.DeliveryAddress

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

func StreetContainsFold

func StreetContainsFold(v string) predicate.DeliveryAddress

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

func StreetEQ

func StreetEQ(v string) predicate.DeliveryAddress

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

func StreetEqualFold

func StreetEqualFold(v string) predicate.DeliveryAddress

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

func StreetGT

func StreetGT(v string) predicate.DeliveryAddress

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

func StreetGTE

func StreetGTE(v string) predicate.DeliveryAddress

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

func StreetHasPrefix

func StreetHasPrefix(v string) predicate.DeliveryAddress

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

func StreetHasSuffix

func StreetHasSuffix(v string) predicate.DeliveryAddress

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

func StreetIn

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

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

func StreetLT

func StreetLT(v string) predicate.DeliveryAddress

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

func StreetLTE

func StreetLTE(v string) predicate.DeliveryAddress

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

func StreetNEQ

func StreetNEQ(v string) predicate.DeliveryAddress

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

func StreetNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.DeliveryAddress

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.DeliveryAddress

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.DeliveryAddress

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.DeliveryAddress

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.DeliveryAddress

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.DeliveryAddress

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.DeliveryAddress

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

func UpdatedAtNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

func Zip

Zip applies equality check predicate on the "zip" field. It's identical to ZipEQ.

func ZipContains

func ZipContains(v string) predicate.DeliveryAddress

ZipContains applies the Contains predicate on the "zip" field.

func ZipContainsFold

func ZipContainsFold(v string) predicate.DeliveryAddress

ZipContainsFold applies the ContainsFold predicate on the "zip" field.

func ZipEQ

ZipEQ applies the EQ predicate on the "zip" field.

func ZipEqualFold

func ZipEqualFold(v string) predicate.DeliveryAddress

ZipEqualFold applies the EqualFold predicate on the "zip" field.

func ZipGT

ZipGT applies the GT predicate on the "zip" field.

func ZipGTE

ZipGTE applies the GTE predicate on the "zip" field.

func ZipHasPrefix

func ZipHasPrefix(v string) predicate.DeliveryAddress

ZipHasPrefix applies the HasPrefix predicate on the "zip" field.

func ZipHasSuffix

func ZipHasSuffix(v string) predicate.DeliveryAddress

ZipHasSuffix applies the HasSuffix predicate on the "zip" field.

func ZipIn

func ZipIn(vs ...string) predicate.DeliveryAddress

ZipIn applies the In predicate on the "zip" field.

func ZipLT

ZipLT applies the LT predicate on the "zip" field.

func ZipLTE

ZipLTE applies the LTE predicate on the "zip" field.

func ZipNEQ

ZipNEQ applies the NEQ predicate on the "zip" field.

func ZipNotIn

func ZipNotIn(vs ...string) predicate.DeliveryAddress

ZipNotIn applies the NotIn predicate on the "zip" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the DeliveryAddress queries.

func ByCity

func ByCity(opts ...sql.OrderTermOption) OrderOption

ByCity orders the results by the city field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCustomerField

func ByCustomerField(field string, opts ...sql.OrderTermOption) OrderOption

ByCustomerField orders the results by customer field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByNotes

func ByNotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNotes orders the results by notes terms.

func ByNotesCount

func ByNotesCount(opts ...sql.OrderTermOption) OrderOption

ByNotesCount orders the results by notes count.

func ByNumber

func ByNumber(opts ...sql.OrderTermOption) OrderOption

ByNumber orders the results by the number field.

func ByStreet

func ByStreet(opts ...sql.OrderTermOption) OrderOption

ByStreet orders the results by the street field.

func ByTelephoneField

func ByTelephoneField(field string, opts ...sql.OrderTermOption) OrderOption

ByTelephoneField orders the results by telephone field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByZip

func ByZip(opts ...sql.OrderTermOption) OrderOption

ByZip orders the results by the zip field.

Jump to

Keyboard shortcuts

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