Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SyncMeta) 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 Kind(v string) predicate.SyncMeta
- func KindContains(v string) predicate.SyncMeta
- func KindContainsFold(v string) predicate.SyncMeta
- func KindEQ(v string) predicate.SyncMeta
- func KindEqualFold(v string) predicate.SyncMeta
- func KindGT(v string) predicate.SyncMeta
- func KindGTE(v string) predicate.SyncMeta
- func KindHasPrefix(v string) predicate.SyncMeta
- func KindHasSuffix(v string) predicate.SyncMeta
- func KindIn(vs ...string) predicate.SyncMeta
- func KindLT(v string) predicate.SyncMeta
- func KindLTE(v string) predicate.SyncMeta
- func KindNEQ(v string) predicate.SyncMeta
- func KindNotIn(vs ...string) 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 Provider(v string) predicate.SyncMeta
- func ProviderContains(v string) predicate.SyncMeta
- func ProviderContainsFold(v string) predicate.SyncMeta
- func ProviderEQ(v string) predicate.SyncMeta
- func ProviderEqualFold(v string) predicate.SyncMeta
- func ProviderGT(v string) predicate.SyncMeta
- func ProviderGTE(v string) predicate.SyncMeta
- func ProviderHasPrefix(v string) predicate.SyncMeta
- func ProviderHasSuffix(v string) predicate.SyncMeta
- func ProviderIn(vs ...string) predicate.SyncMeta
- func ProviderLT(v string) predicate.SyncMeta
- func ProviderLTE(v string) predicate.SyncMeta
- func ProviderNEQ(v string) predicate.SyncMeta
- func ProviderNotIn(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 RecordCountLT(v int) predicate.SyncMeta
- func RecordCountLTE(v int) predicate.SyncMeta
- func RecordCountNEQ(v int) predicate.SyncMeta
- func RecordCountNotIn(vs ...int) 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" // 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 ¶
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 )
var Columns = []string{ FieldID, FieldProvider, FieldKind, FieldLastSync, FieldRecordCount, }
Columns holds all SQL columns for syncmeta fields.
Functions ¶
func KindContains ¶
KindContains applies the Contains predicate on the "kind" field.
func KindContainsFold ¶
KindContainsFold applies the ContainsFold predicate on the "kind" field.
func KindEqualFold ¶
KindEqualFold applies the EqualFold predicate on the "kind" field.
func KindHasPrefix ¶
KindHasPrefix applies the HasPrefix predicate on the "kind" field.
func KindHasSuffix ¶
KindHasSuffix applies the HasSuffix predicate on the "kind" 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 Provider ¶
Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.
func ProviderContains ¶
ProviderContains applies the Contains predicate on the "provider" field.
func ProviderContainsFold ¶
ProviderContainsFold applies the ContainsFold predicate on the "provider" field.
func ProviderEQ ¶
ProviderEQ applies the EQ predicate on the "provider" field.
func ProviderEqualFold ¶
ProviderEqualFold applies the EqualFold predicate on the "provider" field.
func ProviderGT ¶
ProviderGT applies the GT predicate on the "provider" field.
func ProviderGTE ¶
ProviderGTE applies the GTE predicate on the "provider" field.
func ProviderHasPrefix ¶
ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.
func ProviderHasSuffix ¶
ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.
func ProviderIn ¶
ProviderIn applies the In predicate on the "provider" field.
func ProviderLT ¶
ProviderLT applies the LT predicate on the "provider" field.
func ProviderLTE ¶
ProviderLTE applies the LTE predicate on the "provider" field.
func ProviderNEQ ¶
ProviderNEQ applies the NEQ predicate on the "provider" field.
func ProviderNotIn ¶
ProviderNotIn applies the NotIn predicate on the "provider" 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 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 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 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.