Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SyncMeta) predicate.SyncMeta
- func Entity(v string) predicate.SyncMeta
- func EntityContains(v string) predicate.SyncMeta
- func EntityContainsFold(v string) predicate.SyncMeta
- func EntityEQ(v string) predicate.SyncMeta
- func EntityEqualFold(v string) predicate.SyncMeta
- func EntityGT(v string) predicate.SyncMeta
- func EntityGTE(v string) predicate.SyncMeta
- func EntityHasPrefix(v string) predicate.SyncMeta
- func EntityHasSuffix(v string) predicate.SyncMeta
- func EntityIn(vs ...string) predicate.SyncMeta
- func EntityLT(v string) predicate.SyncMeta
- func EntityLTE(v string) predicate.SyncMeta
- func EntityNEQ(v string) predicate.SyncMeta
- func EntityNotIn(vs ...string) predicate.SyncMeta
- func ID(id int) predicate.SyncMeta
- func IDEQ(id int) predicate.SyncMeta
- func IDGT(id int) predicate.SyncMeta
- func IDGTE(id int) predicate.SyncMeta
- func IDIn(ids ...int) predicate.SyncMeta
- func IDLT(id int) predicate.SyncMeta
- func IDLTE(id int) predicate.SyncMeta
- func IDNEQ(id int) predicate.SyncMeta
- func IDNotIn(ids ...int) predicate.SyncMeta
- func LastSync(v time.Time) predicate.SyncMeta
- func LastSyncEQ(v time.Time) predicate.SyncMeta
- func LastSyncGT(v time.Time) predicate.SyncMeta
- func LastSyncGTE(v time.Time) predicate.SyncMeta
- func LastSyncIn(vs ...time.Time) predicate.SyncMeta
- func LastSyncLT(v time.Time) predicate.SyncMeta
- func LastSyncLTE(v time.Time) predicate.SyncMeta
- func LastSyncNEQ(v time.Time) predicate.SyncMeta
- func LastSyncNotIn(vs ...time.Time) predicate.SyncMeta
- func Not(p predicate.SyncMeta) predicate.SyncMeta
- func Or(predicates ...predicate.SyncMeta) predicate.SyncMeta
- func Product(v string) predicate.SyncMeta
- func ProductContains(v string) predicate.SyncMeta
- func ProductContainsFold(v string) predicate.SyncMeta
- func ProductEQ(v string) predicate.SyncMeta
- func ProductEqualFold(v string) predicate.SyncMeta
- func ProductGT(v string) predicate.SyncMeta
- func ProductGTE(v string) predicate.SyncMeta
- func ProductHasPrefix(v string) predicate.SyncMeta
- func ProductHasSuffix(v string) predicate.SyncMeta
- func ProductIn(vs ...string) predicate.SyncMeta
- func ProductLT(v string) predicate.SyncMeta
- func ProductLTE(v string) predicate.SyncMeta
- func ProductNEQ(v string) predicate.SyncMeta
- func ProductNotIn(vs ...string) predicate.SyncMeta
- func RecordCount(v int) predicate.SyncMeta
- func RecordCountEQ(v int) predicate.SyncMeta
- func RecordCountGT(v int) predicate.SyncMeta
- func RecordCountGTE(v int) predicate.SyncMeta
- func RecordCountIn(vs ...int) predicate.SyncMeta
- func RecordCountIsNil() predicate.SyncMeta
- func RecordCountLT(v int) predicate.SyncMeta
- func RecordCountLTE(v int) predicate.SyncMeta
- func RecordCountNEQ(v int) predicate.SyncMeta
- func RecordCountNotIn(vs ...int) predicate.SyncMeta
- func RecordCountNotNil() predicate.SyncMeta
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldEntity, FieldProduct, FieldLastSync, FieldRecordCount, }
Columns holds all SQL columns for syncmeta fields.
var ( // DefaultRecordCount holds the default value on creation for the "record_count" field. DefaultRecordCount int )
Functions ¶
func Entity ¶
Entity applies equality check predicate on the "entity" field. It's identical to EntityEQ.
func EntityContains ¶
EntityContains applies the Contains predicate on the "entity" field.
func EntityContainsFold ¶
EntityContainsFold applies the ContainsFold predicate on the "entity" field.
func EntityEqualFold ¶
EntityEqualFold applies the EqualFold predicate on the "entity" field.
func EntityHasPrefix ¶
EntityHasPrefix applies the HasPrefix predicate on the "entity" field.
func EntityHasSuffix ¶
EntityHasSuffix applies the HasSuffix predicate on the "entity" field.
func EntityNotIn ¶
EntityNotIn applies the NotIn predicate on the "entity" field.
func LastSync ¶
LastSync applies equality check predicate on the "last_sync" field. It's identical to LastSyncEQ.
func LastSyncEQ ¶
LastSyncEQ applies the EQ predicate on the "last_sync" field.
func LastSyncGT ¶
LastSyncGT applies the GT predicate on the "last_sync" field.
func LastSyncGTE ¶
LastSyncGTE applies the GTE predicate on the "last_sync" field.
func LastSyncIn ¶
LastSyncIn applies the In predicate on the "last_sync" field.
func LastSyncLT ¶
LastSyncLT applies the LT predicate on the "last_sync" field.
func LastSyncLTE ¶
LastSyncLTE applies the LTE predicate on the "last_sync" field.
func LastSyncNEQ ¶
LastSyncNEQ applies the NEQ predicate on the "last_sync" field.
func LastSyncNotIn ¶
LastSyncNotIn applies the NotIn predicate on the "last_sync" field.
func Product ¶
Product applies equality check predicate on the "product" field. It's identical to ProductEQ.
func ProductContains ¶
ProductContains applies the Contains predicate on the "product" field.
func ProductContainsFold ¶
ProductContainsFold applies the ContainsFold predicate on the "product" field.
func ProductEqualFold ¶
ProductEqualFold applies the EqualFold predicate on the "product" field.
func ProductGTE ¶
ProductGTE applies the GTE predicate on the "product" field.
func ProductHasPrefix ¶
ProductHasPrefix applies the HasPrefix predicate on the "product" field.
func ProductHasSuffix ¶
ProductHasSuffix applies the HasSuffix predicate on the "product" field.
func ProductLTE ¶
ProductLTE applies the LTE predicate on the "product" field.
func ProductNEQ ¶
ProductNEQ applies the NEQ predicate on the "product" field.
func ProductNotIn ¶
ProductNotIn applies the NotIn predicate on the "product" field.
func RecordCount ¶
RecordCount applies equality check predicate on the "record_count" field. It's identical to RecordCountEQ.
func RecordCountEQ ¶
RecordCountEQ applies the EQ predicate on the "record_count" field.
func RecordCountGT ¶
RecordCountGT applies the GT predicate on the "record_count" field.
func RecordCountGTE ¶
RecordCountGTE applies the GTE predicate on the "record_count" field.
func RecordCountIn ¶
RecordCountIn applies the In predicate on the "record_count" field.
func RecordCountIsNil ¶
RecordCountIsNil applies the IsNil predicate on the "record_count" field.
func RecordCountLT ¶
RecordCountLT applies the LT predicate on the "record_count" field.
func RecordCountLTE ¶
RecordCountLTE applies the LTE predicate on the "record_count" field.
func RecordCountNEQ ¶
RecordCountNEQ applies the NEQ predicate on the "record_count" field.
func RecordCountNotIn ¶
RecordCountNotIn applies the NotIn predicate on the "record_count" field.
func RecordCountNotNil ¶
RecordCountNotNil applies the NotNil predicate on the "record_count" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.