adapter

package
v0.0.0-...-aca7f8d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the adapter type in the database.
	Label = "adapter"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldTag holds the string denoting the tag field in the database.
	FieldTag = "tag"
	// FieldModule holds the string denoting the module field in the database.
	FieldModule = "module"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// Table holds the table name of the adapter in the database.
	Table = "adapter"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "adapter"
	// OwnerInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnerInverseTable = "organization"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "adapter_owner"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// TagValidator is a validator for the "tag" field. It is called by the builders before save.
	TagValidator func(string) error
	// ModuleValidator is a validator for the "module" field. It is called by the builders before save.
	ModuleValidator func(string) error
)

Columns holds all SQL columns for adapter fields.

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

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

Functions

func And

func And(predicates ...predicate.Adapter) predicate.Adapter

And groups predicates with the AND operator between them.

func HasOwner

func HasOwner() predicate.Adapter

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Organization) predicate.Adapter

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

func ID

func ID(id int) predicate.Adapter

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Adapter

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Adapter

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Adapter

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Adapter

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Adapter

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Adapter

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Module

func Module(v string) predicate.Adapter

Module applies equality check predicate on the "module" field. It's identical to ModuleEQ.

func ModuleContains

func ModuleContains(v string) predicate.Adapter

ModuleContains applies the Contains predicate on the "module" field.

func ModuleContainsFold

func ModuleContainsFold(v string) predicate.Adapter

ModuleContainsFold applies the ContainsFold predicate on the "module" field.

func ModuleEQ

func ModuleEQ(v string) predicate.Adapter

ModuleEQ applies the EQ predicate on the "module" field.

func ModuleEqualFold

func ModuleEqualFold(v string) predicate.Adapter

ModuleEqualFold applies the EqualFold predicate on the "module" field.

func ModuleGT

func ModuleGT(v string) predicate.Adapter

ModuleGT applies the GT predicate on the "module" field.

func ModuleGTE

func ModuleGTE(v string) predicate.Adapter

ModuleGTE applies the GTE predicate on the "module" field.

func ModuleHasPrefix

func ModuleHasPrefix(v string) predicate.Adapter

ModuleHasPrefix applies the HasPrefix predicate on the "module" field.

func ModuleHasSuffix

func ModuleHasSuffix(v string) predicate.Adapter

ModuleHasSuffix applies the HasSuffix predicate on the "module" field.

func ModuleIn

func ModuleIn(vs ...string) predicate.Adapter

ModuleIn applies the In predicate on the "module" field.

func ModuleLT

func ModuleLT(v string) predicate.Adapter

ModuleLT applies the LT predicate on the "module" field.

func ModuleLTE

func ModuleLTE(v string) predicate.Adapter

ModuleLTE applies the LTE predicate on the "module" field.

func ModuleNEQ

func ModuleNEQ(v string) predicate.Adapter

ModuleNEQ applies the NEQ predicate on the "module" field.

func ModuleNotIn

func ModuleNotIn(vs ...string) predicate.Adapter

ModuleNotIn applies the NotIn predicate on the "module" field.

func Name

func Name(v string) predicate.Adapter

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Adapter

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Adapter

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Adapter

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Adapter

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Adapter

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Adapter

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Adapter

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Adapter

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Adapter

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Adapter

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Adapter

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Adapter

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Adapter

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Adapter) predicate.Adapter

Or groups predicates with the OR operator between them.

func Tag

func Tag(v string) predicate.Adapter

Tag applies equality check predicate on the "tag" field. It's identical to TagEQ.

func TagContains

func TagContains(v string) predicate.Adapter

TagContains applies the Contains predicate on the "tag" field.

func TagContainsFold

func TagContainsFold(v string) predicate.Adapter

TagContainsFold applies the ContainsFold predicate on the "tag" field.

func TagEQ

func TagEQ(v string) predicate.Adapter

TagEQ applies the EQ predicate on the "tag" field.

func TagEqualFold

func TagEqualFold(v string) predicate.Adapter

TagEqualFold applies the EqualFold predicate on the "tag" field.

func TagGT

func TagGT(v string) predicate.Adapter

TagGT applies the GT predicate on the "tag" field.

func TagGTE

func TagGTE(v string) predicate.Adapter

TagGTE applies the GTE predicate on the "tag" field.

func TagHasPrefix

func TagHasPrefix(v string) predicate.Adapter

TagHasPrefix applies the HasPrefix predicate on the "tag" field.

func TagHasSuffix

func TagHasSuffix(v string) predicate.Adapter

TagHasSuffix applies the HasSuffix predicate on the "tag" field.

func TagIn

func TagIn(vs ...string) predicate.Adapter

TagIn applies the In predicate on the "tag" field.

func TagLT

func TagLT(v string) predicate.Adapter

TagLT applies the LT predicate on the "tag" field.

func TagLTE

func TagLTE(v string) predicate.Adapter

TagLTE applies the LTE predicate on the "tag" field.

func TagNEQ

func TagNEQ(v string) predicate.Adapter

TagNEQ applies the NEQ predicate on the "tag" field.

func TagNotIn

func TagNotIn(vs ...string) predicate.Adapter

TagNotIn applies the NotIn predicate on the "tag" 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