customersubjects

package
v1.0.0-beta.186 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the customersubjects type in the database.
	Label = "customer_subjects"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNamespace holds the string denoting the namespace field in the database.
	FieldNamespace = "namespace"
	// FieldCustomerID holds the string denoting the customer_id field in the database.
	FieldCustomerID = "customer_id"
	// FieldSubjectKey holds the string denoting the subject_key field in the database.
	FieldSubjectKey = "subject_key"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeCustomer holds the string denoting the customer edge name in mutations.
	EdgeCustomer = "customer"
	// Table holds the table name of the customersubjects in the database.
	Table = "customer_subjects"
	// CustomerTable is the table that holds the customer relation/edge.
	CustomerTable = "customer_subjects"
	// 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_id"
)

Variables

View Source
var (
	// NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save.
	NamespaceValidator func(string) error
	// CustomerIDValidator is a validator for the "customer_id" field. It is called by the builders before save.
	CustomerIDValidator func(string) error
	// SubjectKeyValidator is a validator for the "subject_key" field. It is called by the builders before save.
	SubjectKeyValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for customersubjects fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.CustomerSubjects

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.CustomerSubjects

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.CustomerSubjects

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.CustomerSubjects

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.CustomerSubjects

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.CustomerSubjects

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.CustomerSubjects

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

func CreatedAtNotIn

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

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

func CustomerID

func CustomerID(v string) predicate.CustomerSubjects

CustomerID applies equality check predicate on the "customer_id" field. It's identical to CustomerIDEQ.

func CustomerIDContains

func CustomerIDContains(v string) predicate.CustomerSubjects

CustomerIDContains applies the Contains predicate on the "customer_id" field.

func CustomerIDContainsFold

func CustomerIDContainsFold(v string) predicate.CustomerSubjects

CustomerIDContainsFold applies the ContainsFold predicate on the "customer_id" field.

func CustomerIDEQ

func CustomerIDEQ(v string) predicate.CustomerSubjects

CustomerIDEQ applies the EQ predicate on the "customer_id" field.

func CustomerIDEqualFold

func CustomerIDEqualFold(v string) predicate.CustomerSubjects

CustomerIDEqualFold applies the EqualFold predicate on the "customer_id" field.

func CustomerIDGT

func CustomerIDGT(v string) predicate.CustomerSubjects

CustomerIDGT applies the GT predicate on the "customer_id" field.

func CustomerIDGTE

func CustomerIDGTE(v string) predicate.CustomerSubjects

CustomerIDGTE applies the GTE predicate on the "customer_id" field.

func CustomerIDHasPrefix

func CustomerIDHasPrefix(v string) predicate.CustomerSubjects

CustomerIDHasPrefix applies the HasPrefix predicate on the "customer_id" field.

func CustomerIDHasSuffix

func CustomerIDHasSuffix(v string) predicate.CustomerSubjects

CustomerIDHasSuffix applies the HasSuffix predicate on the "customer_id" field.

func CustomerIDIn

func CustomerIDIn(vs ...string) predicate.CustomerSubjects

CustomerIDIn applies the In predicate on the "customer_id" field.

func CustomerIDLT

func CustomerIDLT(v string) predicate.CustomerSubjects

CustomerIDLT applies the LT predicate on the "customer_id" field.

func CustomerIDLTE

func CustomerIDLTE(v string) predicate.CustomerSubjects

CustomerIDLTE applies the LTE predicate on the "customer_id" field.

func CustomerIDNEQ

func CustomerIDNEQ(v string) predicate.CustomerSubjects

CustomerIDNEQ applies the NEQ predicate on the "customer_id" field.

func CustomerIDNotIn

func CustomerIDNotIn(vs ...string) predicate.CustomerSubjects

CustomerIDNotIn applies the NotIn predicate on the "customer_id" field.

func HasCustomer

func HasCustomer() predicate.CustomerSubjects

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

func HasCustomerWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.CustomerSubjects

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.CustomerSubjects

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.CustomerSubjects

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Namespace

func Namespace(v string) predicate.CustomerSubjects

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains

func NamespaceContains(v string) predicate.CustomerSubjects

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.CustomerSubjects

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

func NamespaceEQ(v string) predicate.CustomerSubjects

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.CustomerSubjects

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

func NamespaceGT(v string) predicate.CustomerSubjects

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

func NamespaceGTE(v string) predicate.CustomerSubjects

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.CustomerSubjects

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.CustomerSubjects

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

func NamespaceIn(vs ...string) predicate.CustomerSubjects

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

func NamespaceLT(v string) predicate.CustomerSubjects

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

func NamespaceLTE(v string) predicate.CustomerSubjects

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.CustomerSubjects

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

func NamespaceNotIn(vs ...string) predicate.CustomerSubjects

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func SubjectKey

func SubjectKey(v string) predicate.CustomerSubjects

SubjectKey applies equality check predicate on the "subject_key" field. It's identical to SubjectKeyEQ.

func SubjectKeyContains

func SubjectKeyContains(v string) predicate.CustomerSubjects

SubjectKeyContains applies the Contains predicate on the "subject_key" field.

func SubjectKeyContainsFold

func SubjectKeyContainsFold(v string) predicate.CustomerSubjects

SubjectKeyContainsFold applies the ContainsFold predicate on the "subject_key" field.

func SubjectKeyEQ

func SubjectKeyEQ(v string) predicate.CustomerSubjects

SubjectKeyEQ applies the EQ predicate on the "subject_key" field.

func SubjectKeyEqualFold

func SubjectKeyEqualFold(v string) predicate.CustomerSubjects

SubjectKeyEqualFold applies the EqualFold predicate on the "subject_key" field.

func SubjectKeyGT

func SubjectKeyGT(v string) predicate.CustomerSubjects

SubjectKeyGT applies the GT predicate on the "subject_key" field.

func SubjectKeyGTE

func SubjectKeyGTE(v string) predicate.CustomerSubjects

SubjectKeyGTE applies the GTE predicate on the "subject_key" field.

func SubjectKeyHasPrefix

func SubjectKeyHasPrefix(v string) predicate.CustomerSubjects

SubjectKeyHasPrefix applies the HasPrefix predicate on the "subject_key" field.

func SubjectKeyHasSuffix

func SubjectKeyHasSuffix(v string) predicate.CustomerSubjects

SubjectKeyHasSuffix applies the HasSuffix predicate on the "subject_key" field.

func SubjectKeyIn

func SubjectKeyIn(vs ...string) predicate.CustomerSubjects

SubjectKeyIn applies the In predicate on the "subject_key" field.

func SubjectKeyLT

func SubjectKeyLT(v string) predicate.CustomerSubjects

SubjectKeyLT applies the LT predicate on the "subject_key" field.

func SubjectKeyLTE

func SubjectKeyLTE(v string) predicate.CustomerSubjects

SubjectKeyLTE applies the LTE predicate on the "subject_key" field.

func SubjectKeyNEQ

func SubjectKeyNEQ(v string) predicate.CustomerSubjects

SubjectKeyNEQ applies the NEQ predicate on the "subject_key" field.

func SubjectKeyNotIn

func SubjectKeyNotIn(vs ...string) predicate.CustomerSubjects

SubjectKeyNotIn applies the NotIn predicate on the "subject_key" 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 CustomerSubjects queries.

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 ByCustomerID

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

ByCustomerID orders the results by the customer_id field.

func ByID

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

ByID orders the results by the id field.

func ByNamespace

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

ByNamespace orders the results by the namespace field.

func BySubjectKey

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

BySubjectKey orders the results by the subject_key field.

Jump to

Keyboard shortcuts

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