Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Session) predicate.Session
- func CreateTime(v time.Time) predicate.Session
- func CreateTimeEQ(v time.Time) predicate.Session
- func CreateTimeGT(v time.Time) predicate.Session
- func CreateTimeGTE(v time.Time) predicate.Session
- func CreateTimeIn(vs ...time.Time) predicate.Session
- func CreateTimeLT(v time.Time) predicate.Session
- func CreateTimeLTE(v time.Time) predicate.Session
- func CreateTimeNEQ(v time.Time) predicate.Session
- func CreateTimeNotIn(vs ...time.Time) predicate.Session
- func ExpiresAt(v time.Time) predicate.Session
- func ExpiresAtEQ(v time.Time) predicate.Session
- func ExpiresAtGT(v time.Time) predicate.Session
- func ExpiresAtGTE(v time.Time) predicate.Session
- func ExpiresAtIn(vs ...time.Time) predicate.Session
- func ExpiresAtLT(v time.Time) predicate.Session
- func ExpiresAtLTE(v time.Time) predicate.Session
- func ExpiresAtNEQ(v time.Time) predicate.Session
- func ExpiresAtNotIn(vs ...time.Time) predicate.Session
- func ID(id int) predicate.Session
- func IDEQ(id int) predicate.Session
- func IDGT(id int) predicate.Session
- func IDGTE(id int) predicate.Session
- func IDIn(ids ...int) predicate.Session
- func IDLT(id int) predicate.Session
- func IDLTE(id int) predicate.Session
- func IDNEQ(id int) predicate.Session
- func IDNotIn(ids ...int) predicate.Session
- func Not(p predicate.Session) predicate.Session
- func Or(predicates ...predicate.Session) predicate.Session
- func SessionID(v string) predicate.Session
- func SessionIDContains(v string) predicate.Session
- func SessionIDContainsFold(v string) predicate.Session
- func SessionIDEQ(v string) predicate.Session
- func SessionIDEqualFold(v string) predicate.Session
- func SessionIDGT(v string) predicate.Session
- func SessionIDGTE(v string) predicate.Session
- func SessionIDHasPrefix(v string) predicate.Session
- func SessionIDHasSuffix(v string) predicate.Session
- func SessionIDIn(vs ...string) predicate.Session
- func SessionIDLT(v string) predicate.Session
- func SessionIDLTE(v string) predicate.Session
- func SessionIDNEQ(v string) predicate.Session
- func SessionIDNotIn(vs ...string) predicate.Session
- func SourceEQ(v Source) predicate.Session
- func SourceIn(vs ...Source) predicate.Session
- func SourceNEQ(v Source) predicate.Session
- func SourceNotIn(vs ...Source) predicate.Session
- func SourceValidator(s Source) error
- func UpdateTime(v time.Time) predicate.Session
- func UpdateTimeEQ(v time.Time) predicate.Session
- func UpdateTimeGT(v time.Time) predicate.Session
- func UpdateTimeGTE(v time.Time) predicate.Session
- func UpdateTimeIn(vs ...time.Time) predicate.Session
- func UpdateTimeLT(v time.Time) predicate.Session
- func UpdateTimeLTE(v time.Time) predicate.Session
- func UpdateTimeNEQ(v time.Time) predicate.Session
- func UpdateTimeNotIn(vs ...time.Time) predicate.Session
- func UserID(v string) predicate.Session
- func UserIDContains(v string) predicate.Session
- func UserIDContainsFold(v string) predicate.Session
- func UserIDEQ(v string) predicate.Session
- func UserIDEqualFold(v string) predicate.Session
- func UserIDGT(v string) predicate.Session
- func UserIDGTE(v string) predicate.Session
- func UserIDHasPrefix(v string) predicate.Session
- func UserIDHasSuffix(v string) predicate.Session
- func UserIDIn(vs ...string) predicate.Session
- func UserIDLT(v string) predicate.Session
- func UserIDLTE(v string) predicate.Session
- func UserIDNEQ(v string) predicate.Session
- func UserIDNotIn(vs ...string) predicate.Session
- type Source
Constants ¶
const ( // Label holds the string label denoting the session type in the database. Label = "session" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldSessionID holds the string denoting the session_id field in the database. FieldSessionID = "session_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldSource holds the string denoting the source field in the database. FieldSource = "source" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // Table holds the table name of the session in the database. Table = "sessions" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the create_time field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the update_time field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the update_time field. UpdateDefaultUpdateTime func() time.Time // DefaultExpiresAt holds the default value on creation for the expires_at field. DefaultExpiresAt func() time.Time )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldSessionID, FieldUserID, FieldSource, FieldExpiresAt, }
Columns holds all SQL columns for session fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func SessionID ¶
SessionID applies equality check predicate on the "session_id" field. It's identical to SessionIDEQ.
func SessionIDContains ¶
SessionIDContains applies the Contains predicate on the "session_id" field.
func SessionIDContainsFold ¶
SessionIDContainsFold applies the ContainsFold predicate on the "session_id" field.
func SessionIDEQ ¶
SessionIDEQ applies the EQ predicate on the "session_id" field.
func SessionIDEqualFold ¶
SessionIDEqualFold applies the EqualFold predicate on the "session_id" field.
func SessionIDGT ¶
SessionIDGT applies the GT predicate on the "session_id" field.
func SessionIDGTE ¶
SessionIDGTE applies the GTE predicate on the "session_id" field.
func SessionIDHasPrefix ¶
SessionIDHasPrefix applies the HasPrefix predicate on the "session_id" field.
func SessionIDHasSuffix ¶
SessionIDHasSuffix applies the HasSuffix predicate on the "session_id" field.
func SessionIDIn ¶
SessionIDIn applies the In predicate on the "session_id" field.
func SessionIDLT ¶
SessionIDLT applies the LT predicate on the "session_id" field.
func SessionIDLTE ¶
SessionIDLTE applies the LTE predicate on the "session_id" field.
func SessionIDNEQ ¶
SessionIDNEQ applies the NEQ predicate on the "session_id" field.
func SessionIDNotIn ¶
SessionIDNotIn applies the NotIn predicate on the "session_id" field.
func SourceNotIn ¶
SourceNotIn applies the NotIn predicate on the "source" field.
func SourceValidator ¶
SourceValidator is a validator for the "source" field enum values. It is called by the builders before save.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEqualFold ¶
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDHasPrefix ¶
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.