Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.View) predicate.View
- func Config(v string) predicate.View
- func ConfigContains(v string) predicate.View
- func ConfigContainsFold(v string) predicate.View
- func ConfigEQ(v string) predicate.View
- func ConfigEqualFold(v string) predicate.View
- func ConfigGT(v string) predicate.View
- func ConfigGTE(v string) predicate.View
- func ConfigHasPrefix(v string) predicate.View
- func ConfigHasSuffix(v string) predicate.View
- func ConfigIn(vs ...string) predicate.View
- func ConfigLT(v string) predicate.View
- func ConfigLTE(v string) predicate.View
- func ConfigNEQ(v string) predicate.View
- func ConfigNotIn(vs ...string) predicate.View
- func Desc(v string) predicate.View
- func DescContains(v string) predicate.View
- func DescContainsFold(v string) predicate.View
- func DescEQ(v string) predicate.View
- func DescEqualFold(v string) predicate.View
- func DescGT(v string) predicate.View
- func DescGTE(v string) predicate.View
- func DescHasPrefix(v string) predicate.View
- func DescHasSuffix(v string) predicate.View
- func DescIn(vs ...string) predicate.View
- func DescLT(v string) predicate.View
- func DescLTE(v string) predicate.View
- func DescNEQ(v string) predicate.View
- func DescNotIn(vs ...string) predicate.View
- func HasBg() predicate.View
- func HasBgWith(preds ...predicate.Assets) predicate.View
- func HasBlocks() predicate.View
- func HasBlocksWith(preds ...predicate.ViewBlock) predicate.View
- func HasShare() predicate.View
- func HasShareWith(preds ...predicate.Share) predicate.View
- func ID(id int) predicate.View
- func IDEQ(id int) predicate.View
- func IDGT(id int) predicate.View
- func IDGTE(id int) predicate.View
- func IDIn(ids ...int) predicate.View
- func IDLT(id int) predicate.View
- func IDLTE(id int) predicate.View
- func IDNEQ(id int) predicate.View
- func IDNotIn(ids ...int) predicate.View
- func Not(p predicate.View) predicate.View
- func Or(predicates ...predicate.View) predicate.View
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the view type in the database. Label = "view" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // FieldConfig holds the string denoting the config field in the database. FieldConfig = "config" // EdgeBg holds the string denoting the bg edge name in mutations. EdgeBg = "bg" // EdgeBlocks holds the string denoting the blocks edge name in mutations. EdgeBlocks = "blocks" EdgeShare = "share" // Table holds the table name of the view in the database. Table = "views" // BgTable is the table the holds the bg relation/edge. BgTable = "views" // BgInverseTable is the table name for the Assets entity. // It exists in this package in order to avoid circular dependency with the "assets" package. BgInverseTable = "assets" // BgColumn is the table column denoting the bg relation/edge. BgColumn = "assets_view" // BlocksTable is the table the holds the blocks relation/edge. BlocksTable = "view_blocks" // BlocksInverseTable is the table name for the ViewBlock entity. // It exists in this package in order to avoid circular dependency with the "viewblock" package. BlocksInverseTable = "view_blocks" // BlocksColumn is the table column denoting the blocks relation/edge. BlocksColumn = "view_blocks" ShareTable = "shares" // It exists in this package in order to avoid circular dependency with the "share" package. ShareInverseTable = "shares" ShareColumn = "view_share" )
Variables ¶
var Columns = []string{ FieldID, FieldDesc, FieldConfig, }
Columns holds all SQL columns for view fields.
var ( // DescValidator is a validator for the "desc" field. It is called by the builders before save. DescValidator func(string) error )
var ForeignKeys = []string{
"assets_view",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "views" table and are not defined as standalone fields in the schema.
Functions ¶
func Config ¶
Config applies equality check predicate on the "config" field. It's identical to ConfigEQ.
func ConfigContains ¶
ConfigContains applies the Contains predicate on the "config" field.
func ConfigContainsFold ¶
ConfigContainsFold applies the ContainsFold predicate on the "config" field.
func ConfigEqualFold ¶
ConfigEqualFold applies the EqualFold predicate on the "config" field.
func ConfigHasPrefix ¶
ConfigHasPrefix applies the HasPrefix predicate on the "config" field.
func ConfigHasSuffix ¶
ConfigHasSuffix applies the HasSuffix predicate on the "config" field.
func ConfigNotIn ¶
ConfigNotIn applies the NotIn predicate on the "config" field.
func DescContains ¶
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEqualFold ¶
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescHasPrefix ¶
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
DescHasSuffix applies the HasSuffix predicate on the "desc" field.
func HasBgWith ¶
HasBgWith applies the HasEdge predicate on the "bg" edge with a given conditions (other predicates).
func HasBlocksWith ¶
HasBlocksWith applies the HasEdge predicate on the "blocks" edge with a given conditions (other predicates).
func HasShareWith ¶
HasShareWith applies the HasEdge predicate on the "share" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.