feed

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the feed type in the database.
	Label = "feed"
	// 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"
	// FieldLink holds the string denoting the link field in the database.
	FieldLink = "link"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldLanguage holds the string denoting the language field in the database.
	FieldLanguage = "language"
	// FieldAuthors holds the string denoting the authors field in the database.
	FieldAuthors = "authors"
	// FieldImage holds the string denoting the image field in the database.
	FieldImage = "image"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeItem holds the string denoting the item edge name in mutations.
	EdgeItem = "item"
	// EdgeConfig holds the string denoting the config edge name in mutations.
	EdgeConfig = "config"
	// Table holds the table name of the feed in the database.
	Table = "feeds"
	// ItemTable is the table that holds the item relation/edge.
	ItemTable = "feed_items"
	// ItemInverseTable is the table name for the FeedItem entity.
	// It exists in this package in order to avoid circular dependency with the "feeditem" package.
	ItemInverseTable = "feed_items"
	// ItemColumn is the table column denoting the item relation/edge.
	ItemColumn = "feed_id"
	// ConfigTable is the table that holds the config relation/edge.
	ConfigTable = "feeds"
	// ConfigInverseTable is the table name for the FeedConfig entity.
	// It exists in this package in order to avoid circular dependency with the "feedconfig" package.
	ConfigInverseTable = "feed_configs"
	// ConfigColumn is the table column denoting the config relation/edge.
	ConfigColumn = "feed_config_feed"
)

Variables

View Source
var (
	// 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
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for feed fields.

View Source
var ForeignKeys = []string{
	"feed_config_feed",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "feeds" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Feed) predicate.Feed

And groups predicates with the AND operator between them.

func AuthorsIsNil

func AuthorsIsNil() predicate.Feed

AuthorsIsNil applies the IsNil predicate on the "authors" field.

func AuthorsNotNil

func AuthorsNotNil() predicate.Feed

AuthorsNotNil applies the NotNil predicate on the "authors" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Feed

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Feed

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Feed

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Feed

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Feed

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Feed

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Feed

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.Feed

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Feed

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Feed

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Feed

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Feed

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Feed

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Feed

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Feed

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Feed

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Feed

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Feed

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Feed

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Feed

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Feed

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Feed

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Feed

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasConfig

func HasConfig() predicate.Feed

HasConfig applies the HasEdge predicate on the "config" edge.

func HasConfigWith

func HasConfigWith(preds ...predicate.FeedConfig) predicate.Feed

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

func HasItem

func HasItem() predicate.Feed

HasItem applies the HasEdge predicate on the "item" edge.

func HasItemWith

func HasItemWith(preds ...predicate.FeedItem) predicate.Feed

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id model.InternalID) predicate.Feed

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id model.InternalID) predicate.Feed

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id model.InternalID) predicate.Feed

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...model.InternalID) predicate.Feed

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id model.InternalID) predicate.Feed

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id model.InternalID) predicate.Feed

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id model.InternalID) predicate.Feed

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...model.InternalID) predicate.Feed

IDNotIn applies the NotIn predicate on the ID field.

func ImageIsNil

func ImageIsNil() predicate.Feed

ImageIsNil applies the IsNil predicate on the "image" field.

func ImageNotNil

func ImageNotNil() predicate.Feed

ImageNotNil applies the NotNil predicate on the "image" field.

func Language

func Language(v string) predicate.Feed

Language applies equality check predicate on the "language" field. It's identical to LanguageEQ.

func LanguageContains

func LanguageContains(v string) predicate.Feed

LanguageContains applies the Contains predicate on the "language" field.

func LanguageContainsFold

func LanguageContainsFold(v string) predicate.Feed

LanguageContainsFold applies the ContainsFold predicate on the "language" field.

func LanguageEQ

func LanguageEQ(v string) predicate.Feed

LanguageEQ applies the EQ predicate on the "language" field.

func LanguageEqualFold

func LanguageEqualFold(v string) predicate.Feed

LanguageEqualFold applies the EqualFold predicate on the "language" field.

func LanguageGT

func LanguageGT(v string) predicate.Feed

LanguageGT applies the GT predicate on the "language" field.

func LanguageGTE

func LanguageGTE(v string) predicate.Feed

LanguageGTE applies the GTE predicate on the "language" field.

func LanguageHasPrefix

func LanguageHasPrefix(v string) predicate.Feed

LanguageHasPrefix applies the HasPrefix predicate on the "language" field.

func LanguageHasSuffix

func LanguageHasSuffix(v string) predicate.Feed

LanguageHasSuffix applies the HasSuffix predicate on the "language" field.

func LanguageIn

func LanguageIn(vs ...string) predicate.Feed

LanguageIn applies the In predicate on the "language" field.

func LanguageIsNil

func LanguageIsNil() predicate.Feed

LanguageIsNil applies the IsNil predicate on the "language" field.

func LanguageLT

func LanguageLT(v string) predicate.Feed

LanguageLT applies the LT predicate on the "language" field.

func LanguageLTE

func LanguageLTE(v string) predicate.Feed

LanguageLTE applies the LTE predicate on the "language" field.

func LanguageNEQ

func LanguageNEQ(v string) predicate.Feed

LanguageNEQ applies the NEQ predicate on the "language" field.

func LanguageNotIn

func LanguageNotIn(vs ...string) predicate.Feed

LanguageNotIn applies the NotIn predicate on the "language" field.

func LanguageNotNil

func LanguageNotNil() predicate.Feed

LanguageNotNil applies the NotNil predicate on the "language" field.

func Link(v string) predicate.Feed

Link applies equality check predicate on the "link" field. It's identical to LinkEQ.

func LinkContains

func LinkContains(v string) predicate.Feed

LinkContains applies the Contains predicate on the "link" field.

func LinkContainsFold

func LinkContainsFold(v string) predicate.Feed

LinkContainsFold applies the ContainsFold predicate on the "link" field.

func LinkEQ

func LinkEQ(v string) predicate.Feed

LinkEQ applies the EQ predicate on the "link" field.

func LinkEqualFold

func LinkEqualFold(v string) predicate.Feed

LinkEqualFold applies the EqualFold predicate on the "link" field.

func LinkGT

func LinkGT(v string) predicate.Feed

LinkGT applies the GT predicate on the "link" field.

func LinkGTE

func LinkGTE(v string) predicate.Feed

LinkGTE applies the GTE predicate on the "link" field.

func LinkHasPrefix

func LinkHasPrefix(v string) predicate.Feed

LinkHasPrefix applies the HasPrefix predicate on the "link" field.

func LinkHasSuffix

func LinkHasSuffix(v string) predicate.Feed

LinkHasSuffix applies the HasSuffix predicate on the "link" field.

func LinkIn

func LinkIn(vs ...string) predicate.Feed

LinkIn applies the In predicate on the "link" field.

func LinkIsNil

func LinkIsNil() predicate.Feed

LinkIsNil applies the IsNil predicate on the "link" field.

func LinkLT

func LinkLT(v string) predicate.Feed

LinkLT applies the LT predicate on the "link" field.

func LinkLTE

func LinkLTE(v string) predicate.Feed

LinkLTE applies the LTE predicate on the "link" field.

func LinkNEQ

func LinkNEQ(v string) predicate.Feed

LinkNEQ applies the NEQ predicate on the "link" field.

func LinkNotIn

func LinkNotIn(vs ...string) predicate.Feed

LinkNotIn applies the NotIn predicate on the "link" field.

func LinkNotNil

func LinkNotNil() predicate.Feed

LinkNotNil applies the NotNil predicate on the "link" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Feed) predicate.Feed

Or groups predicates with the OR operator between them.

func Title

func Title(v string) predicate.Feed

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Feed

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Feed

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Feed

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Feed

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Feed

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Feed

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Feed

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Feed

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Feed

TitleIn applies the In predicate on the "title" field.

func TitleIsNil

func TitleIsNil() predicate.Feed

TitleIsNil applies the IsNil predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Feed

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Feed

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Feed

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Feed

TitleNotIn applies the NotIn predicate on the "title" field.

func TitleNotNil

func TitleNotNil() predicate.Feed

TitleNotNil applies the NotNil predicate on the "title" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Feed

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Feed

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Feed

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Feed

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Feed

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Feed

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Feed

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

func UpdatedAtNotIn

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

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

type OrderOption added in v0.1.4

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Feed queries.

func ByConfigField added in v0.1.4

func ByConfigField(field string, opts ...sql.OrderTermOption) OrderOption

ByConfigField orders the results by config field.

func ByCreatedAt added in v0.1.4

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDescription added in v0.1.4

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByID added in v0.1.4

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByItem added in v0.1.4

func ByItem(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByItem orders the results by item terms.

func ByItemCount added in v0.1.4

func ByItemCount(opts ...sql.OrderTermOption) OrderOption

ByItemCount orders the results by item count.

func ByLanguage added in v0.1.4

func ByLanguage(opts ...sql.OrderTermOption) OrderOption

ByLanguage orders the results by the language field.

func ByLink(opts ...sql.OrderTermOption) OrderOption

ByLink orders the results by the link field.

func ByTitle added in v0.1.4

func ByTitle(opts ...sql.OrderTermOption) OrderOption

ByTitle orders the results by the title field.

func ByUpdatedAt added in v0.1.4

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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