Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tel) predicate.Tel
- func CreatedAt(v time.Time) predicate.Tel
- func CreatedAtEQ(v time.Time) predicate.Tel
- func CreatedAtGT(v time.Time) predicate.Tel
- func CreatedAtGTE(v time.Time) predicate.Tel
- func CreatedAtIn(vs ...time.Time) predicate.Tel
- func CreatedAtLT(v time.Time) predicate.Tel
- func CreatedAtLTE(v time.Time) predicate.Tel
- func CreatedAtNEQ(v time.Time) predicate.Tel
- func CreatedAtNotIn(vs ...time.Time) predicate.Tel
- func HasCustomer() predicate.Tel
- func HasCustomerWith(preds ...predicate.Customer) predicate.Tel
- func HasNote() predicate.Tel
- func HasNoteWith(preds ...predicate.Note) predicate.Tel
- func ID(id int) predicate.Tel
- func IDEQ(id int) predicate.Tel
- func IDGT(id int) predicate.Tel
- func IDGTE(id int) predicate.Tel
- func IDIn(ids ...int) predicate.Tel
- func IDLT(id int) predicate.Tel
- func IDLTE(id int) predicate.Tel
- func IDNEQ(id int) predicate.Tel
- func IDNotIn(ids ...int) predicate.Tel
- func Not(p predicate.Tel) predicate.Tel
- func Or(predicates ...predicate.Tel) predicate.Tel
- func Tel(v string) predicate.Tel
- func TelContains(v string) predicate.Tel
- func TelContainsFold(v string) predicate.Tel
- func TelEQ(v string) predicate.Tel
- func TelEqualFold(v string) predicate.Tel
- func TelGT(v string) predicate.Tel
- func TelGTE(v string) predicate.Tel
- func TelHasPrefix(v string) predicate.Tel
- func TelHasSuffix(v string) predicate.Tel
- func TelIn(vs ...string) predicate.Tel
- func TelLT(v string) predicate.Tel
- func TelLTE(v string) predicate.Tel
- func TelNEQ(v string) predicate.Tel
- func TelNotIn(vs ...string) predicate.Tel
- func UpdatedAt(v time.Time) predicate.Tel
- func UpdatedAtEQ(v time.Time) predicate.Tel
- func UpdatedAtGT(v time.Time) predicate.Tel
- func UpdatedAtGTE(v time.Time) predicate.Tel
- func UpdatedAtIn(vs ...time.Time) predicate.Tel
- func UpdatedAtLT(v time.Time) predicate.Tel
- func UpdatedAtLTE(v time.Time) predicate.Tel
- func UpdatedAtNEQ(v time.Time) predicate.Tel
- func UpdatedAtNotIn(vs ...time.Time) predicate.Tel
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCustomer(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCustomerCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNoteField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTel(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldTel, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for tel fields.
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 CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasCustomer ¶
HasCustomer applies the HasEdge predicate on the "customer" edge.
func HasCustomerWith ¶
HasCustomerWith applies the HasEdge predicate on the "customer" edge with a given conditions (other predicates).
func HasNoteWith ¶
HasNoteWith applies the HasEdge predicate on the "note" edge with a given conditions (other predicates).
func TelContains ¶
TelContains applies the Contains predicate on the "tel" field.
func TelContainsFold ¶
TelContainsFold applies the ContainsFold predicate on the "tel" field.
func TelEqualFold ¶
TelEqualFold applies the EqualFold predicate on the "tel" field.
func TelHasPrefix ¶
TelHasPrefix applies the HasPrefix predicate on the "tel" field.
func TelHasSuffix ¶
TelHasSuffix applies the HasSuffix predicate on the "tel" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.