Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Session) predicate.Session
- func CreatedAt(v int64) predicate.Session
- func CreatedAtEQ(v int64) predicate.Session
- func CreatedAtGT(v int64) predicate.Session
- func CreatedAtGTE(v int64) predicate.Session
- func CreatedAtIn(vs ...int64) predicate.Session
- func CreatedAtLT(v int64) predicate.Session
- func CreatedAtLTE(v int64) predicate.Session
- func CreatedAtNEQ(v int64) predicate.Session
- func CreatedAtNotIn(vs ...int64) predicate.Session
- func ExpiresAt(v int64) predicate.Session
- func ExpiresAtEQ(v int64) predicate.Session
- func ExpiresAtGT(v int64) predicate.Session
- func ExpiresAtGTE(v int64) predicate.Session
- func ExpiresAtIn(vs ...int64) predicate.Session
- func ExpiresAtLT(v int64) predicate.Session
- func ExpiresAtLTE(v int64) predicate.Session
- func ExpiresAtNEQ(v int64) predicate.Session
- func ExpiresAtNotIn(vs ...int64) predicate.Session
- func HasLogin() predicate.Session
- func HasLoginWith(preds ...predicate.User) predicate.Session
- func ID(id string) predicate.Session
- func IDEQ(id string) predicate.Session
- func IDGT(id string) predicate.Session
- func IDGTE(id string) predicate.Session
- func IDIn(ids ...string) predicate.Session
- func IDLT(id string) predicate.Session
- func IDLTE(id string) predicate.Session
- func IDNEQ(id string) predicate.Session
- func IDNotIn(ids ...string) predicate.Session
- func Not(p predicate.Session) predicate.Session
- func Or(predicates ...predicate.Session) predicate.Session
- func Token(v string) predicate.Session
- func TokenContains(v string) predicate.Session
- func TokenContainsFold(v string) predicate.Session
- func TokenEQ(v string) predicate.Session
- func TokenEqualFold(v string) predicate.Session
- func TokenGT(v string) predicate.Session
- func TokenGTE(v string) predicate.Session
- func TokenHasPrefix(v string) predicate.Session
- func TokenHasSuffix(v string) predicate.Session
- func TokenIn(vs ...string) predicate.Session
- func TokenLT(v string) predicate.Session
- func TokenLTE(v string) predicate.Session
- func TokenNEQ(v string) predicate.Session
- func TokenNotIn(vs ...string) predicate.Session
- func UserID(v int) predicate.Session
- func UserIDEQ(v int) predicate.Session
- func UserIDGT(v int) predicate.Session
- func UserIDGTE(v int) predicate.Session
- func UserIDIn(vs ...int) predicate.Session
- func UserIDLT(v int) predicate.Session
- func UserIDLTE(v int) predicate.Session
- func UserIDNEQ(v int) predicate.Session
- func UserIDNotIn(vs ...int) 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 = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // EdgeLogin holds the string denoting the login edge name in mutations. EdgeLogin = "login" // Table holds the table name of the session in the database. Table = "sessions" // LoginTable is the table that holds the login relation/edge. LoginTable = "sessions" // LoginInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. LoginInverseTable = "users" // LoginColumn is the table column denoting the login relation/edge. LoginColumn = "session_login" )
Variables ¶
var Columns = []string{ FieldID, FieldUserID, FieldToken, FieldCreatedAt, FieldExpiresAt, }
Columns holds all SQL columns for session fields.
var ForeignKeys = []string{
"session_login",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "sessions" table and are not defined as standalone fields in the schema.
var ( // TokenValidator is a validator for the "token" field. It is called by the builders before save. TokenValidator func(string) error )
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 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 HasLoginWith ¶
HasLoginWith applies the HasEdge predicate on the "login" edge with a given conditions (other predicates).
func Token ¶
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEqualFold ¶
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenHasPrefix ¶
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenNotIn ¶
TokenNotIn applies the NotIn predicate on the "token" 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.