binding

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the binding type in the database.
	Label = "binding"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldConnectionID holds the string denoting the connection_id field in the database.
	FieldConnectionID = "connection_id"
	// FieldConsumerKind holds the string denoting the consumer_kind field in the database.
	FieldConsumerKind = "consumer_kind"
	// FieldConsumerID holds the string denoting the consumer_id field in the database.
	FieldConsumerID = "consumer_id"
	// FieldPurpose holds the string denoting the purpose field in the database.
	FieldPurpose = "purpose"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the binding in the database.
	Table = "connectionforge_bindings"
)

Variables

View Source
var (
	// OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save.
	OwnerIDValidator func(string) error
	// ConnectionIDValidator is a validator for the "connection_id" field. It is called by the builders before save.
	ConnectionIDValidator func(string) error
)

Columns holds all SQL columns for binding fields.

Functions

func And

func And(predicates ...predicate.Binding) predicate.Binding

And groups predicates with the AND operator between them.

func ConnectionID

func ConnectionID(v string) predicate.Binding

ConnectionID applies equality check predicate on the "connection_id" field. It's identical to ConnectionIDEQ.

func ConnectionIDContains

func ConnectionIDContains(v string) predicate.Binding

ConnectionIDContains applies the Contains predicate on the "connection_id" field.

func ConnectionIDContainsFold

func ConnectionIDContainsFold(v string) predicate.Binding

ConnectionIDContainsFold applies the ContainsFold predicate on the "connection_id" field.

func ConnectionIDEQ

func ConnectionIDEQ(v string) predicate.Binding

ConnectionIDEQ applies the EQ predicate on the "connection_id" field.

func ConnectionIDEqualFold

func ConnectionIDEqualFold(v string) predicate.Binding

ConnectionIDEqualFold applies the EqualFold predicate on the "connection_id" field.

func ConnectionIDGT

func ConnectionIDGT(v string) predicate.Binding

ConnectionIDGT applies the GT predicate on the "connection_id" field.

func ConnectionIDGTE

func ConnectionIDGTE(v string) predicate.Binding

ConnectionIDGTE applies the GTE predicate on the "connection_id" field.

func ConnectionIDHasPrefix

func ConnectionIDHasPrefix(v string) predicate.Binding

ConnectionIDHasPrefix applies the HasPrefix predicate on the "connection_id" field.

func ConnectionIDHasSuffix

func ConnectionIDHasSuffix(v string) predicate.Binding

ConnectionIDHasSuffix applies the HasSuffix predicate on the "connection_id" field.

func ConnectionIDIn

func ConnectionIDIn(vs ...string) predicate.Binding

ConnectionIDIn applies the In predicate on the "connection_id" field.

func ConnectionIDLT

func ConnectionIDLT(v string) predicate.Binding

ConnectionIDLT applies the LT predicate on the "connection_id" field.

func ConnectionIDLTE

func ConnectionIDLTE(v string) predicate.Binding

ConnectionIDLTE applies the LTE predicate on the "connection_id" field.

func ConnectionIDNEQ

func ConnectionIDNEQ(v string) predicate.Binding

ConnectionIDNEQ applies the NEQ predicate on the "connection_id" field.

func ConnectionIDNotIn

func ConnectionIDNotIn(vs ...string) predicate.Binding

ConnectionIDNotIn applies the NotIn predicate on the "connection_id" field.

func ConsumerID

func ConsumerID(v string) predicate.Binding

ConsumerID applies equality check predicate on the "consumer_id" field. It's identical to ConsumerIDEQ.

func ConsumerIDContains

func ConsumerIDContains(v string) predicate.Binding

ConsumerIDContains applies the Contains predicate on the "consumer_id" field.

func ConsumerIDContainsFold

func ConsumerIDContainsFold(v string) predicate.Binding

ConsumerIDContainsFold applies the ContainsFold predicate on the "consumer_id" field.

func ConsumerIDEQ

func ConsumerIDEQ(v string) predicate.Binding

ConsumerIDEQ applies the EQ predicate on the "consumer_id" field.

func ConsumerIDEqualFold

func ConsumerIDEqualFold(v string) predicate.Binding

ConsumerIDEqualFold applies the EqualFold predicate on the "consumer_id" field.

func ConsumerIDGT

func ConsumerIDGT(v string) predicate.Binding

ConsumerIDGT applies the GT predicate on the "consumer_id" field.

func ConsumerIDGTE

func ConsumerIDGTE(v string) predicate.Binding

ConsumerIDGTE applies the GTE predicate on the "consumer_id" field.

func ConsumerIDHasPrefix

func ConsumerIDHasPrefix(v string) predicate.Binding

ConsumerIDHasPrefix applies the HasPrefix predicate on the "consumer_id" field.

func ConsumerIDHasSuffix

func ConsumerIDHasSuffix(v string) predicate.Binding

ConsumerIDHasSuffix applies the HasSuffix predicate on the "consumer_id" field.

func ConsumerIDIn

func ConsumerIDIn(vs ...string) predicate.Binding

ConsumerIDIn applies the In predicate on the "consumer_id" field.

func ConsumerIDLT

func ConsumerIDLT(v string) predicate.Binding

ConsumerIDLT applies the LT predicate on the "consumer_id" field.

func ConsumerIDLTE

func ConsumerIDLTE(v string) predicate.Binding

ConsumerIDLTE applies the LTE predicate on the "consumer_id" field.

func ConsumerIDNEQ

func ConsumerIDNEQ(v string) predicate.Binding

ConsumerIDNEQ applies the NEQ predicate on the "consumer_id" field.

func ConsumerIDNotIn

func ConsumerIDNotIn(vs ...string) predicate.Binding

ConsumerIDNotIn applies the NotIn predicate on the "consumer_id" field.

func ConsumerKind

func ConsumerKind(v string) predicate.Binding

ConsumerKind applies equality check predicate on the "consumer_kind" field. It's identical to ConsumerKindEQ.

func ConsumerKindContains

func ConsumerKindContains(v string) predicate.Binding

ConsumerKindContains applies the Contains predicate on the "consumer_kind" field.

func ConsumerKindContainsFold

func ConsumerKindContainsFold(v string) predicate.Binding

ConsumerKindContainsFold applies the ContainsFold predicate on the "consumer_kind" field.

func ConsumerKindEQ

func ConsumerKindEQ(v string) predicate.Binding

ConsumerKindEQ applies the EQ predicate on the "consumer_kind" field.

func ConsumerKindEqualFold

func ConsumerKindEqualFold(v string) predicate.Binding

ConsumerKindEqualFold applies the EqualFold predicate on the "consumer_kind" field.

func ConsumerKindGT

func ConsumerKindGT(v string) predicate.Binding

ConsumerKindGT applies the GT predicate on the "consumer_kind" field.

func ConsumerKindGTE

func ConsumerKindGTE(v string) predicate.Binding

ConsumerKindGTE applies the GTE predicate on the "consumer_kind" field.

func ConsumerKindHasPrefix

func ConsumerKindHasPrefix(v string) predicate.Binding

ConsumerKindHasPrefix applies the HasPrefix predicate on the "consumer_kind" field.

func ConsumerKindHasSuffix

func ConsumerKindHasSuffix(v string) predicate.Binding

ConsumerKindHasSuffix applies the HasSuffix predicate on the "consumer_kind" field.

func ConsumerKindIn

func ConsumerKindIn(vs ...string) predicate.Binding

ConsumerKindIn applies the In predicate on the "consumer_kind" field.

func ConsumerKindLT

func ConsumerKindLT(v string) predicate.Binding

ConsumerKindLT applies the LT predicate on the "consumer_kind" field.

func ConsumerKindLTE

func ConsumerKindLTE(v string) predicate.Binding

ConsumerKindLTE applies the LTE predicate on the "consumer_kind" field.

func ConsumerKindNEQ

func ConsumerKindNEQ(v string) predicate.Binding

ConsumerKindNEQ applies the NEQ predicate on the "consumer_kind" field.

func ConsumerKindNotIn

func ConsumerKindNotIn(vs ...string) predicate.Binding

ConsumerKindNotIn applies the NotIn predicate on the "consumer_kind" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Binding

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Binding

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Binding

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Binding

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Binding

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Binding

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Binding

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

func CreatedAtNotIn

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

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

func ID

func ID(id int) predicate.Binding

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Binding

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Binding

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Binding

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Binding

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Binding

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Binding

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Binding) predicate.Binding

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v string) predicate.Binding

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDContains

func OwnerIDContains(v string) predicate.Binding

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.Binding

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.Binding

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.Binding

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT

func OwnerIDGT(v string) predicate.Binding

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.Binding

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.Binding

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.Binding

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...string) predicate.Binding

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDLT

func OwnerIDLT(v string) predicate.Binding

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.Binding

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.Binding

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...string) predicate.Binding

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func Purpose

func Purpose(v string) predicate.Binding

Purpose applies equality check predicate on the "purpose" field. It's identical to PurposeEQ.

func PurposeContains

func PurposeContains(v string) predicate.Binding

PurposeContains applies the Contains predicate on the "purpose" field.

func PurposeContainsFold

func PurposeContainsFold(v string) predicate.Binding

PurposeContainsFold applies the ContainsFold predicate on the "purpose" field.

func PurposeEQ

func PurposeEQ(v string) predicate.Binding

PurposeEQ applies the EQ predicate on the "purpose" field.

func PurposeEqualFold

func PurposeEqualFold(v string) predicate.Binding

PurposeEqualFold applies the EqualFold predicate on the "purpose" field.

func PurposeGT

func PurposeGT(v string) predicate.Binding

PurposeGT applies the GT predicate on the "purpose" field.

func PurposeGTE

func PurposeGTE(v string) predicate.Binding

PurposeGTE applies the GTE predicate on the "purpose" field.

func PurposeHasPrefix

func PurposeHasPrefix(v string) predicate.Binding

PurposeHasPrefix applies the HasPrefix predicate on the "purpose" field.

func PurposeHasSuffix

func PurposeHasSuffix(v string) predicate.Binding

PurposeHasSuffix applies the HasSuffix predicate on the "purpose" field.

func PurposeIn

func PurposeIn(vs ...string) predicate.Binding

PurposeIn applies the In predicate on the "purpose" field.

func PurposeLT

func PurposeLT(v string) predicate.Binding

PurposeLT applies the LT predicate on the "purpose" field.

func PurposeLTE

func PurposeLTE(v string) predicate.Binding

PurposeLTE applies the LTE predicate on the "purpose" field.

func PurposeNEQ

func PurposeNEQ(v string) predicate.Binding

PurposeNEQ applies the NEQ predicate on the "purpose" field.

func PurposeNotIn

func PurposeNotIn(vs ...string) predicate.Binding

PurposeNotIn applies the NotIn predicate on the "purpose" 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 Binding queries.

func ByConnectionID

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

ByConnectionID orders the results by the connection_id field.

func ByConsumerID

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

ByConsumerID orders the results by the consumer_id field.

func ByConsumerKind

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

ByConsumerKind orders the results by the consumer_kind field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByOwnerID

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

ByOwnerID orders the results by the owner_id field.

func ByPurpose

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

ByPurpose orders the results by the purpose field.

Jump to

Keyboard shortcuts

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