Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Session) predicate.Session
- func Created(v time.Time) predicate.Session
- func CreatedEQ(v time.Time) predicate.Session
- func CreatedGT(v time.Time) predicate.Session
- func CreatedGTE(v time.Time) predicate.Session
- func CreatedIn(vs ...time.Time) predicate.Session
- func CreatedLT(v time.Time) predicate.Session
- func CreatedLTE(v time.Time) predicate.Session
- func CreatedNEQ(v time.Time) predicate.Session
- func CreatedNotIn(vs ...time.Time) predicate.Session
- func ID(id uuid.UUID) predicate.Session
- func IDEQ(id uuid.UUID) predicate.Session
- func IDGT(id uuid.UUID) predicate.Session
- func IDGTE(id uuid.UUID) predicate.Session
- func IDIn(ids ...uuid.UUID) predicate.Session
- func IDLT(id uuid.UUID) predicate.Session
- func IDLTE(id uuid.UUID) predicate.Session
- func IDNEQ(id uuid.UUID) predicate.Session
- func IDNotIn(ids ...uuid.UUID) predicate.Session
- func Not(p predicate.Session) predicate.Session
- func Or(predicates ...predicate.Session) predicate.Session
- func Period(v time.Time) predicate.Session
- func PeriodEQ(v time.Time) predicate.Session
- func PeriodGT(v time.Time) predicate.Session
- func PeriodGTE(v time.Time) predicate.Session
- func PeriodIn(vs ...time.Time) predicate.Session
- func PeriodLT(v time.Time) predicate.Session
- func PeriodLTE(v time.Time) predicate.Session
- func PeriodNEQ(v time.Time) predicate.Session
- func PeriodNotIn(vs ...time.Time) predicate.Session
- func UserID(v uint32) predicate.Session
- func UserIDEQ(v uint32) predicate.Session
- func UserIDGT(v uint32) predicate.Session
- func UserIDGTE(v uint32) predicate.Session
- func UserIDIn(vs ...uint32) predicate.Session
- func UserIDLT(v uint32) predicate.Session
- func UserIDLTE(v uint32) predicate.Session
- func UserIDNEQ(v uint32) predicate.Session
- func UserIDNotIn(vs ...uint32) predicate.Session
- func ValidColumn(column string) bool
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 = "session_token" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldCreated holds the string denoting the created field in the database. FieldCreated = "created" // FieldPeriod holds the string denoting the period field in the database. FieldPeriod = "period" // Table holds the table name of the session in the database. Table = "sessions" )
Variables ¶
var ( // DefaultCreated holds the default value on creation for the "created" field. DefaultCreated func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldUserID, FieldCreated, FieldPeriod, }
Columns holds all SQL columns for session fields.
Functions ¶
func Created ¶
Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
func CreatedGTE ¶
CreatedGTE applies the GTE predicate on the "created" field.
func CreatedLTE ¶
CreatedLTE applies the LTE predicate on the "created" field.
func CreatedNEQ ¶
CreatedNEQ applies the NEQ predicate on the "created" field.
func CreatedNotIn ¶
CreatedNotIn applies the NotIn predicate on the "created" field.
func Period ¶
Period applies equality check predicate on the "period" field. It's identical to PeriodEQ.
func PeriodNotIn ¶
PeriodNotIn applies the NotIn predicate on the "period" 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.