resources

package
v0.0.0-...-ac9090e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for resources fields.

View Source
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 And

func And(predicates ...predicate.Resources) predicate.Resources

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Resources

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Resources

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Resources

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Resources

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Resources

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Resources

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Resources

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Resources

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Resources

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Desc

func Desc(v string) predicate.Resources

Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.

func DescContains

func DescContains(v string) predicate.Resources

DescContains applies the Contains predicate on the "desc" field.

func DescContainsFold

func DescContainsFold(v string) predicate.Resources

DescContainsFold applies the ContainsFold predicate on the "desc" field.

func DescEQ

func DescEQ(v string) predicate.Resources

DescEQ applies the EQ predicate on the "desc" field.

func DescEqualFold

func DescEqualFold(v string) predicate.Resources

DescEqualFold applies the EqualFold predicate on the "desc" field.

func DescGT

func DescGT(v string) predicate.Resources

DescGT applies the GT predicate on the "desc" field.

func DescGTE

func DescGTE(v string) predicate.Resources

DescGTE applies the GTE predicate on the "desc" field.

func DescHasPrefix

func DescHasPrefix(v string) predicate.Resources

DescHasPrefix applies the HasPrefix predicate on the "desc" field.

func DescHasSuffix

func DescHasSuffix(v string) predicate.Resources

DescHasSuffix applies the HasSuffix predicate on the "desc" field.

func DescIn

func DescIn(vs ...string) predicate.Resources

DescIn applies the In predicate on the "desc" field.

func DescLT

func DescLT(v string) predicate.Resources

DescLT applies the LT predicate on the "desc" field.

func DescLTE

func DescLTE(v string) predicate.Resources

DescLTE applies the LTE predicate on the "desc" field.

func DescNEQ

func DescNEQ(v string) predicate.Resources

DescNEQ applies the NEQ predicate on the "desc" field.

func DescNotIn

func DescNotIn(vs ...string) predicate.Resources

DescNotIn applies the NotIn predicate on the "desc" field.

func Explain

func Explain(v string) predicate.Resources

Explain applies equality check predicate on the "explain" field. It's identical to ExplainEQ.

func ExplainContains

func ExplainContains(v string) predicate.Resources

ExplainContains applies the Contains predicate on the "explain" field.

func ExplainContainsFold

func ExplainContainsFold(v string) predicate.Resources

ExplainContainsFold applies the ContainsFold predicate on the "explain" field.

func ExplainEQ

func ExplainEQ(v string) predicate.Resources

ExplainEQ applies the EQ predicate on the "explain" field.

func ExplainEqualFold

func ExplainEqualFold(v string) predicate.Resources

ExplainEqualFold applies the EqualFold predicate on the "explain" field.

func ExplainGT

func ExplainGT(v string) predicate.Resources

ExplainGT applies the GT predicate on the "explain" field.

func ExplainGTE

func ExplainGTE(v string) predicate.Resources

ExplainGTE applies the GTE predicate on the "explain" field.

func ExplainHasPrefix

func ExplainHasPrefix(v string) predicate.Resources

ExplainHasPrefix applies the HasPrefix predicate on the "explain" field.

func ExplainHasSuffix

func ExplainHasSuffix(v string) predicate.Resources

ExplainHasSuffix applies the HasSuffix predicate on the "explain" field.

func ExplainIn

func ExplainIn(vs ...string) predicate.Resources

ExplainIn applies the In predicate on the "explain" field.

func ExplainLT

func ExplainLT(v string) predicate.Resources

ExplainLT applies the LT predicate on the "explain" field.

func ExplainLTE

func ExplainLTE(v string) predicate.Resources

ExplainLTE applies the LTE predicate on the "explain" field.

func ExplainNEQ

func ExplainNEQ(v string) predicate.Resources

ExplainNEQ applies the NEQ predicate on the "explain" field.

func ExplainNotIn

func ExplainNotIn(vs ...string) predicate.Resources

ExplainNotIn applies the NotIn predicate on the "explain" field.

func HasTag

func HasTag() predicate.Resources

HasTag applies the HasEdge predicate on the "tag" edge.

func HasTagWith

func HasTagWith(preds ...predicate.Tag) predicate.Resources

HasTagWith applies the HasEdge predicate on the "tag" edge with a given conditions (other predicates).

func ID

func ID(id string) predicate.Resources

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Resources

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Resources

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Resources

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Resources

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Resources

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Resources

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Resources

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Resources

IDNotIn applies the NotIn predicate on the ID field.

func Icon

func Icon(v string) predicate.Resources

Icon applies equality check predicate on the "icon" field. It's identical to IconEQ.

func IconContains

func IconContains(v string) predicate.Resources

IconContains applies the Contains predicate on the "icon" field.

func IconContainsFold

func IconContainsFold(v string) predicate.Resources

IconContainsFold applies the ContainsFold predicate on the "icon" field.

func IconEQ

func IconEQ(v string) predicate.Resources

IconEQ applies the EQ predicate on the "icon" field.

func IconEqualFold

func IconEqualFold(v string) predicate.Resources

IconEqualFold applies the EqualFold predicate on the "icon" field.

func IconGT

func IconGT(v string) predicate.Resources

IconGT applies the GT predicate on the "icon" field.

func IconGTE

func IconGTE(v string) predicate.Resources

IconGTE applies the GTE predicate on the "icon" field.

func IconHasPrefix

func IconHasPrefix(v string) predicate.Resources

IconHasPrefix applies the HasPrefix predicate on the "icon" field.

func IconHasSuffix

func IconHasSuffix(v string) predicate.Resources

IconHasSuffix applies the HasSuffix predicate on the "icon" field.

func IconIn

func IconIn(vs ...string) predicate.Resources

IconIn applies the In predicate on the "icon" field.

func IconIsNil

func IconIsNil() predicate.Resources

IconIsNil applies the IsNil predicate on the "icon" field.

func IconLT

func IconLT(v string) predicate.Resources

IconLT applies the LT predicate on the "icon" field.

func IconLTE

func IconLTE(v string) predicate.Resources

IconLTE applies the LTE predicate on the "icon" field.

func IconNEQ

func IconNEQ(v string) predicate.Resources

IconNEQ applies the NEQ predicate on the "icon" field.

func IconNotIn

func IconNotIn(vs ...string) predicate.Resources

IconNotIn applies the NotIn predicate on the "icon" field.

func IconNotNil

func IconNotNil() predicate.Resources

IconNotNil applies the NotNil predicate on the "icon" field.

func IsTop

func IsTop(v bool) predicate.Resources

IsTop applies equality check predicate on the "is_top" field. It's identical to IsTopEQ.

func IsTopEQ

func IsTopEQ(v bool) predicate.Resources

IsTopEQ applies the EQ predicate on the "is_top" field.

func IsTopNEQ

func IsTopNEQ(v bool) predicate.Resources

IsTopNEQ applies the NEQ predicate on the "is_top" field.

func Name

func Name(v string) predicate.Resources

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Resources

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Resources

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Resources

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Resources

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Resources

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Resources

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Resources

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Resources

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Resources

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Resources

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Resources

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Resources

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Resources

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Resources) predicate.Resources

Or groups predicates with the OR operator between them.

func URL

func URL(v string) predicate.Resources

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Resources

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Resources

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Resources

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Resources

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Resources

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Resources

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Resources

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Resources

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Resources

URLIn applies the In predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Resources

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Resources

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Resources

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Resources

URLNotIn applies the NotIn predicate on the "url" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Resources

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Resources

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Resources

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Resources

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Resources

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Resources

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Resources

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Resources

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Resources

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL