Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Adapter) predicate.Adapter
- func HasOwner() predicate.Adapter
- func HasOwnerWith(preds ...predicate.Organization) predicate.Adapter
- func ID(id int) predicate.Adapter
- func IDEQ(id int) predicate.Adapter
- func IDGT(id int) predicate.Adapter
- func IDGTE(id int) predicate.Adapter
- func IDIn(ids ...int) predicate.Adapter
- func IDLT(id int) predicate.Adapter
- func IDLTE(id int) predicate.Adapter
- func IDNEQ(id int) predicate.Adapter
- func IDNotIn(ids ...int) predicate.Adapter
- func Module(v string) predicate.Adapter
- func ModuleContains(v string) predicate.Adapter
- func ModuleContainsFold(v string) predicate.Adapter
- func ModuleEQ(v string) predicate.Adapter
- func ModuleEqualFold(v string) predicate.Adapter
- func ModuleGT(v string) predicate.Adapter
- func ModuleGTE(v string) predicate.Adapter
- func ModuleHasPrefix(v string) predicate.Adapter
- func ModuleHasSuffix(v string) predicate.Adapter
- func ModuleIn(vs ...string) predicate.Adapter
- func ModuleLT(v string) predicate.Adapter
- func ModuleLTE(v string) predicate.Adapter
- func ModuleNEQ(v string) predicate.Adapter
- func ModuleNotIn(vs ...string) predicate.Adapter
- func Name(v string) predicate.Adapter
- func NameContains(v string) predicate.Adapter
- func NameContainsFold(v string) predicate.Adapter
- func NameEQ(v string) predicate.Adapter
- func NameEqualFold(v string) predicate.Adapter
- func NameGT(v string) predicate.Adapter
- func NameGTE(v string) predicate.Adapter
- func NameHasPrefix(v string) predicate.Adapter
- func NameHasSuffix(v string) predicate.Adapter
- func NameIn(vs ...string) predicate.Adapter
- func NameLT(v string) predicate.Adapter
- func NameLTE(v string) predicate.Adapter
- func NameNEQ(v string) predicate.Adapter
- func NameNotIn(vs ...string) predicate.Adapter
- func Not(p predicate.Adapter) predicate.Adapter
- func Or(predicates ...predicate.Adapter) predicate.Adapter
- func Tag(v string) predicate.Adapter
- func TagContains(v string) predicate.Adapter
- func TagContainsFold(v string) predicate.Adapter
- func TagEQ(v string) predicate.Adapter
- func TagEqualFold(v string) predicate.Adapter
- func TagGT(v string) predicate.Adapter
- func TagGTE(v string) predicate.Adapter
- func TagHasPrefix(v string) predicate.Adapter
- func TagHasSuffix(v string) predicate.Adapter
- func TagIn(vs ...string) predicate.Adapter
- func TagLT(v string) predicate.Adapter
- func TagLTE(v string) predicate.Adapter
- func TagNEQ(v string) predicate.Adapter
- func TagNotIn(vs ...string) predicate.Adapter
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldName, FieldTag, FieldModule, }
Columns holds all SQL columns for adapter fields.
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 HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Adapter
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func Module ¶
Module applies equality check predicate on the "module" field. It's identical to ModuleEQ.
func ModuleContains ¶
ModuleContains applies the Contains predicate on the "module" field.
func ModuleContainsFold ¶
ModuleContainsFold applies the ContainsFold predicate on the "module" field.
func ModuleEqualFold ¶
ModuleEqualFold applies the EqualFold predicate on the "module" field.
func ModuleHasPrefix ¶
ModuleHasPrefix applies the HasPrefix predicate on the "module" field.
func ModuleHasSuffix ¶
ModuleHasSuffix applies the HasSuffix predicate on the "module" field.
func ModuleNotIn ¶
ModuleNotIn applies the NotIn predicate on the "module" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func TagContains ¶
TagContains applies the Contains predicate on the "tag" field.
func TagContainsFold ¶
TagContainsFold applies the ContainsFold predicate on the "tag" field.
func TagEqualFold ¶
TagEqualFold applies the EqualFold predicate on the "tag" field.
func TagHasPrefix ¶
TagHasPrefix applies the HasPrefix predicate on the "tag" field.
func TagHasSuffix ¶
TagHasSuffix applies the HasSuffix predicate on the "tag" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.