Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Menu) predicate.Menu
- func CreatedAt(v time.Time) predicate.Menu
- func CreatedAtEQ(v time.Time) predicate.Menu
- func CreatedAtGT(v time.Time) predicate.Menu
- func CreatedAtGTE(v time.Time) predicate.Menu
- func CreatedAtIn(vs ...time.Time) predicate.Menu
- func CreatedAtLT(v time.Time) predicate.Menu
- func CreatedAtLTE(v time.Time) predicate.Menu
- func CreatedAtNEQ(v time.Time) predicate.Menu
- func CreatedAtNotIn(vs ...time.Time) predicate.Menu
- func HasChildren() predicate.Menu
- func HasChildrenWith(preds ...predicate.Menu) predicate.Menu
- func HasParent() predicate.Menu
- func HasParentWith(preds ...predicate.Menu) predicate.Menu
- func ID(id int) predicate.Menu
- func IDEQ(id int) predicate.Menu
- func IDGT(id int) predicate.Menu
- func IDGTE(id int) predicate.Menu
- func IDIn(ids ...int) predicate.Menu
- func IDLT(id int) predicate.Menu
- func IDLTE(id int) predicate.Menu
- func IDNEQ(id int) predicate.Menu
- func IDNotIn(ids ...int) predicate.Menu
- func Not(p predicate.Menu) predicate.Menu
- func Or(predicates ...predicate.Menu) predicate.Menu
- func Title(v string) predicate.Menu
- func TitleContains(v string) predicate.Menu
- func TitleContainsFold(v string) predicate.Menu
- func TitleEQ(v string) predicate.Menu
- func TitleEqualFold(v string) predicate.Menu
- func TitleGT(v string) predicate.Menu
- func TitleGTE(v string) predicate.Menu
- func TitleHasPrefix(v string) predicate.Menu
- func TitleHasSuffix(v string) predicate.Menu
- func TitleIn(vs ...string) predicate.Menu
- func TitleLT(v string) predicate.Menu
- func TitleLTE(v string) predicate.Menu
- func TitleNEQ(v string) predicate.Menu
- func TitleNotIn(vs ...string) predicate.Menu
- func URL(v string) predicate.Menu
- func URLContains(v string) predicate.Menu
- func URLContainsFold(v string) predicate.Menu
- func URLEQ(v string) predicate.Menu
- func URLEqualFold(v string) predicate.Menu
- func URLGT(v string) predicate.Menu
- func URLGTE(v string) predicate.Menu
- func URLHasPrefix(v string) predicate.Menu
- func URLHasSuffix(v string) predicate.Menu
- func URLIn(vs ...string) predicate.Menu
- func URLLT(v string) predicate.Menu
- func URLLTE(v string) predicate.Menu
- func URLNEQ(v string) predicate.Menu
- func URLNotIn(vs ...string) predicate.Menu
- func UpdatedAt(v time.Time) predicate.Menu
- func UpdatedAtEQ(v time.Time) predicate.Menu
- func UpdatedAtGT(v time.Time) predicate.Menu
- func UpdatedAtGTE(v time.Time) predicate.Menu
- func UpdatedAtIn(vs ...time.Time) predicate.Menu
- func UpdatedAtLT(v time.Time) predicate.Menu
- func UpdatedAtLTE(v time.Time) predicate.Menu
- func UpdatedAtNEQ(v time.Time) predicate.Menu
- func UpdatedAtNotIn(vs ...time.Time) predicate.Menu
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the menu type in the database. Label = "menu" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // Table holds the table name of the menu in the database. Table = "menus" // ParentTable is the table the holds the parent relation/edge. ParentTable = "menus" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "menu_children" // ChildrenTable is the table the holds the children relation/edge. ChildrenTable = "menus" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "menu_children" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldTitle, FieldURL, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for menu fields.
var ForeignKeys = []string{
"menu_children",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "menus" table and are not defined as standalone fields in the schema.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" 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 URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.