Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Session) predicate.Session
- func HasDevice() predicate.Session
- func HasDeviceWith(preds ...predicate.Device) predicate.Session
- func ID(id schema.ID) predicate.Session
- func IDEQ(id schema.ID) predicate.Session
- func IDGT(id schema.ID) predicate.Session
- func IDGTE(id schema.ID) predicate.Session
- func IDIn(ids ...schema.ID) predicate.Session
- func IDLT(id schema.ID) predicate.Session
- func IDLTE(id schema.ID) predicate.Session
- func IDNEQ(id schema.ID) predicate.Session
- func IDNotIn(ids ...schema.ID) 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" // EdgeDevice holds the string denoting the device edge name in mutations. EdgeDevice = "device" // Table holds the table name of the session in the database. Table = "sessions" // DeviceTable is the table that holds the device relation/edge. DeviceTable = "sessions" // DeviceInverseTable is the table name for the Device entity. // It exists in this package in order to avoid circular dependency with the "device" package. DeviceInverseTable = "devices" // DeviceColumn is the table column denoting the device relation/edge. DeviceColumn = "device_sessions" )
Variables ¶
View Source
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() schema.ID // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func([]byte) error )
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for session fields.
View Source
var ForeignKeys = []string{
"device_sessions",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "sessions" table and are not defined as standalone fields in the schema.
Functions ¶
func HasDeviceWith ¶
HasDeviceWith applies the HasEdge predicate on the "device" edge with a given conditions (other predicates).
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.