Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Resources) predicate.Resources
- func CreatedAt(v time.Time) predicate.Resources
- func CreatedAtEQ(v time.Time) predicate.Resources
- func CreatedAtGT(v time.Time) predicate.Resources
- func CreatedAtGTE(v time.Time) predicate.Resources
- func CreatedAtIn(vs ...time.Time) predicate.Resources
- func CreatedAtLT(v time.Time) predicate.Resources
- func CreatedAtLTE(v time.Time) predicate.Resources
- func CreatedAtNEQ(v time.Time) predicate.Resources
- func CreatedAtNotIn(vs ...time.Time) predicate.Resources
- func Desc(v string) predicate.Resources
- func DescContains(v string) predicate.Resources
- func DescContainsFold(v string) predicate.Resources
- func DescEQ(v string) predicate.Resources
- func DescEqualFold(v string) predicate.Resources
- func DescGT(v string) predicate.Resources
- func DescGTE(v string) predicate.Resources
- func DescHasPrefix(v string) predicate.Resources
- func DescHasSuffix(v string) predicate.Resources
- func DescIn(vs ...string) predicate.Resources
- func DescLT(v string) predicate.Resources
- func DescLTE(v string) predicate.Resources
- func DescNEQ(v string) predicate.Resources
- func DescNotIn(vs ...string) predicate.Resources
- func Explain(v string) predicate.Resources
- func ExplainContains(v string) predicate.Resources
- func ExplainContainsFold(v string) predicate.Resources
- func ExplainEQ(v string) predicate.Resources
- func ExplainEqualFold(v string) predicate.Resources
- func ExplainGT(v string) predicate.Resources
- func ExplainGTE(v string) predicate.Resources
- func ExplainHasPrefix(v string) predicate.Resources
- func ExplainHasSuffix(v string) predicate.Resources
- func ExplainIn(vs ...string) predicate.Resources
- func ExplainLT(v string) predicate.Resources
- func ExplainLTE(v string) predicate.Resources
- func ExplainNEQ(v string) predicate.Resources
- func ExplainNotIn(vs ...string) predicate.Resources
- func HasTag() predicate.Resources
- func HasTagWith(preds ...predicate.Tag) predicate.Resources
- func ID(id string) predicate.Resources
- func IDEQ(id string) predicate.Resources
- func IDGT(id string) predicate.Resources
- func IDGTE(id string) predicate.Resources
- func IDIn(ids ...string) predicate.Resources
- func IDLT(id string) predicate.Resources
- func IDLTE(id string) predicate.Resources
- func IDNEQ(id string) predicate.Resources
- func IDNotIn(ids ...string) predicate.Resources
- func Icon(v string) predicate.Resources
- func IconContains(v string) predicate.Resources
- func IconContainsFold(v string) predicate.Resources
- func IconEQ(v string) predicate.Resources
- func IconEqualFold(v string) predicate.Resources
- func IconGT(v string) predicate.Resources
- func IconGTE(v string) predicate.Resources
- func IconHasPrefix(v string) predicate.Resources
- func IconHasSuffix(v string) predicate.Resources
- func IconIn(vs ...string) predicate.Resources
- func IconIsNil() predicate.Resources
- func IconLT(v string) predicate.Resources
- func IconLTE(v string) predicate.Resources
- func IconNEQ(v string) predicate.Resources
- func IconNotIn(vs ...string) predicate.Resources
- func IconNotNil() predicate.Resources
- func IsTop(v bool) predicate.Resources
- func IsTopEQ(v bool) predicate.Resources
- func IsTopNEQ(v bool) predicate.Resources
- func Name(v string) predicate.Resources
- func NameContains(v string) predicate.Resources
- func NameContainsFold(v string) predicate.Resources
- func NameEQ(v string) predicate.Resources
- func NameEqualFold(v string) predicate.Resources
- func NameGT(v string) predicate.Resources
- func NameGTE(v string) predicate.Resources
- func NameHasPrefix(v string) predicate.Resources
- func NameHasSuffix(v string) predicate.Resources
- func NameIn(vs ...string) predicate.Resources
- func NameLT(v string) predicate.Resources
- func NameLTE(v string) predicate.Resources
- func NameNEQ(v string) predicate.Resources
- func NameNotIn(vs ...string) predicate.Resources
- func Not(p predicate.Resources) predicate.Resources
- func Or(predicates ...predicate.Resources) predicate.Resources
- func URL(v string) predicate.Resources
- func URLContains(v string) predicate.Resources
- func URLContainsFold(v string) predicate.Resources
- func URLEQ(v string) predicate.Resources
- func URLEqualFold(v string) predicate.Resources
- func URLGT(v string) predicate.Resources
- func URLGTE(v string) predicate.Resources
- func URLHasPrefix(v string) predicate.Resources
- func URLHasSuffix(v string) predicate.Resources
- func URLIn(vs ...string) predicate.Resources
- func URLLT(v string) predicate.Resources
- func URLLTE(v string) predicate.Resources
- func URLNEQ(v string) predicate.Resources
- func URLNotIn(vs ...string) predicate.Resources
- func UpdatedAt(v time.Time) predicate.Resources
- func UpdatedAtEQ(v time.Time) predicate.Resources
- func UpdatedAtGT(v time.Time) predicate.Resources
- func UpdatedAtGTE(v time.Time) predicate.Resources
- func UpdatedAtIn(vs ...time.Time) predicate.Resources
- func UpdatedAtLT(v time.Time) predicate.Resources
- func UpdatedAtLTE(v time.Time) predicate.Resources
- func UpdatedAtNEQ(v time.Time) predicate.Resources
- func UpdatedAtNotIn(vs ...time.Time) predicate.Resources
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the resources type in the database. Label = "resources" // 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" // FieldIcon holds the string denoting the icon field in the database. FieldIcon = "icon" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // FieldExplain holds the string denoting the explain field in the database. FieldExplain = "explain" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldIsTop holds the string denoting the is_top field in the database. FieldIsTop = "is_top" // 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" // EdgeTag holds the string denoting the tag edge name in mutations. EdgeTag = "tag" // Table holds the table name of the resources in the database. Table = "resources" // TagTable is the table that holds the tag relation/edge. The primary key declared below. TagTable = "tag_resources" // TagInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagInverseTable = "tags" )
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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var Columns = []string{ FieldID, FieldName, FieldIcon, FieldDesc, FieldExplain, FieldURL, FieldIsTop, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for resources fields.
var ( // TagPrimaryKey and TagColumn2 are the table columns denoting the // primary key for the tag relation (M2M). TagPrimaryKey = []string{"tag_id", "resources_id"} )
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 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 Explain ¶
Explain applies equality check predicate on the "explain" field. It's identical to ExplainEQ.
func ExplainContains ¶
ExplainContains applies the Contains predicate on the "explain" field.
func ExplainContainsFold ¶
ExplainContainsFold applies the ContainsFold predicate on the "explain" field.
func ExplainEqualFold ¶
ExplainEqualFold applies the EqualFold predicate on the "explain" field.
func ExplainGTE ¶
ExplainGTE applies the GTE predicate on the "explain" field.
func ExplainHasPrefix ¶
ExplainHasPrefix applies the HasPrefix predicate on the "explain" field.
func ExplainHasSuffix ¶
ExplainHasSuffix applies the HasSuffix predicate on the "explain" field.
func ExplainLTE ¶
ExplainLTE applies the LTE predicate on the "explain" field.
func ExplainNEQ ¶
ExplainNEQ applies the NEQ predicate on the "explain" field.
func ExplainNotIn ¶
ExplainNotIn applies the NotIn predicate on the "explain" field.
func HasTagWith ¶
HasTagWith applies the HasEdge predicate on the "tag" edge with a given conditions (other predicates).
func IconContains ¶
IconContains applies the Contains predicate on the "icon" field.
func IconContainsFold ¶
IconContainsFold applies the ContainsFold predicate on the "icon" field.
func IconEqualFold ¶
IconEqualFold applies the EqualFold predicate on the "icon" field.
func IconHasPrefix ¶
IconHasPrefix applies the HasPrefix predicate on the "icon" field.
func IconHasSuffix ¶
IconHasSuffix applies the HasSuffix predicate on the "icon" field.
func IconNotNil ¶
IconNotNil applies the NotNil predicate on the "icon" field.
func IsTop ¶
IsTop applies equality check predicate on the "is_top" field. It's identical to IsTopEQ.
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 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.