itemsource

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the itemsource type in the database.
	Label = "item_source"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPluginID holds the string denoting the plugin_id field in the database.
	FieldPluginID = "plugin_id"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// FieldConfig holds the string denoting the config field in the database.
	FieldConfig = "config"
	// FieldEnabled holds the string denoting the enabled field in the database.
	FieldEnabled = "enabled"
	// FieldSyncCursor holds the string denoting the sync_cursor field in the database.
	FieldSyncCursor = "sync_cursor"
	// FieldLastSyncedAt holds the string denoting the last_synced_at field in the database.
	FieldLastSyncedAt = "last_synced_at"
	// 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"
	// EdgeBacklogItems holds the string denoting the backlog_items edge name in mutations.
	EdgeBacklogItems = "backlog_items"
	// EdgeSyncEvents holds the string denoting the sync_events edge name in mutations.
	EdgeSyncEvents = "sync_events"
	// Table holds the table name of the itemsource in the database.
	Table = "item_sources"
	// BacklogItemsTable is the table that holds the backlog_items relation/edge.
	BacklogItemsTable = "backlog_items"
	// BacklogItemsInverseTable is the table name for the BacklogItem entity.
	// It exists in this package in order to avoid circular dependency with the "backlogitem" package.
	BacklogItemsInverseTable = "backlog_items"
	// BacklogItemsColumn is the table column denoting the backlog_items relation/edge.
	BacklogItemsColumn = "item_source_backlog_items"
	// SyncEventsTable is the table that holds the sync_events relation/edge.
	SyncEventsTable = "source_sync_events"
	// SyncEventsInverseTable is the table name for the SourceSyncEvent entity.
	// It exists in this package in order to avoid circular dependency with the "sourcesyncevent" package.
	SyncEventsInverseTable = "source_sync_events"
	// SyncEventsColumn is the table column denoting the sync_events relation/edge.
	SyncEventsColumn = "item_source_sync_events"
)

Variables

View Source
var (
	// DefaultEnabled holds the default value on creation for the "enabled" field.
	DefaultEnabled bool
	// 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() uuid.UUID
)

Columns holds all SQL columns for itemsource fields.

Functions

func And

func And(predicates ...predicate.ItemSource) predicate.ItemSource

And groups predicates with the AND operator between them.

func Config

func Config(v string) predicate.ItemSource

Config applies equality check predicate on the "config" field. It's identical to ConfigEQ.

func ConfigContains

func ConfigContains(v string) predicate.ItemSource

ConfigContains applies the Contains predicate on the "config" field.

func ConfigContainsFold

func ConfigContainsFold(v string) predicate.ItemSource

ConfigContainsFold applies the ContainsFold predicate on the "config" field.

func ConfigEQ

func ConfigEQ(v string) predicate.ItemSource

ConfigEQ applies the EQ predicate on the "config" field.

func ConfigEqualFold

func ConfigEqualFold(v string) predicate.ItemSource

ConfigEqualFold applies the EqualFold predicate on the "config" field.

func ConfigGT

func ConfigGT(v string) predicate.ItemSource

ConfigGT applies the GT predicate on the "config" field.

func ConfigGTE

func ConfigGTE(v string) predicate.ItemSource

ConfigGTE applies the GTE predicate on the "config" field.

func ConfigHasPrefix

func ConfigHasPrefix(v string) predicate.ItemSource

ConfigHasPrefix applies the HasPrefix predicate on the "config" field.

func ConfigHasSuffix

func ConfigHasSuffix(v string) predicate.ItemSource

ConfigHasSuffix applies the HasSuffix predicate on the "config" field.

func ConfigIn

func ConfigIn(vs ...string) predicate.ItemSource

ConfigIn applies the In predicate on the "config" field.

func ConfigIsNil

func ConfigIsNil() predicate.ItemSource

ConfigIsNil applies the IsNil predicate on the "config" field.

func ConfigLT

func ConfigLT(v string) predicate.ItemSource

ConfigLT applies the LT predicate on the "config" field.

func ConfigLTE

func ConfigLTE(v string) predicate.ItemSource

ConfigLTE applies the LTE predicate on the "config" field.

func ConfigNEQ

func ConfigNEQ(v string) predicate.ItemSource

ConfigNEQ applies the NEQ predicate on the "config" field.

func ConfigNotIn

func ConfigNotIn(vs ...string) predicate.ItemSource

ConfigNotIn applies the NotIn predicate on the "config" field.

func ConfigNotNil

func ConfigNotNil() predicate.ItemSource

ConfigNotNil applies the NotNil predicate on the "config" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.ItemSource

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ItemSource

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ItemSource

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ItemSource

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ItemSource

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ItemSource

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ItemSource

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

func CreatedAtNotIn

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

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

func DisplayName

func DisplayName(v string) predicate.ItemSource

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.ItemSource

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.ItemSource

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.ItemSource

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.ItemSource

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.ItemSource

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.ItemSource

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.ItemSource

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.ItemSource

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.ItemSource

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.ItemSource

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.ItemSource

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.ItemSource

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.ItemSource

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func Enabled

func Enabled(v bool) predicate.ItemSource

Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.

func EnabledEQ

func EnabledEQ(v bool) predicate.ItemSource

EnabledEQ applies the EQ predicate on the "enabled" field.

func EnabledNEQ

func EnabledNEQ(v bool) predicate.ItemSource

EnabledNEQ applies the NEQ predicate on the "enabled" field.

func HasBacklogItems

func HasBacklogItems() predicate.ItemSource

HasBacklogItems applies the HasEdge predicate on the "backlog_items" edge.

func HasBacklogItemsWith

func HasBacklogItemsWith(preds ...predicate.BacklogItem) predicate.ItemSource

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

func HasSyncEvents

func HasSyncEvents() predicate.ItemSource

HasSyncEvents applies the HasEdge predicate on the "sync_events" edge.

func HasSyncEventsWith

func HasSyncEventsWith(preds ...predicate.SourceSyncEvent) predicate.ItemSource

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.ItemSource

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.ItemSource

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.ItemSource

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.ItemSource

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.ItemSource

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.ItemSource

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ItemSource

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.ItemSource

IDNotIn applies the NotIn predicate on the ID field.

func LastSyncedAt

func LastSyncedAt(v time.Time) predicate.ItemSource

LastSyncedAt applies equality check predicate on the "last_synced_at" field. It's identical to LastSyncedAtEQ.

func LastSyncedAtEQ

func LastSyncedAtEQ(v time.Time) predicate.ItemSource

LastSyncedAtEQ applies the EQ predicate on the "last_synced_at" field.

func LastSyncedAtGT

func LastSyncedAtGT(v time.Time) predicate.ItemSource

LastSyncedAtGT applies the GT predicate on the "last_synced_at" field.

func LastSyncedAtGTE

func LastSyncedAtGTE(v time.Time) predicate.ItemSource

LastSyncedAtGTE applies the GTE predicate on the "last_synced_at" field.

func LastSyncedAtIn

func LastSyncedAtIn(vs ...time.Time) predicate.ItemSource

LastSyncedAtIn applies the In predicate on the "last_synced_at" field.

func LastSyncedAtIsNil

func LastSyncedAtIsNil() predicate.ItemSource

LastSyncedAtIsNil applies the IsNil predicate on the "last_synced_at" field.

func LastSyncedAtLT

func LastSyncedAtLT(v time.Time) predicate.ItemSource

LastSyncedAtLT applies the LT predicate on the "last_synced_at" field.

func LastSyncedAtLTE

func LastSyncedAtLTE(v time.Time) predicate.ItemSource

LastSyncedAtLTE applies the LTE predicate on the "last_synced_at" field.

func LastSyncedAtNEQ

func LastSyncedAtNEQ(v time.Time) predicate.ItemSource

LastSyncedAtNEQ applies the NEQ predicate on the "last_synced_at" field.

func LastSyncedAtNotIn

func LastSyncedAtNotIn(vs ...time.Time) predicate.ItemSource

LastSyncedAtNotIn applies the NotIn predicate on the "last_synced_at" field.

func LastSyncedAtNotNil

func LastSyncedAtNotNil() predicate.ItemSource

LastSyncedAtNotNil applies the NotNil predicate on the "last_synced_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ItemSource) predicate.ItemSource

Or groups predicates with the OR operator between them.

func PluginID

func PluginID(v string) predicate.ItemSource

PluginID applies equality check predicate on the "plugin_id" field. It's identical to PluginIDEQ.

func PluginIDContains

func PluginIDContains(v string) predicate.ItemSource

PluginIDContains applies the Contains predicate on the "plugin_id" field.

func PluginIDContainsFold

func PluginIDContainsFold(v string) predicate.ItemSource

PluginIDContainsFold applies the ContainsFold predicate on the "plugin_id" field.

func PluginIDEQ

func PluginIDEQ(v string) predicate.ItemSource

PluginIDEQ applies the EQ predicate on the "plugin_id" field.

func PluginIDEqualFold

func PluginIDEqualFold(v string) predicate.ItemSource

PluginIDEqualFold applies the EqualFold predicate on the "plugin_id" field.

func PluginIDGT

func PluginIDGT(v string) predicate.ItemSource

PluginIDGT applies the GT predicate on the "plugin_id" field.

func PluginIDGTE

func PluginIDGTE(v string) predicate.ItemSource

PluginIDGTE applies the GTE predicate on the "plugin_id" field.

func PluginIDHasPrefix

func PluginIDHasPrefix(v string) predicate.ItemSource

PluginIDHasPrefix applies the HasPrefix predicate on the "plugin_id" field.

func PluginIDHasSuffix

func PluginIDHasSuffix(v string) predicate.ItemSource

PluginIDHasSuffix applies the HasSuffix predicate on the "plugin_id" field.

func PluginIDIn

func PluginIDIn(vs ...string) predicate.ItemSource

PluginIDIn applies the In predicate on the "plugin_id" field.

func PluginIDLT

func PluginIDLT(v string) predicate.ItemSource

PluginIDLT applies the LT predicate on the "plugin_id" field.

func PluginIDLTE

func PluginIDLTE(v string) predicate.ItemSource

PluginIDLTE applies the LTE predicate on the "plugin_id" field.

func PluginIDNEQ

func PluginIDNEQ(v string) predicate.ItemSource

PluginIDNEQ applies the NEQ predicate on the "plugin_id" field.

func PluginIDNotIn

func PluginIDNotIn(vs ...string) predicate.ItemSource

PluginIDNotIn applies the NotIn predicate on the "plugin_id" field.

func SyncCursor

func SyncCursor(v string) predicate.ItemSource

SyncCursor applies equality check predicate on the "sync_cursor" field. It's identical to SyncCursorEQ.

func SyncCursorContains

func SyncCursorContains(v string) predicate.ItemSource

SyncCursorContains applies the Contains predicate on the "sync_cursor" field.

func SyncCursorContainsFold

func SyncCursorContainsFold(v string) predicate.ItemSource

SyncCursorContainsFold applies the ContainsFold predicate on the "sync_cursor" field.

func SyncCursorEQ

func SyncCursorEQ(v string) predicate.ItemSource

SyncCursorEQ applies the EQ predicate on the "sync_cursor" field.

func SyncCursorEqualFold

func SyncCursorEqualFold(v string) predicate.ItemSource

SyncCursorEqualFold applies the EqualFold predicate on the "sync_cursor" field.

func SyncCursorGT

func SyncCursorGT(v string) predicate.ItemSource

SyncCursorGT applies the GT predicate on the "sync_cursor" field.

func SyncCursorGTE

func SyncCursorGTE(v string) predicate.ItemSource

SyncCursorGTE applies the GTE predicate on the "sync_cursor" field.

func SyncCursorHasPrefix

func SyncCursorHasPrefix(v string) predicate.ItemSource

SyncCursorHasPrefix applies the HasPrefix predicate on the "sync_cursor" field.

func SyncCursorHasSuffix

func SyncCursorHasSuffix(v string) predicate.ItemSource

SyncCursorHasSuffix applies the HasSuffix predicate on the "sync_cursor" field.

func SyncCursorIn

func SyncCursorIn(vs ...string) predicate.ItemSource

SyncCursorIn applies the In predicate on the "sync_cursor" field.

func SyncCursorIsNil

func SyncCursorIsNil() predicate.ItemSource

SyncCursorIsNil applies the IsNil predicate on the "sync_cursor" field.

func SyncCursorLT

func SyncCursorLT(v string) predicate.ItemSource

SyncCursorLT applies the LT predicate on the "sync_cursor" field.

func SyncCursorLTE

func SyncCursorLTE(v string) predicate.ItemSource

SyncCursorLTE applies the LTE predicate on the "sync_cursor" field.

func SyncCursorNEQ

func SyncCursorNEQ(v string) predicate.ItemSource

SyncCursorNEQ applies the NEQ predicate on the "sync_cursor" field.

func SyncCursorNotIn

func SyncCursorNotIn(vs ...string) predicate.ItemSource

SyncCursorNotIn applies the NotIn predicate on the "sync_cursor" field.

func SyncCursorNotNil

func SyncCursorNotNil() predicate.ItemSource

SyncCursorNotNil applies the NotNil predicate on the "sync_cursor" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ItemSource

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ItemSource

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ItemSource

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ItemSource

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ItemSource

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ItemSource

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ItemSource

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

func UpdatedAtNotIn

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

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

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ItemSource queries.

func ByBacklogItems

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

ByBacklogItems orders the results by backlog_items terms.

func ByBacklogItemsCount

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

ByBacklogItemsCount orders the results by backlog_items count.

func ByConfig

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

ByConfig orders the results by the config field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDisplayName

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

ByDisplayName orders the results by the display_name field.

func ByEnabled

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

ByEnabled orders the results by the enabled field.

func ByID

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

ByID orders the results by the id field.

func ByLastSyncedAt

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

ByLastSyncedAt orders the results by the last_synced_at field.

func ByPluginID

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

ByPluginID orders the results by the plugin_id field.

func BySyncCursor

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

BySyncCursor orders the results by the sync_cursor field.

func BySyncEvents

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

BySyncEvents orders the results by sync_events terms.

func BySyncEventsCount

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

BySyncEventsCount orders the results by sync_events count.

func ByUpdatedAt

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