billingaddress

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 billingaddress type in the database.
	Label = "billing_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"
	// 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"
	// EdgeCustomer holds the string denoting the customer edge name in mutations.
	EdgeCustomer = "customer"
	// EdgeNotes holds the string denoting the notes edge name in mutations.
	EdgeNotes = "notes"
	// Table holds the table name of the billingaddress in the database.
	Table = "billing_addresses"
	// CustomerTable is the table that holds the customer relation/edge.
	CustomerTable = "billing_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_billing_addresses"
	// 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 = "billing_address_notes"
)

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
	// 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 billingaddress fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "billing_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.BillingAddress

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

func CityContainsFold

func CityContainsFold(v string) predicate.BillingAddress

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

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

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

func CityHasPrefix

func CityHasPrefix(v string) predicate.BillingAddress

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

func CityHasSuffix

func CityHasSuffix(v string) predicate.BillingAddress

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

func CityIn

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

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

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

func CityNEQ

func CityNEQ(v string) predicate.BillingAddress

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

func CityNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.BillingAddress

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.BillingAddress

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.BillingAddress

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.BillingAddress

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.BillingAddress

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.BillingAddress

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.BillingAddress

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

func CreatedAtNotIn

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

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

func HasCustomer

func HasCustomer() predicate.BillingAddress

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

func HasCustomerWith

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

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

func HasNotes

func HasNotes() predicate.BillingAddress

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

func HasNotesWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.BillingAddress

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.BillingAddress

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.BillingAddress

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.BillingAddress

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.BillingAddress

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.BillingAddress

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

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

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

func StreetContainsFold

func StreetContainsFold(v string) predicate.BillingAddress

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

func StreetEQ

func StreetEQ(v string) predicate.BillingAddress

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

func StreetEqualFold

func StreetEqualFold(v string) predicate.BillingAddress

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

func StreetGT

func StreetGT(v string) predicate.BillingAddress

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

func StreetGTE

func StreetGTE(v string) predicate.BillingAddress

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

func StreetHasPrefix

func StreetHasPrefix(v string) predicate.BillingAddress

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

func StreetHasSuffix

func StreetHasSuffix(v string) predicate.BillingAddress

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

func StreetIn

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

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

func StreetLT

func StreetLT(v string) predicate.BillingAddress

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

func StreetLTE

func StreetLTE(v string) predicate.BillingAddress

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

func StreetNEQ

func StreetNEQ(v string) predicate.BillingAddress

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

func StreetNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.BillingAddress

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.BillingAddress

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.BillingAddress

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.BillingAddress

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.BillingAddress

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.BillingAddress

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.BillingAddress

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

func UpdatedAtNotIn

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

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

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

func ZipContainsFold

func ZipContainsFold(v string) predicate.BillingAddress

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

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

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

func ZipHasSuffix

func ZipHasSuffix(v string) predicate.BillingAddress

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

func ZipIn

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

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

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the BillingAddress 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 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 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