Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Session) 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 Key(v string) predicate.Session
- func KeyContains(v string) predicate.Session
- func KeyContainsFold(v string) predicate.Session
- func KeyEQ(v string) predicate.Session
- func KeyEqualFold(v string) predicate.Session
- func KeyGT(v string) predicate.Session
- func KeyGTE(v string) predicate.Session
- func KeyHasPrefix(v string) predicate.Session
- func KeyHasSuffix(v string) predicate.Session
- func KeyIn(vs ...string) predicate.Session
- func KeyLT(v string) predicate.Session
- func KeyLTE(v string) predicate.Session
- func KeyNEQ(v string) predicate.Session
- func KeyNotIn(vs ...string) predicate.Session
- func Not(p predicate.Session) predicate.Session
- func Or(predicates ...predicate.Session) predicate.Session
- func ValidColumn(column string) bool
Constants ¶
View Source
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" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldData holds the string denoting the data field in the database. FieldData = "data" // Table holds the table name of the session in the database. Table = "sessions" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldKey, FieldData, }
Columns holds all SQL columns for session fields.
Functions ¶
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.