Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DataSet) predicate.DataSet
- func Config(v string) predicate.DataSet
- func ConfigContains(v string) predicate.DataSet
- func ConfigContainsFold(v string) predicate.DataSet
- func ConfigEQ(v string) predicate.DataSet
- func ConfigEqualFold(v string) predicate.DataSet
- func ConfigGT(v string) predicate.DataSet
- func ConfigGTE(v string) predicate.DataSet
- func ConfigHasPrefix(v string) predicate.DataSet
- func ConfigHasSuffix(v string) predicate.DataSet
- func ConfigIn(vs ...string) predicate.DataSet
- func ConfigLT(v string) predicate.DataSet
- func ConfigLTE(v string) predicate.DataSet
- func ConfigNEQ(v string) predicate.DataSet
- func ConfigNotIn(vs ...string) predicate.DataSet
- func HasBlock() predicate.DataSet
- func HasBlockWith(preds ...predicate.ViewBlock) predicate.DataSet
- func ID(id int) predicate.DataSet
- func IDEQ(id int) predicate.DataSet
- func IDGT(id int) predicate.DataSet
- func IDGTE(id int) predicate.DataSet
- func IDIn(ids ...int) predicate.DataSet
- func IDLT(id int) predicate.DataSet
- func IDLTE(id int) predicate.DataSet
- func IDNEQ(id int) predicate.DataSet
- func IDNotIn(ids ...int) predicate.DataSet
- func Not(p predicate.DataSet) predicate.DataSet
- func Or(predicates ...predicate.DataSet) predicate.DataSet
- func Title(v string) predicate.DataSet
- func TitleContains(v string) predicate.DataSet
- func TitleContainsFold(v string) predicate.DataSet
- func TitleEQ(v string) predicate.DataSet
- func TitleEqualFold(v string) predicate.DataSet
- func TitleGT(v string) predicate.DataSet
- func TitleGTE(v string) predicate.DataSet
- func TitleHasPrefix(v string) predicate.DataSet
- func TitleHasSuffix(v string) predicate.DataSet
- func TitleIn(vs ...string) predicate.DataSet
- func TitleLT(v string) predicate.DataSet
- func TitleLTE(v string) predicate.DataSet
- func TitleNEQ(v string) predicate.DataSet
- func TitleNotIn(vs ...string) predicate.DataSet
- func Type(v string) predicate.DataSet
- func TypeContains(v string) predicate.DataSet
- func TypeContainsFold(v string) predicate.DataSet
- func TypeEQ(v string) predicate.DataSet
- func TypeEqualFold(v string) predicate.DataSet
- func TypeGT(v string) predicate.DataSet
- func TypeGTE(v string) predicate.DataSet
- func TypeHasPrefix(v string) predicate.DataSet
- func TypeHasSuffix(v string) predicate.DataSet
- func TypeIn(vs ...string) predicate.DataSet
- func TypeLT(v string) predicate.DataSet
- func TypeLTE(v string) predicate.DataSet
- func TypeNEQ(v string) predicate.DataSet
- func TypeNotIn(vs ...string) predicate.DataSet
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the dataset type in the database. Label = "data_set" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldConfig holds the string denoting the config field in the database. FieldConfig = "config" // EdgeBlock holds the string denoting the block edge name in mutations. EdgeBlock = "block" // Table holds the table name of the dataset in the database. Table = "data_sets" // BlockTable is the table the holds the block relation/edge. BlockTable = "data_sets" // BlockInverseTable is the table name for the ViewBlock entity. // It exists in this package in order to avoid circular dependency with the "viewblock" package. BlockInverseTable = "view_blocks" // BlockColumn is the table column denoting the block relation/edge. BlockColumn = "view_block_dataset" )
Variables ¶
var Columns = []string{ FieldID, FieldType, FieldTitle, FieldConfig, }
Columns holds all SQL columns for dataset fields.
var ForeignKeys = []string{
"view_block_dataset",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "data_sets" table and are not defined as standalone fields in the schema.
var ( // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error )
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 HasBlockWith ¶
HasBlockWith applies the HasEdge predicate on the "block" edge with a given conditions (other predicates).
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.