tel

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 tel type in the database.
	Label = "tel"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTel holds the string denoting the tel field in the database.
	FieldTel = "tel"
	// 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"
	// EdgeNote holds the string denoting the note edge name in mutations.
	EdgeNote = "note"
	// EdgeCustomer holds the string denoting the customer edge name in mutations.
	EdgeCustomer = "customer"
	// Table holds the table name of the tel in the database.
	Table = "tels"
	// NoteTable is the table that holds the note relation/edge.
	NoteTable = "notes"
	// NoteInverseTable is the table name for the Note entity.
	// It exists in this package in order to avoid circular dependency with the "note" package.
	NoteInverseTable = "notes"
	// NoteColumn is the table column denoting the note relation/edge.
	NoteColumn = "tel_note"
	// CustomerTable is the table that holds the customer relation/edge. The primary key declared below.
	CustomerTable = "customer_tels"
	// 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"
)

Variables

View Source
var (
	// TelValidator is a validator for the "tel" field. It is called by the builders before save.
	TelValidator 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 tel fields.

View Source
var (
	// CustomerPrimaryKey and CustomerColumn2 are the table columns denoting the
	// primary key for the customer relation (M2M).
	CustomerPrimaryKey = []string{"customer_id", "tel_id"}
)

Functions

func And

func And(predicates ...predicate.Tel) predicate.Tel

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Tel

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Tel

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Tel

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Tel

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Tel

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Tel

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Tel

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

func CreatedAtNotIn

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

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

func HasCustomer

func HasCustomer() predicate.Tel

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

func HasCustomerWith

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

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

func HasNote

func HasNote() predicate.Tel

HasNote applies the HasEdge predicate on the "note" edge.

func HasNoteWith

func HasNoteWith(preds ...predicate.Note) predicate.Tel

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

func ID

func ID(id int) predicate.Tel

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Tel

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Tel

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Tel

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Tel

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Tel

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Tel

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

func Not(p predicate.Tel) predicate.Tel

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Tel) predicate.Tel

Or groups predicates with the OR operator between them.

func Tel

func Tel(v string) predicate.Tel

Tel applies equality check predicate on the "tel" field. It's identical to TelEQ.

func TelContains

func TelContains(v string) predicate.Tel

TelContains applies the Contains predicate on the "tel" field.

func TelContainsFold

func TelContainsFold(v string) predicate.Tel

TelContainsFold applies the ContainsFold predicate on the "tel" field.

func TelEQ

func TelEQ(v string) predicate.Tel

TelEQ applies the EQ predicate on the "tel" field.

func TelEqualFold

func TelEqualFold(v string) predicate.Tel

TelEqualFold applies the EqualFold predicate on the "tel" field.

func TelGT

func TelGT(v string) predicate.Tel

TelGT applies the GT predicate on the "tel" field.

func TelGTE

func TelGTE(v string) predicate.Tel

TelGTE applies the GTE predicate on the "tel" field.

func TelHasPrefix

func TelHasPrefix(v string) predicate.Tel

TelHasPrefix applies the HasPrefix predicate on the "tel" field.

func TelHasSuffix

func TelHasSuffix(v string) predicate.Tel

TelHasSuffix applies the HasSuffix predicate on the "tel" field.

func TelIn

func TelIn(vs ...string) predicate.Tel

TelIn applies the In predicate on the "tel" field.

func TelLT

func TelLT(v string) predicate.Tel

TelLT applies the LT predicate on the "tel" field.

func TelLTE

func TelLTE(v string) predicate.Tel

TelLTE applies the LTE predicate on the "tel" field.

func TelNEQ

func TelNEQ(v string) predicate.Tel

TelNEQ applies the NEQ predicate on the "tel" field.

func TelNotIn

func TelNotIn(vs ...string) predicate.Tel

TelNotIn applies the NotIn predicate on the "tel" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Tel

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Tel

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Tel

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Tel

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Tel

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Tel

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Tel

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

func UpdatedAtNotIn

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

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Tel queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCustomer

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

ByCustomer orders the results by customer terms.

func ByCustomerCount

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

ByCustomerCount orders the results by customer count.

func ByID

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

ByID orders the results by the id field.

func ByNoteField

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

ByNoteField orders the results by note field.

func ByTel

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

ByTel orders the results by the tel field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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