Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.MetadataFormat) predicate.MetadataFormat
- func HasRecords() predicate.MetadataFormat
- func HasRecordsWith(preds ...predicate.Record) predicate.MetadataFormat
- func ID(id int64) predicate.MetadataFormat
- func IDEQ(id int64) predicate.MetadataFormat
- func IDGT(id int64) predicate.MetadataFormat
- func IDGTE(id int64) predicate.MetadataFormat
- func IDIn(ids ...int64) predicate.MetadataFormat
- func IDLT(id int64) predicate.MetadataFormat
- func IDLTE(id int64) predicate.MetadataFormat
- func IDNEQ(id int64) predicate.MetadataFormat
- func IDNotIn(ids ...int64) predicate.MetadataFormat
- func Namespace(v string) predicate.MetadataFormat
- func NamespaceContains(v string) predicate.MetadataFormat
- func NamespaceContainsFold(v string) predicate.MetadataFormat
- func NamespaceEQ(v string) predicate.MetadataFormat
- func NamespaceEqualFold(v string) predicate.MetadataFormat
- func NamespaceGT(v string) predicate.MetadataFormat
- func NamespaceGTE(v string) predicate.MetadataFormat
- func NamespaceHasPrefix(v string) predicate.MetadataFormat
- func NamespaceHasSuffix(v string) predicate.MetadataFormat
- func NamespaceIn(vs ...string) predicate.MetadataFormat
- func NamespaceLT(v string) predicate.MetadataFormat
- func NamespaceLTE(v string) predicate.MetadataFormat
- func NamespaceNEQ(v string) predicate.MetadataFormat
- func NamespaceNotIn(vs ...string) predicate.MetadataFormat
- func Not(p predicate.MetadataFormat) predicate.MetadataFormat
- func Or(predicates ...predicate.MetadataFormat) predicate.MetadataFormat
- func Prefix(v string) predicate.MetadataFormat
- func PrefixContains(v string) predicate.MetadataFormat
- func PrefixContainsFold(v string) predicate.MetadataFormat
- func PrefixEQ(v string) predicate.MetadataFormat
- func PrefixEqualFold(v string) predicate.MetadataFormat
- func PrefixGT(v string) predicate.MetadataFormat
- func PrefixGTE(v string) predicate.MetadataFormat
- func PrefixHasPrefix(v string) predicate.MetadataFormat
- func PrefixHasSuffix(v string) predicate.MetadataFormat
- func PrefixIn(vs ...string) predicate.MetadataFormat
- func PrefixLT(v string) predicate.MetadataFormat
- func PrefixLTE(v string) predicate.MetadataFormat
- func PrefixNEQ(v string) predicate.MetadataFormat
- func PrefixNotIn(vs ...string) predicate.MetadataFormat
- func Schema(v string) predicate.MetadataFormat
- func SchemaContains(v string) predicate.MetadataFormat
- func SchemaContainsFold(v string) predicate.MetadataFormat
- func SchemaEQ(v string) predicate.MetadataFormat
- func SchemaEqualFold(v string) predicate.MetadataFormat
- func SchemaGT(v string) predicate.MetadataFormat
- func SchemaGTE(v string) predicate.MetadataFormat
- func SchemaHasPrefix(v string) predicate.MetadataFormat
- func SchemaHasSuffix(v string) predicate.MetadataFormat
- func SchemaIn(vs ...string) predicate.MetadataFormat
- func SchemaLT(v string) predicate.MetadataFormat
- func SchemaLTE(v string) predicate.MetadataFormat
- func SchemaNEQ(v string) predicate.MetadataFormat
- func SchemaNotIn(vs ...string) predicate.MetadataFormat
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByPrefix(opts ...sql.OrderTermOption) OrderOption
- func ByRecords(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRecordsCount(opts ...sql.OrderTermOption) OrderOption
- func BySchema(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the metadataformat type in the database. Label = "metadata_format" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPrefix holds the string denoting the prefix field in the database. FieldPrefix = "prefix" // FieldSchema holds the string denoting the schema field in the database. FieldSchema = "schema" // FieldNamespace holds the string denoting the namespace field in the database. FieldNamespace = "namespace" // EdgeRecords holds the string denoting the records edge name in mutations. EdgeRecords = "records" // Table holds the table name of the metadataformat in the database. Table = "metadata_formats" // RecordsTable is the table that holds the records relation/edge. RecordsTable = "records" // RecordsInverseTable is the table name for the Record entity. // It exists in this package in order to avoid circular dependency with the "record" package. RecordsInverseTable = "records" // RecordsColumn is the table column denoting the records relation/edge. RecordsColumn = "metadata_format_id" )
Variables ¶
var Columns = []string{ FieldID, FieldPrefix, FieldSchema, FieldNamespace, }
Columns holds all SQL columns for metadataformat fields.
Functions ¶
func And ¶
func And(predicates ...predicate.MetadataFormat) predicate.MetadataFormat
And groups predicates with the AND operator between them.
func HasRecords ¶
func HasRecords() predicate.MetadataFormat
HasRecords applies the HasEdge predicate on the "records" edge.
func HasRecordsWith ¶
func HasRecordsWith(preds ...predicate.Record) predicate.MetadataFormat
HasRecordsWith applies the HasEdge predicate on the "records" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int64) predicate.MetadataFormat
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.MetadataFormat
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.MetadataFormat
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.MetadataFormat
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.MetadataFormat
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.MetadataFormat
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.MetadataFormat
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.MetadataFormat
IDNotIn applies the NotIn predicate on the ID field.
func Namespace ¶
func Namespace(v string) predicate.MetadataFormat
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
func NamespaceContains(v string) predicate.MetadataFormat
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
func NamespaceContainsFold(v string) predicate.MetadataFormat
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
func NamespaceEQ(v string) predicate.MetadataFormat
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
func NamespaceEqualFold(v string) predicate.MetadataFormat
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
func NamespaceGT(v string) predicate.MetadataFormat
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
func NamespaceGTE(v string) predicate.MetadataFormat
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
func NamespaceHasPrefix(v string) predicate.MetadataFormat
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
func NamespaceHasSuffix(v string) predicate.MetadataFormat
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
func NamespaceIn(vs ...string) predicate.MetadataFormat
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
func NamespaceLT(v string) predicate.MetadataFormat
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
func NamespaceLTE(v string) predicate.MetadataFormat
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
func NamespaceNEQ(v string) predicate.MetadataFormat
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
func NamespaceNotIn(vs ...string) predicate.MetadataFormat
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func Not ¶
func Not(p predicate.MetadataFormat) predicate.MetadataFormat
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.MetadataFormat) predicate.MetadataFormat
Or groups predicates with the OR operator between them.
func Prefix ¶
func Prefix(v string) predicate.MetadataFormat
Prefix applies equality check predicate on the "prefix" field. It's identical to PrefixEQ.
func PrefixContains ¶
func PrefixContains(v string) predicate.MetadataFormat
PrefixContains applies the Contains predicate on the "prefix" field.
func PrefixContainsFold ¶
func PrefixContainsFold(v string) predicate.MetadataFormat
PrefixContainsFold applies the ContainsFold predicate on the "prefix" field.
func PrefixEQ ¶
func PrefixEQ(v string) predicate.MetadataFormat
PrefixEQ applies the EQ predicate on the "prefix" field.
func PrefixEqualFold ¶
func PrefixEqualFold(v string) predicate.MetadataFormat
PrefixEqualFold applies the EqualFold predicate on the "prefix" field.
func PrefixGT ¶
func PrefixGT(v string) predicate.MetadataFormat
PrefixGT applies the GT predicate on the "prefix" field.
func PrefixGTE ¶
func PrefixGTE(v string) predicate.MetadataFormat
PrefixGTE applies the GTE predicate on the "prefix" field.
func PrefixHasPrefix ¶
func PrefixHasPrefix(v string) predicate.MetadataFormat
PrefixHasPrefix applies the HasPrefix predicate on the "prefix" field.
func PrefixHasSuffix ¶
func PrefixHasSuffix(v string) predicate.MetadataFormat
PrefixHasSuffix applies the HasSuffix predicate on the "prefix" field.
func PrefixIn ¶
func PrefixIn(vs ...string) predicate.MetadataFormat
PrefixIn applies the In predicate on the "prefix" field.
func PrefixLT ¶
func PrefixLT(v string) predicate.MetadataFormat
PrefixLT applies the LT predicate on the "prefix" field.
func PrefixLTE ¶
func PrefixLTE(v string) predicate.MetadataFormat
PrefixLTE applies the LTE predicate on the "prefix" field.
func PrefixNEQ ¶
func PrefixNEQ(v string) predicate.MetadataFormat
PrefixNEQ applies the NEQ predicate on the "prefix" field.
func PrefixNotIn ¶
func PrefixNotIn(vs ...string) predicate.MetadataFormat
PrefixNotIn applies the NotIn predicate on the "prefix" field.
func Schema ¶
func Schema(v string) predicate.MetadataFormat
Schema applies equality check predicate on the "schema" field. It's identical to SchemaEQ.
func SchemaContains ¶
func SchemaContains(v string) predicate.MetadataFormat
SchemaContains applies the Contains predicate on the "schema" field.
func SchemaContainsFold ¶
func SchemaContainsFold(v string) predicate.MetadataFormat
SchemaContainsFold applies the ContainsFold predicate on the "schema" field.
func SchemaEQ ¶
func SchemaEQ(v string) predicate.MetadataFormat
SchemaEQ applies the EQ predicate on the "schema" field.
func SchemaEqualFold ¶
func SchemaEqualFold(v string) predicate.MetadataFormat
SchemaEqualFold applies the EqualFold predicate on the "schema" field.
func SchemaGT ¶
func SchemaGT(v string) predicate.MetadataFormat
SchemaGT applies the GT predicate on the "schema" field.
func SchemaGTE ¶
func SchemaGTE(v string) predicate.MetadataFormat
SchemaGTE applies the GTE predicate on the "schema" field.
func SchemaHasPrefix ¶
func SchemaHasPrefix(v string) predicate.MetadataFormat
SchemaHasPrefix applies the HasPrefix predicate on the "schema" field.
func SchemaHasSuffix ¶
func SchemaHasSuffix(v string) predicate.MetadataFormat
SchemaHasSuffix applies the HasSuffix predicate on the "schema" field.
func SchemaIn ¶
func SchemaIn(vs ...string) predicate.MetadataFormat
SchemaIn applies the In predicate on the "schema" field.
func SchemaLT ¶
func SchemaLT(v string) predicate.MetadataFormat
SchemaLT applies the LT predicate on the "schema" field.
func SchemaLTE ¶
func SchemaLTE(v string) predicate.MetadataFormat
SchemaLTE applies the LTE predicate on the "schema" field.
func SchemaNEQ ¶
func SchemaNEQ(v string) predicate.MetadataFormat
SchemaNEQ applies the NEQ predicate on the "schema" field.
func SchemaNotIn ¶
func SchemaNotIn(vs ...string) predicate.MetadataFormat
SchemaNotIn applies the NotIn predicate on the "schema" 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 MetadataFormat queries.
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 ByPrefix ¶
func ByPrefix(opts ...sql.OrderTermOption) OrderOption
ByPrefix orders the results by the prefix field.
func ByRecords ¶
func ByRecords(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRecords orders the results by records terms.
func ByRecordsCount ¶
func ByRecordsCount(opts ...sql.OrderTermOption) OrderOption
ByRecordsCount orders the results by records count.
func BySchema ¶
func BySchema(opts ...sql.OrderTermOption) OrderOption
BySchema orders the results by the schema field.