Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.History) predicate.History
- func CreatedAt(v time.Time) predicate.History
- func CreatedAtEQ(v time.Time) predicate.History
- func CreatedAtGT(v time.Time) predicate.History
- func CreatedAtGTE(v time.Time) predicate.History
- func CreatedAtIn(vs ...time.Time) predicate.History
- func CreatedAtLT(v time.Time) predicate.History
- func CreatedAtLTE(v time.Time) predicate.History
- func CreatedAtNEQ(v time.Time) predicate.History
- func CreatedAtNotIn(vs ...time.Time) predicate.History
- func ID(id int64) predicate.History
- func IDEQ(id int64) predicate.History
- func IDGT(id int64) predicate.History
- func IDGTE(id int64) predicate.History
- func IDIn(ids ...int64) predicate.History
- func IDLT(id int64) predicate.History
- func IDLTE(id int64) predicate.History
- func IDNEQ(id int64) predicate.History
- func IDNotIn(ids ...int64) predicate.History
- func Not(p predicate.History) predicate.History
- func ObjID(v int64) predicate.History
- func ObjIDEQ(v int64) predicate.History
- func ObjIDGT(v int64) predicate.History
- func ObjIDGTE(v int64) predicate.History
- func ObjIDIn(vs ...int64) predicate.History
- func ObjIDLT(v int64) predicate.History
- func ObjIDLTE(v int64) predicate.History
- func ObjIDNEQ(v int64) predicate.History
- func ObjIDNotIn(vs ...int64) predicate.History
- func ObjType(v string) predicate.History
- func ObjTypeContains(v string) predicate.History
- func ObjTypeContainsFold(v string) predicate.History
- func ObjTypeEQ(v string) predicate.History
- func ObjTypeEqualFold(v string) predicate.History
- func ObjTypeGT(v string) predicate.History
- func ObjTypeGTE(v string) predicate.History
- func ObjTypeHasPrefix(v string) predicate.History
- func ObjTypeHasSuffix(v string) predicate.History
- func ObjTypeIn(vs ...string) predicate.History
- func ObjTypeLT(v string) predicate.History
- func ObjTypeLTE(v string) predicate.History
- func ObjTypeNEQ(v string) predicate.History
- func ObjTypeNotIn(vs ...string) predicate.History
- func Or(predicates ...predicate.History) predicate.History
- func UpdatedAt(v time.Time) predicate.History
- func UpdatedAtEQ(v time.Time) predicate.History
- func UpdatedAtGT(v time.Time) predicate.History
- func UpdatedAtGTE(v time.Time) predicate.History
- func UpdatedAtIn(vs ...time.Time) predicate.History
- func UpdatedAtLT(v time.Time) predicate.History
- func UpdatedAtLTE(v time.Time) predicate.History
- func UpdatedAtNEQ(v time.Time) predicate.History
- func UpdatedAtNotIn(vs ...time.Time) predicate.History
- func UserID(v int64) predicate.History
- func UserIDEQ(v int64) predicate.History
- func UserIDGT(v int64) predicate.History
- func UserIDGTE(v int64) predicate.History
- func UserIDIn(vs ...int64) predicate.History
- func UserIDLT(v int64) predicate.History
- func UserIDLTE(v int64) predicate.History
- func UserIDNEQ(v int64) predicate.History
- func UserIDNotIn(vs ...int64) predicate.History
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the history type in the database. Label = "history" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldObjID holds the string denoting the obj_id field in the database. FieldObjID = "obj_id" // FieldObjType holds the string denoting the obj_type field in the database. FieldObjType = "obj_type" // 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 history in the database. Table = "histories" )
Variables ¶
var ( // 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 )
var Columns = []string{ FieldID, FieldUserID, FieldObjID, FieldObjType, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for history 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 ObjID ¶
ObjID applies equality check predicate on the "obj_id" field. It's identical to ObjIDEQ.
func ObjIDNotIn ¶
ObjIDNotIn applies the NotIn predicate on the "obj_id" field.
func ObjType ¶
ObjType applies equality check predicate on the "obj_type" field. It's identical to ObjTypeEQ.
func ObjTypeContains ¶
ObjTypeContains applies the Contains predicate on the "obj_type" field.
func ObjTypeContainsFold ¶
ObjTypeContainsFold applies the ContainsFold predicate on the "obj_type" field.
func ObjTypeEqualFold ¶
ObjTypeEqualFold applies the EqualFold predicate on the "obj_type" field.
func ObjTypeGTE ¶
ObjTypeGTE applies the GTE predicate on the "obj_type" field.
func ObjTypeHasPrefix ¶
ObjTypeHasPrefix applies the HasPrefix predicate on the "obj_type" field.
func ObjTypeHasSuffix ¶
ObjTypeHasSuffix applies the HasSuffix predicate on the "obj_type" field.
func ObjTypeLTE ¶
ObjTypeLTE applies the LTE predicate on the "obj_type" field.
func ObjTypeNEQ ¶
ObjTypeNEQ applies the NEQ predicate on the "obj_type" field.
func ObjTypeNotIn ¶
ObjTypeNotIn applies the NotIn predicate on the "obj_type" 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 UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.