Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Data) predicate.Data
- func CreatedAt(v time.Time) predicate.Data
- func CreatedAtEQ(v time.Time) predicate.Data
- func CreatedAtGT(v time.Time) predicate.Data
- func CreatedAtGTE(v time.Time) predicate.Data
- func CreatedAtIn(vs ...time.Time) predicate.Data
- func CreatedAtLT(v time.Time) predicate.Data
- func CreatedAtLTE(v time.Time) predicate.Data
- func CreatedAtNEQ(v time.Time) predicate.Data
- func CreatedAtNotIn(vs ...time.Time) predicate.Data
- func ID(id int64) predicate.Data
- func IDEQ(id int64) predicate.Data
- func IDGT(id int64) predicate.Data
- func IDGTE(id int64) predicate.Data
- func IDIn(ids ...int64) predicate.Data
- func IDLT(id int64) predicate.Data
- func IDLTE(id int64) predicate.Data
- func IDNEQ(id int64) predicate.Data
- func IDNotIn(ids ...int64) predicate.Data
- func Key(v string) predicate.Data
- func KeyContains(v string) predicate.Data
- func KeyContainsFold(v string) predicate.Data
- func KeyEQ(v string) predicate.Data
- func KeyEqualFold(v string) predicate.Data
- func KeyGT(v string) predicate.Data
- func KeyGTE(v string) predicate.Data
- func KeyHasPrefix(v string) predicate.Data
- func KeyHasSuffix(v string) predicate.Data
- func KeyIn(vs ...string) predicate.Data
- func KeyLT(v string) predicate.Data
- func KeyLTE(v string) predicate.Data
- func KeyNEQ(v string) predicate.Data
- func KeyNotIn(vs ...string) predicate.Data
- func Not(p predicate.Data) predicate.Data
- func Or(predicates ...predicate.Data) predicate.Data
- func Topic(v string) predicate.Data
- func TopicContains(v string) predicate.Data
- func TopicContainsFold(v string) predicate.Data
- func TopicEQ(v string) predicate.Data
- func TopicEqualFold(v string) predicate.Data
- func TopicGT(v string) predicate.Data
- func TopicGTE(v string) predicate.Data
- func TopicHasPrefix(v string) predicate.Data
- func TopicHasSuffix(v string) predicate.Data
- func TopicIn(vs ...string) predicate.Data
- func TopicLT(v string) predicate.Data
- func TopicLTE(v string) predicate.Data
- func TopicNEQ(v string) predicate.Data
- func TopicNotIn(vs ...string) predicate.Data
- func UID(v string) predicate.Data
- func UIDContains(v string) predicate.Data
- func UIDContainsFold(v string) predicate.Data
- func UIDEQ(v string) predicate.Data
- func UIDEqualFold(v string) predicate.Data
- func UIDGT(v string) predicate.Data
- func UIDGTE(v string) predicate.Data
- func UIDHasPrefix(v string) predicate.Data
- func UIDHasSuffix(v string) predicate.Data
- func UIDIn(vs ...string) predicate.Data
- func UIDLT(v string) predicate.Data
- func UIDLTE(v string) predicate.Data
- func UIDNEQ(v string) predicate.Data
- func UIDNotIn(vs ...string) predicate.Data
- func UpdatedAt(v time.Time) predicate.Data
- func UpdatedAtEQ(v time.Time) predicate.Data
- func UpdatedAtGT(v time.Time) predicate.Data
- func UpdatedAtGTE(v time.Time) predicate.Data
- func UpdatedAtIn(vs ...time.Time) predicate.Data
- func UpdatedAtLT(v time.Time) predicate.Data
- func UpdatedAtLTE(v time.Time) predicate.Data
- func UpdatedAtNEQ(v time.Time) predicate.Data
- func UpdatedAtNotIn(vs ...time.Time) predicate.Data
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKey(opts ...sql.OrderTermOption) OrderOption
- func ByTopic(opts ...sql.OrderTermOption) OrderOption
- func ByUID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the data type in the database. Label = "data" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUID holds the string denoting the uid field in the database. FieldUID = "uid" // FieldTopic holds the string denoting the topic field in the database. FieldTopic = "topic" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // 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" // Table holds the table name of the data in the database. Table = "data" )
Variables ¶
var ( // UIDValidator is a validator for the "uid" field. It is called by the builders before save. UIDValidator func(string) error // TopicValidator is a validator for the "topic" field. It is called by the builders before save. TopicValidator func(string) error // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error // 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 )
var Columns = []string{ FieldID, FieldUID, FieldTopic, FieldKey, FieldValue, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for data fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func Topic ¶
Topic applies equality check predicate on the "topic" field. It's identical to TopicEQ.
func TopicContains ¶
TopicContains applies the Contains predicate on the "topic" field.
func TopicContainsFold ¶
TopicContainsFold applies the ContainsFold predicate on the "topic" field.
func TopicEqualFold ¶
TopicEqualFold applies the EqualFold predicate on the "topic" field.
func TopicHasPrefix ¶
TopicHasPrefix applies the HasPrefix predicate on the "topic" field.
func TopicHasSuffix ¶
TopicHasSuffix applies the HasSuffix predicate on the "topic" field.
func TopicNotIn ¶
TopicNotIn applies the NotIn predicate on the "topic" field.
func UIDContains ¶
UIDContains applies the Contains predicate on the "uid" field.
func UIDContainsFold ¶
UIDContainsFold applies the ContainsFold predicate on the "uid" field.
func UIDEqualFold ¶
UIDEqualFold applies the EqualFold predicate on the "uid" field.
func UIDHasPrefix ¶
UIDHasPrefix applies the HasPrefix predicate on the "uid" field.
func UIDHasSuffix ¶
UIDHasSuffix applies the HasSuffix predicate on the "uid" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Data queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKey ¶
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key field.
func ByTopic ¶
func ByTopic(opts ...sql.OrderTermOption) OrderOption
ByTopic orders the results by the topic field.
func ByUID ¶
func ByUID(opts ...sql.OrderTermOption) OrderOption
ByUID orders the results by the uid field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.