syncmeta

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 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"
	// FieldEntity holds the string denoting the entity field in the database.
	FieldEntity = "entity"
	// FieldProduct holds the string denoting the product field in the database.
	FieldProduct = "product"
	// 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

Columns holds all SQL columns for syncmeta fields.

View Source
var (
	// DefaultRecordCount holds the default value on creation for the "record_count" field.
	DefaultRecordCount int
)

Functions

func And

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

And groups predicates with the AND operator between them.

func Entity

func Entity(v string) predicate.SyncMeta

Entity applies equality check predicate on the "entity" field. It's identical to EntityEQ.

func EntityContains

func EntityContains(v string) predicate.SyncMeta

EntityContains applies the Contains predicate on the "entity" field.

func EntityContainsFold

func EntityContainsFold(v string) predicate.SyncMeta

EntityContainsFold applies the ContainsFold predicate on the "entity" field.

func EntityEQ

func EntityEQ(v string) predicate.SyncMeta

EntityEQ applies the EQ predicate on the "entity" field.

func EntityEqualFold

func EntityEqualFold(v string) predicate.SyncMeta

EntityEqualFold applies the EqualFold predicate on the "entity" field.

func EntityGT

func EntityGT(v string) predicate.SyncMeta

EntityGT applies the GT predicate on the "entity" field.

func EntityGTE

func EntityGTE(v string) predicate.SyncMeta

EntityGTE applies the GTE predicate on the "entity" field.

func EntityHasPrefix

func EntityHasPrefix(v string) predicate.SyncMeta

EntityHasPrefix applies the HasPrefix predicate on the "entity" field.

func EntityHasSuffix

func EntityHasSuffix(v string) predicate.SyncMeta

EntityHasSuffix applies the HasSuffix predicate on the "entity" field.

func EntityIn

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

EntityIn applies the In predicate on the "entity" field.

func EntityLT

func EntityLT(v string) predicate.SyncMeta

EntityLT applies the LT predicate on the "entity" field.

func EntityLTE

func EntityLTE(v string) predicate.SyncMeta

EntityLTE applies the LTE predicate on the "entity" field.

func EntityNEQ

func EntityNEQ(v string) predicate.SyncMeta

EntityNEQ applies the NEQ predicate on the "entity" field.

func EntityNotIn

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

EntityNotIn applies the NotIn predicate on the "entity" field.

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 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 Product

func Product(v string) predicate.SyncMeta

Product applies equality check predicate on the "product" field. It's identical to ProductEQ.

func ProductContains

func ProductContains(v string) predicate.SyncMeta

ProductContains applies the Contains predicate on the "product" field.

func ProductContainsFold

func ProductContainsFold(v string) predicate.SyncMeta

ProductContainsFold applies the ContainsFold predicate on the "product" field.

func ProductEQ

func ProductEQ(v string) predicate.SyncMeta

ProductEQ applies the EQ predicate on the "product" field.

func ProductEqualFold

func ProductEqualFold(v string) predicate.SyncMeta

ProductEqualFold applies the EqualFold predicate on the "product" field.

func ProductGT

func ProductGT(v string) predicate.SyncMeta

ProductGT applies the GT predicate on the "product" field.

func ProductGTE

func ProductGTE(v string) predicate.SyncMeta

ProductGTE applies the GTE predicate on the "product" field.

func ProductHasPrefix

func ProductHasPrefix(v string) predicate.SyncMeta

ProductHasPrefix applies the HasPrefix predicate on the "product" field.

func ProductHasSuffix

func ProductHasSuffix(v string) predicate.SyncMeta

ProductHasSuffix applies the HasSuffix predicate on the "product" field.

func ProductIn

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

ProductIn applies the In predicate on the "product" field.

func ProductLT

func ProductLT(v string) predicate.SyncMeta

ProductLT applies the LT predicate on the "product" field.

func ProductLTE

func ProductLTE(v string) predicate.SyncMeta

ProductLTE applies the LTE predicate on the "product" field.

func ProductNEQ

func ProductNEQ(v string) predicate.SyncMeta

ProductNEQ applies the NEQ predicate on the "product" field.

func ProductNotIn

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

ProductNotIn applies the NotIn predicate on the "product" 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 RecordCountIsNil

func RecordCountIsNil() predicate.SyncMeta

RecordCountIsNil applies the IsNil 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 RecordCountNotNil

func RecordCountNotNil() predicate.SyncMeta

RecordCountNotNil applies the NotNil 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 ByEntity

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

ByEntity orders the results by the entity field.

func ByID

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

ByID orders the results by the id field.

func ByLastSync

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

ByLastSync orders the results by the last_sync field.

func ByProduct

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

ByProduct orders the results by the product 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