phone

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the phone type in the database.
	Label = "phone"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldNumber holds the string denoting the number field in the database.
	FieldNumber = "number"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// EdgeCompany holds the string denoting the company edge name in mutations.
	EdgeCompany = "company"
	// EdgeCountry holds the string denoting the country edge name in mutations.
	EdgeCountry = "country"
	// Table holds the table name of the phone in the database.
	Table = "phones"
	// CompanyTable is the table that holds the company relation/edge.
	CompanyTable = "phones"
	// CompanyInverseTable is the table name for the Company entity.
	// It exists in this package in order to avoid circular dependency with the "company" package.
	CompanyInverseTable = "companies"
	// CompanyColumn is the table column denoting the company relation/edge.
	CompanyColumn = "company_phones"
	// CountryTable is the table that holds the country relation/edge.
	CountryTable = "phones"
	// CountryInverseTable is the table name for the Country entity.
	// It exists in this package in order to avoid circular dependency with the "country" package.
	CountryInverseTable = "countries"
	// CountryColumn is the table column denoting the country relation/edge.
	CountryColumn = "country_phones"
)

Variables

View Source
var (
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	DescriptionValidator func(string) error
	// NumberValidator is a validator for the "number" field. It is called by the builders before save.
	NumberValidator func(string) error
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for phone fields.

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

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

Functions

func And

func And(predicates ...predicate.Phone) predicate.Phone

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.Phone

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Phone

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Phone

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Phone

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Phone

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Phone

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Phone

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Phone

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Phone

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Phone

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Phone

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Phone

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Phone

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Phone

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasCompany

func HasCompany() predicate.Phone

HasCompany applies the HasEdge predicate on the "company" edge.

func HasCompanyWith

func HasCompanyWith(preds ...predicate.Company) predicate.Phone

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

func HasCountry

func HasCountry() predicate.Phone

HasCountry applies the HasEdge predicate on the "country" edge.

func HasCountryWith

func HasCountryWith(preds ...predicate.Country) predicate.Phone

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

func ID

func ID(id uuid.UUID) predicate.Phone

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Phone

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Phone

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Phone

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Phone

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Phone

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Phone

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Number

func Number(v string) predicate.Phone

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

func NumberContains

func NumberContains(v string) predicate.Phone

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

func NumberContainsFold

func NumberContainsFold(v string) predicate.Phone

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

func NumberEQ

func NumberEQ(v string) predicate.Phone

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

func NumberEqualFold

func NumberEqualFold(v string) predicate.Phone

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

func NumberGT

func NumberGT(v string) predicate.Phone

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

func NumberGTE

func NumberGTE(v string) predicate.Phone

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

func NumberHasPrefix

func NumberHasPrefix(v string) predicate.Phone

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

func NumberHasSuffix

func NumberHasSuffix(v string) predicate.Phone

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

func NumberIn

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

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

func NumberLT

func NumberLT(v string) predicate.Phone

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

func NumberLTE

func NumberLTE(v string) predicate.Phone

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

func NumberNEQ

func NumberNEQ(v string) predicate.Phone

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

func NumberNotIn

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

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

func Or

func Or(predicates ...predicate.Phone) predicate.Phone

Or groups predicates with the OR operator between them.

func Title

func Title(v string) predicate.Phone

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Phone

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Phone

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Phone

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Phone

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Phone

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Phone

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Phone

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Phone

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Phone

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Phone

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Phone

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Phone

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Phone

TitleNotIn applies the NotIn predicate on the "title" field.

func Type

func Type(v string) predicate.Phone

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Phone

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Phone

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Phone

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Phone

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Phone

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Phone

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Phone

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Phone

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Phone

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Phone

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Phone

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Phone

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Phone

TypeNotIn applies the NotIn predicate on the "type" 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