syncmeta

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the syncmeta type in the database.
	Label = "sync_meta"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldProvider holds the string denoting the provider field in the database.
	FieldProvider = "provider"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldLastSync holds the string denoting the last_sync field in the database.
	FieldLastSync = "last_sync"
	// FieldRecordCount holds the string denoting the record_count field in the database.
	FieldRecordCount = "record_count"
	// Table holds the table name of the syncmeta in the database.
	Table = "sync_meta"
)

Variables

View Source
var (
	// ProviderValidator is a validator for the "provider" field. It is called by the builders before save.
	ProviderValidator func(string) error
	// KindValidator is a validator for the "kind" field. It is called by the builders before save.
	KindValidator func(string) error
	// DefaultRecordCount holds the default value on creation for the "record_count" field.
	DefaultRecordCount int
)

Columns holds all SQL columns for syncmeta fields.

Functions

func And

func And(predicates ...predicate.SyncMeta) predicate.SyncMeta

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.SyncMeta

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.SyncMeta

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.SyncMeta

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.SyncMeta

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.SyncMeta

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.SyncMeta

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.SyncMeta

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.SyncMeta

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.SyncMeta

IDNotIn applies the NotIn predicate on the ID field.

func Kind

func Kind(v string) predicate.SyncMeta

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

func KindContains(v string) predicate.SyncMeta

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v string) predicate.SyncMeta

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

func KindEQ(v string) predicate.SyncMeta

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

func KindEqualFold(v string) predicate.SyncMeta

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

func KindGT(v string) predicate.SyncMeta

KindGT applies the GT predicate on the "kind" field.

func KindGTE

func KindGTE(v string) predicate.SyncMeta

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

func KindHasPrefix(v string) predicate.SyncMeta

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

func KindHasSuffix(v string) predicate.SyncMeta

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

func KindIn(vs ...string) predicate.SyncMeta

KindIn applies the In predicate on the "kind" field.

func KindLT

func KindLT(v string) predicate.SyncMeta

KindLT applies the LT predicate on the "kind" field.

func KindLTE

func KindLTE(v string) predicate.SyncMeta

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

func KindNEQ(v string) predicate.SyncMeta

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...string) predicate.SyncMeta

KindNotIn applies the NotIn predicate on the "kind" field.

func LastSync

func LastSync(v time.Time) predicate.SyncMeta

LastSync applies equality check predicate on the "last_sync" field. It's identical to LastSyncEQ.

func LastSyncEQ

func LastSyncEQ(v time.Time) predicate.SyncMeta

LastSyncEQ applies the EQ predicate on the "last_sync" field.

func LastSyncGT

func LastSyncGT(v time.Time) predicate.SyncMeta

LastSyncGT applies the GT predicate on the "last_sync" field.

func LastSyncGTE

func LastSyncGTE(v time.Time) predicate.SyncMeta

LastSyncGTE applies the GTE predicate on the "last_sync" field.

func LastSyncIn

func LastSyncIn(vs ...time.Time) predicate.SyncMeta

LastSyncIn applies the In predicate on the "last_sync" field.

func LastSyncLT

func LastSyncLT(v time.Time) predicate.SyncMeta

LastSyncLT applies the LT predicate on the "last_sync" field.

func LastSyncLTE

func LastSyncLTE(v time.Time) predicate.SyncMeta

LastSyncLTE applies the LTE predicate on the "last_sync" field.

func LastSyncNEQ

func LastSyncNEQ(v time.Time) predicate.SyncMeta

LastSyncNEQ applies the NEQ predicate on the "last_sync" field.

func LastSyncNotIn

func LastSyncNotIn(vs ...time.Time) predicate.SyncMeta

LastSyncNotIn applies the NotIn predicate on the "last_sync" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.SyncMeta) predicate.SyncMeta

Or groups predicates with the OR operator between them.

func Provider

func Provider(v string) predicate.SyncMeta

Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.

func ProviderContains

func ProviderContains(v string) predicate.SyncMeta

ProviderContains applies the Contains predicate on the "provider" field.

func ProviderContainsFold

func ProviderContainsFold(v string) predicate.SyncMeta

ProviderContainsFold applies the ContainsFold predicate on the "provider" field.

func ProviderEQ

func ProviderEQ(v string) predicate.SyncMeta

ProviderEQ applies the EQ predicate on the "provider" field.

func ProviderEqualFold

func ProviderEqualFold(v string) predicate.SyncMeta

ProviderEqualFold applies the EqualFold predicate on the "provider" field.

func ProviderGT

func ProviderGT(v string) predicate.SyncMeta

ProviderGT applies the GT predicate on the "provider" field.

func ProviderGTE

func ProviderGTE(v string) predicate.SyncMeta

ProviderGTE applies the GTE predicate on the "provider" field.

func ProviderHasPrefix

func ProviderHasPrefix(v string) predicate.SyncMeta

ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.

func ProviderHasSuffix

func ProviderHasSuffix(v string) predicate.SyncMeta

ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.

func ProviderIn

func ProviderIn(vs ...string) predicate.SyncMeta

ProviderIn applies the In predicate on the "provider" field.

func ProviderLT

func ProviderLT(v string) predicate.SyncMeta

ProviderLT applies the LT predicate on the "provider" field.

func ProviderLTE

func ProviderLTE(v string) predicate.SyncMeta

ProviderLTE applies the LTE predicate on the "provider" field.

func ProviderNEQ

func ProviderNEQ(v string) predicate.SyncMeta

ProviderNEQ applies the NEQ predicate on the "provider" field.

func ProviderNotIn

func ProviderNotIn(vs ...string) predicate.SyncMeta

ProviderNotIn applies the NotIn predicate on the "provider" field.

func RecordCount

func RecordCount(v int) predicate.SyncMeta

RecordCount applies equality check predicate on the "record_count" field. It's identical to RecordCountEQ.

func RecordCountEQ

func RecordCountEQ(v int) predicate.SyncMeta

RecordCountEQ applies the EQ predicate on the "record_count" field.

func RecordCountGT

func RecordCountGT(v int) predicate.SyncMeta

RecordCountGT applies the GT predicate on the "record_count" field.

func RecordCountGTE

func RecordCountGTE(v int) predicate.SyncMeta

RecordCountGTE applies the GTE predicate on the "record_count" field.

func RecordCountIn

func RecordCountIn(vs ...int) predicate.SyncMeta

RecordCountIn applies the In predicate on the "record_count" field.

func RecordCountLT

func RecordCountLT(v int) predicate.SyncMeta

RecordCountLT applies the LT predicate on the "record_count" field.

func RecordCountLTE

func RecordCountLTE(v int) predicate.SyncMeta

RecordCountLTE applies the LTE predicate on the "record_count" field.

func RecordCountNEQ

func RecordCountNEQ(v int) predicate.SyncMeta

RecordCountNEQ applies the NEQ predicate on the "record_count" field.

func RecordCountNotIn

func RecordCountNotIn(vs ...int) predicate.SyncMeta

RecordCountNotIn applies the NotIn predicate on the "record_count" 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 SyncMeta queries.

func ByID

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

ByID orders the results by the id field.

func ByKind

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

ByKind orders the results by the kind field.

func ByLastSync

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

ByLastSync orders the results by the last_sync field.

func ByProvider

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

ByProvider orders the results by the provider field.

func ByRecordCount

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

ByRecordCount orders the results by the record_count field.

Jump to

Keyboard shortcuts

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