address

package
v0.0.0-...-c8c1909 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0, 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldMobile holds the string denoting the mobile field in the database.
	FieldMobile = "mobile"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// FieldPostCode holds the string denoting the post_code field in the database.
	FieldPostCode = "post_code"
	// 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"
	// EdgeUser holds the string denoting the server edge name in mutations.
	EdgeUser = "server"
	// Table holds the table name of the address in the database.
	Table = "addresses"
	// UserTable is the table that holds the server relation/edge.
	UserTable = "addresses"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "server" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the server relation/edge.
	UserColumn = "user_addresses"
)

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
)

Columns holds all SQL columns for address fields.

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

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

Functions

func Address

func Address(v string) predicate.Address

Address applies equality check predicate on the "address" field. It's identical to AddressEQ.

func AddressContains

func AddressContains(v string) predicate.Address

AddressContains applies the Contains predicate on the "address" field.

func AddressContainsFold

func AddressContainsFold(v string) predicate.Address

AddressContainsFold applies the ContainsFold predicate on the "address" field.

func AddressEQ

func AddressEQ(v string) predicate.Address

AddressEQ applies the EQ predicate on the "address" field.

func AddressEqualFold

func AddressEqualFold(v string) predicate.Address

AddressEqualFold applies the EqualFold predicate on the "address" field.

func AddressGT

func AddressGT(v string) predicate.Address

AddressGT applies the GT predicate on the "address" field.

func AddressGTE

func AddressGTE(v string) predicate.Address

AddressGTE applies the GTE predicate on the "address" field.

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.Address

AddressHasPrefix applies the HasPrefix predicate on the "address" field.

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.Address

AddressHasSuffix applies the HasSuffix predicate on the "address" field.

func AddressIn

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

AddressIn applies the In predicate on the "address" field.

func AddressLT

func AddressLT(v string) predicate.Address

AddressLT applies the LT predicate on the "address" field.

func AddressLTE

func AddressLTE(v string) predicate.Address

AddressLTE applies the LTE predicate on the "address" field.

func AddressNEQ

func AddressNEQ(v string) predicate.Address

AddressNEQ applies the NEQ predicate on the "address" field.

func AddressNotIn

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

AddressNotIn applies the NotIn predicate on the "address" field.

func And

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

And groups predicates with the AND operator between them.

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 HasUser

func HasUser() predicate.Address

HasUser applies the HasEdge predicate on the "server" edge.

func HasUserWith

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

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

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 Mobile

func Mobile(v string) predicate.Address

Mobile applies equality check predicate on the "mobile" field. It's identical to MobileEQ.

func MobileContains

func MobileContains(v string) predicate.Address

MobileContains applies the Contains predicate on the "mobile" field.

func MobileContainsFold

func MobileContainsFold(v string) predicate.Address

MobileContainsFold applies the ContainsFold predicate on the "mobile" field.

func MobileEQ

func MobileEQ(v string) predicate.Address

MobileEQ applies the EQ predicate on the "mobile" field.

func MobileEqualFold

func MobileEqualFold(v string) predicate.Address

MobileEqualFold applies the EqualFold predicate on the "mobile" field.

func MobileGT

func MobileGT(v string) predicate.Address

MobileGT applies the GT predicate on the "mobile" field.

func MobileGTE

func MobileGTE(v string) predicate.Address

MobileGTE applies the GTE predicate on the "mobile" field.

func MobileHasPrefix

func MobileHasPrefix(v string) predicate.Address

MobileHasPrefix applies the HasPrefix predicate on the "mobile" field.

func MobileHasSuffix

func MobileHasSuffix(v string) predicate.Address

MobileHasSuffix applies the HasSuffix predicate on the "mobile" field.

func MobileIn

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

MobileIn applies the In predicate on the "mobile" field.

func MobileLT

func MobileLT(v string) predicate.Address

MobileLT applies the LT predicate on the "mobile" field.

func MobileLTE

func MobileLTE(v string) predicate.Address

MobileLTE applies the LTE predicate on the "mobile" field.

func MobileNEQ

func MobileNEQ(v string) predicate.Address

MobileNEQ applies the NEQ predicate on the "mobile" field.

func MobileNotIn

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

MobileNotIn applies the NotIn predicate on the "mobile" field.

func Name

func Name(v string) predicate.Address

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Address

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Address

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Address

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Address

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Address

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Address

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Address

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Address

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

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

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Address

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Address

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Address

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" 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 string) predicate.Address

PostCode applies equality check predicate on the "post_code" field. It's identical to PostCodeEQ.

func PostCodeContains

func PostCodeContains(v string) predicate.Address

PostCodeContains applies the Contains predicate on the "post_code" field.

func PostCodeContainsFold

func PostCodeContainsFold(v string) predicate.Address

PostCodeContainsFold applies the ContainsFold predicate on the "post_code" field.

func PostCodeEQ

func PostCodeEQ(v string) predicate.Address

PostCodeEQ applies the EQ predicate on the "post_code" field.

func PostCodeEqualFold

func PostCodeEqualFold(v string) predicate.Address

PostCodeEqualFold applies the EqualFold predicate on the "post_code" field.

func PostCodeGT

func PostCodeGT(v string) predicate.Address

PostCodeGT applies the GT predicate on the "post_code" field.

func PostCodeGTE

func PostCodeGTE(v string) predicate.Address

PostCodeGTE applies the GTE predicate on the "post_code" field.

func PostCodeHasPrefix

func PostCodeHasPrefix(v string) predicate.Address

PostCodeHasPrefix applies the HasPrefix predicate on the "post_code" field.

func PostCodeHasSuffix

func PostCodeHasSuffix(v string) predicate.Address

PostCodeHasSuffix applies the HasSuffix predicate on the "post_code" field.

func PostCodeIn

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

PostCodeIn applies the In predicate on the "post_code" field.

func PostCodeLT

func PostCodeLT(v string) predicate.Address

PostCodeLT applies the LT predicate on the "post_code" field.

func PostCodeLTE

func PostCodeLTE(v string) predicate.Address

PostCodeLTE applies the LTE predicate on the "post_code" field.

func PostCodeNEQ

func PostCodeNEQ(v string) predicate.Address

PostCodeNEQ applies the NEQ predicate on the "post_code" field.

func PostCodeNotIn

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

PostCodeNotIn applies the NotIn predicate on the "post_code" 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 ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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