Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SessionDevice) predicate.SessionDevice
- func CreatedAt(v time.Time) predicate.SessionDevice
- func CreatedAtEQ(v time.Time) predicate.SessionDevice
- func CreatedAtGT(v time.Time) predicate.SessionDevice
- func CreatedAtGTE(v time.Time) predicate.SessionDevice
- func CreatedAtIn(vs ...time.Time) predicate.SessionDevice
- func CreatedAtLT(v time.Time) predicate.SessionDevice
- func CreatedAtLTE(v time.Time) predicate.SessionDevice
- func CreatedAtNEQ(v time.Time) predicate.SessionDevice
- func CreatedAtNotIn(vs ...time.Time) predicate.SessionDevice
- func HasSessions() predicate.SessionDevice
- func HasSessionsWith(preds ...predicate.Session) predicate.SessionDevice
- func ID(id uuid.UUID) predicate.SessionDevice
- func IDEQ(id uuid.UUID) predicate.SessionDevice
- func IDGT(id uuid.UUID) predicate.SessionDevice
- func IDGTE(id uuid.UUID) predicate.SessionDevice
- func IDIn(ids ...uuid.UUID) predicate.SessionDevice
- func IDLT(id uuid.UUID) predicate.SessionDevice
- func IDLTE(id uuid.UUID) predicate.SessionDevice
- func IDNEQ(id uuid.UUID) predicate.SessionDevice
- func IDNotIn(ids ...uuid.UUID) predicate.SessionDevice
- func IPAddress(v string) predicate.SessionDevice
- func IPAddressContains(v string) predicate.SessionDevice
- func IPAddressContainsFold(v string) predicate.SessionDevice
- func IPAddressEQ(v string) predicate.SessionDevice
- func IPAddressEqualFold(v string) predicate.SessionDevice
- func IPAddressGT(v string) predicate.SessionDevice
- func IPAddressGTE(v string) predicate.SessionDevice
- func IPAddressHasPrefix(v string) predicate.SessionDevice
- func IPAddressHasSuffix(v string) predicate.SessionDevice
- func IPAddressIn(vs ...string) predicate.SessionDevice
- func IPAddressLT(v string) predicate.SessionDevice
- func IPAddressLTE(v string) predicate.SessionDevice
- func IPAddressNEQ(v string) predicate.SessionDevice
- func IPAddressNotIn(vs ...string) predicate.SessionDevice
- func Location(v string) predicate.SessionDevice
- func LocationContains(v string) predicate.SessionDevice
- func LocationContainsFold(v string) predicate.SessionDevice
- func LocationEQ(v string) predicate.SessionDevice
- func LocationEqualFold(v string) predicate.SessionDevice
- func LocationGT(v string) predicate.SessionDevice
- func LocationGTE(v string) predicate.SessionDevice
- func LocationHasPrefix(v string) predicate.SessionDevice
- func LocationHasSuffix(v string) predicate.SessionDevice
- func LocationIn(vs ...string) predicate.SessionDevice
- func LocationLT(v string) predicate.SessionDevice
- func LocationLTE(v string) predicate.SessionDevice
- func LocationNEQ(v string) predicate.SessionDevice
- func LocationNotIn(vs ...string) predicate.SessionDevice
- func Not(p predicate.SessionDevice) predicate.SessionDevice
- func Or(predicates ...predicate.SessionDevice) predicate.SessionDevice
- func UpdatedAt(v time.Time) predicate.SessionDevice
- func UpdatedAtEQ(v time.Time) predicate.SessionDevice
- func UpdatedAtGT(v time.Time) predicate.SessionDevice
- func UpdatedAtGTE(v time.Time) predicate.SessionDevice
- func UpdatedAtIn(vs ...time.Time) predicate.SessionDevice
- func UpdatedAtIsNil() predicate.SessionDevice
- func UpdatedAtLT(v time.Time) predicate.SessionDevice
- func UpdatedAtLTE(v time.Time) predicate.SessionDevice
- func UpdatedAtNEQ(v time.Time) predicate.SessionDevice
- func UpdatedAtNotIn(vs ...time.Time) predicate.SessionDevice
- func UpdatedAtNotNil() predicate.SessionDevice
- func UserAgent(v string) predicate.SessionDevice
- func UserAgentContains(v string) predicate.SessionDevice
- func UserAgentContainsFold(v string) predicate.SessionDevice
- func UserAgentEQ(v string) predicate.SessionDevice
- func UserAgentEqualFold(v string) predicate.SessionDevice
- func UserAgentGT(v string) predicate.SessionDevice
- func UserAgentGTE(v string) predicate.SessionDevice
- func UserAgentHasPrefix(v string) predicate.SessionDevice
- func UserAgentHasSuffix(v string) predicate.SessionDevice
- func UserAgentIn(vs ...string) predicate.SessionDevice
- func UserAgentLT(v string) predicate.SessionDevice
- func UserAgentLTE(v string) predicate.SessionDevice
- func UserAgentNEQ(v string) predicate.SessionDevice
- func UserAgentNotIn(vs ...string) predicate.SessionDevice
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIPAddress(opts ...sql.OrderTermOption) OrderOption
- func ByLocation(opts ...sql.OrderTermOption) OrderOption
- func BySessions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySessionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserAgent(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the sessiondevice type in the database. Label = "session_device" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIPAddress holds the string denoting the ip_address field in the database. FieldIPAddress = "ip_address" // FieldUserAgent holds the string denoting the user_agent field in the database. FieldUserAgent = "user_agent" // FieldLocation holds the string denoting the location field in the database. FieldLocation = "location" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeSessions holds the string denoting the sessions edge name in mutations. EdgeSessions = "sessions" // Table holds the table name of the sessiondevice in the database. Table = "session_devices" // SessionsTable is the table that holds the sessions relation/edge. SessionsTable = "sessions" // SessionsInverseTable is the table name for the Session entity. // It exists in this package in order to avoid circular dependency with the "session" package. SessionsInverseTable = "sessions" // SessionsColumn is the table column denoting the sessions relation/edge. SessionsColumn = "device_id" )
Variables ¶
var ( // IPAddressValidator is a validator for the "ip_address" field. It is called by the builders before save. IPAddressValidator func(string) error // UserAgentValidator is a validator for the "user_agent" field. It is called by the builders before save. UserAgentValidator func(string) error // LocationValidator is a validator for the "location" field. It is called by the builders before save. LocationValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldIPAddress, FieldUserAgent, FieldLocation, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for sessiondevice fields.
Functions ¶
func And ¶
func And(predicates ...predicate.SessionDevice) predicate.SessionDevice
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.SessionDevice
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.SessionDevice
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.SessionDevice
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.SessionDevice
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.SessionDevice
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.SessionDevice
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.SessionDevice
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.SessionDevice
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.SessionDevice
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasSessions ¶
func HasSessions() predicate.SessionDevice
HasSessions applies the HasEdge predicate on the "sessions" edge.
func HasSessionsWith ¶
func HasSessionsWith(preds ...predicate.Session) predicate.SessionDevice
HasSessionsWith applies the HasEdge predicate on the "sessions" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.SessionDevice
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.SessionDevice
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.SessionDevice
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.SessionDevice
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.SessionDevice
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.SessionDevice
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.SessionDevice
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.SessionDevice
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.SessionDevice
IDNotIn applies the NotIn predicate on the ID field.
func IPAddress ¶
func IPAddress(v string) predicate.SessionDevice
IPAddress applies equality check predicate on the "ip_address" field. It's identical to IPAddressEQ.
func IPAddressContains ¶
func IPAddressContains(v string) predicate.SessionDevice
IPAddressContains applies the Contains predicate on the "ip_address" field.
func IPAddressContainsFold ¶
func IPAddressContainsFold(v string) predicate.SessionDevice
IPAddressContainsFold applies the ContainsFold predicate on the "ip_address" field.
func IPAddressEQ ¶
func IPAddressEQ(v string) predicate.SessionDevice
IPAddressEQ applies the EQ predicate on the "ip_address" field.
func IPAddressEqualFold ¶
func IPAddressEqualFold(v string) predicate.SessionDevice
IPAddressEqualFold applies the EqualFold predicate on the "ip_address" field.
func IPAddressGT ¶
func IPAddressGT(v string) predicate.SessionDevice
IPAddressGT applies the GT predicate on the "ip_address" field.
func IPAddressGTE ¶
func IPAddressGTE(v string) predicate.SessionDevice
IPAddressGTE applies the GTE predicate on the "ip_address" field.
func IPAddressHasPrefix ¶
func IPAddressHasPrefix(v string) predicate.SessionDevice
IPAddressHasPrefix applies the HasPrefix predicate on the "ip_address" field.
func IPAddressHasSuffix ¶
func IPAddressHasSuffix(v string) predicate.SessionDevice
IPAddressHasSuffix applies the HasSuffix predicate on the "ip_address" field.
func IPAddressIn ¶
func IPAddressIn(vs ...string) predicate.SessionDevice
IPAddressIn applies the In predicate on the "ip_address" field.
func IPAddressLT ¶
func IPAddressLT(v string) predicate.SessionDevice
IPAddressLT applies the LT predicate on the "ip_address" field.
func IPAddressLTE ¶
func IPAddressLTE(v string) predicate.SessionDevice
IPAddressLTE applies the LTE predicate on the "ip_address" field.
func IPAddressNEQ ¶
func IPAddressNEQ(v string) predicate.SessionDevice
IPAddressNEQ applies the NEQ predicate on the "ip_address" field.
func IPAddressNotIn ¶
func IPAddressNotIn(vs ...string) predicate.SessionDevice
IPAddressNotIn applies the NotIn predicate on the "ip_address" field.
func Location ¶
func Location(v string) predicate.SessionDevice
Location applies equality check predicate on the "location" field. It's identical to LocationEQ.
func LocationContains ¶
func LocationContains(v string) predicate.SessionDevice
LocationContains applies the Contains predicate on the "location" field.
func LocationContainsFold ¶
func LocationContainsFold(v string) predicate.SessionDevice
LocationContainsFold applies the ContainsFold predicate on the "location" field.
func LocationEQ ¶
func LocationEQ(v string) predicate.SessionDevice
LocationEQ applies the EQ predicate on the "location" field.
func LocationEqualFold ¶
func LocationEqualFold(v string) predicate.SessionDevice
LocationEqualFold applies the EqualFold predicate on the "location" field.
func LocationGT ¶
func LocationGT(v string) predicate.SessionDevice
LocationGT applies the GT predicate on the "location" field.
func LocationGTE ¶
func LocationGTE(v string) predicate.SessionDevice
LocationGTE applies the GTE predicate on the "location" field.
func LocationHasPrefix ¶
func LocationHasPrefix(v string) predicate.SessionDevice
LocationHasPrefix applies the HasPrefix predicate on the "location" field.
func LocationHasSuffix ¶
func LocationHasSuffix(v string) predicate.SessionDevice
LocationHasSuffix applies the HasSuffix predicate on the "location" field.
func LocationIn ¶
func LocationIn(vs ...string) predicate.SessionDevice
LocationIn applies the In predicate on the "location" field.
func LocationLT ¶
func LocationLT(v string) predicate.SessionDevice
LocationLT applies the LT predicate on the "location" field.
func LocationLTE ¶
func LocationLTE(v string) predicate.SessionDevice
LocationLTE applies the LTE predicate on the "location" field.
func LocationNEQ ¶
func LocationNEQ(v string) predicate.SessionDevice
LocationNEQ applies the NEQ predicate on the "location" field.
func LocationNotIn ¶
func LocationNotIn(vs ...string) predicate.SessionDevice
LocationNotIn applies the NotIn predicate on the "location" field.
func Not ¶
func Not(p predicate.SessionDevice) predicate.SessionDevice
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.SessionDevice) predicate.SessionDevice
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.SessionDevice
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.SessionDevice
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.SessionDevice
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.SessionDevice
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.SessionDevice
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.SessionDevice
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.SessionDevice
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.SessionDevice
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.SessionDevice
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.SessionDevice
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.SessionDevice
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UserAgent ¶
func UserAgent(v string) predicate.SessionDevice
UserAgent applies equality check predicate on the "user_agent" field. It's identical to UserAgentEQ.
func UserAgentContains ¶
func UserAgentContains(v string) predicate.SessionDevice
UserAgentContains applies the Contains predicate on the "user_agent" field.
func UserAgentContainsFold ¶
func UserAgentContainsFold(v string) predicate.SessionDevice
UserAgentContainsFold applies the ContainsFold predicate on the "user_agent" field.
func UserAgentEQ ¶
func UserAgentEQ(v string) predicate.SessionDevice
UserAgentEQ applies the EQ predicate on the "user_agent" field.
func UserAgentEqualFold ¶
func UserAgentEqualFold(v string) predicate.SessionDevice
UserAgentEqualFold applies the EqualFold predicate on the "user_agent" field.
func UserAgentGT ¶
func UserAgentGT(v string) predicate.SessionDevice
UserAgentGT applies the GT predicate on the "user_agent" field.
func UserAgentGTE ¶
func UserAgentGTE(v string) predicate.SessionDevice
UserAgentGTE applies the GTE predicate on the "user_agent" field.
func UserAgentHasPrefix ¶
func UserAgentHasPrefix(v string) predicate.SessionDevice
UserAgentHasPrefix applies the HasPrefix predicate on the "user_agent" field.
func UserAgentHasSuffix ¶
func UserAgentHasSuffix(v string) predicate.SessionDevice
UserAgentHasSuffix applies the HasSuffix predicate on the "user_agent" field.
func UserAgentIn ¶
func UserAgentIn(vs ...string) predicate.SessionDevice
UserAgentIn applies the In predicate on the "user_agent" field.
func UserAgentLT ¶
func UserAgentLT(v string) predicate.SessionDevice
UserAgentLT applies the LT predicate on the "user_agent" field.
func UserAgentLTE ¶
func UserAgentLTE(v string) predicate.SessionDevice
UserAgentLTE applies the LTE predicate on the "user_agent" field.
func UserAgentNEQ ¶
func UserAgentNEQ(v string) predicate.SessionDevice
UserAgentNEQ applies the NEQ predicate on the "user_agent" field.
func UserAgentNotIn ¶
func UserAgentNotIn(vs ...string) predicate.SessionDevice
UserAgentNotIn applies the NotIn predicate on the "user_agent" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the SessionDevice queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIPAddress ¶
func ByIPAddress(opts ...sql.OrderTermOption) OrderOption
ByIPAddress orders the results by the ip_address field.
func ByLocation ¶
func ByLocation(opts ...sql.OrderTermOption) OrderOption
ByLocation orders the results by the location field.
func BySessions ¶
func BySessions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySessions orders the results by sessions terms.
func BySessionsCount ¶
func BySessionsCount(opts ...sql.OrderTermOption) OrderOption
BySessionsCount orders the results by sessions count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserAgent ¶
func ByUserAgent(opts ...sql.OrderTermOption) OrderOption
ByUserAgent orders the results by the user_agent field.