Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Devices) predicate.Devices
- func CreateTime(v time.Time) predicate.Devices
- func CreateTimeEQ(v time.Time) predicate.Devices
- func CreateTimeGT(v time.Time) predicate.Devices
- func CreateTimeGTE(v time.Time) predicate.Devices
- func CreateTimeIn(vs ...time.Time) predicate.Devices
- func CreateTimeLT(v time.Time) predicate.Devices
- func CreateTimeLTE(v time.Time) predicate.Devices
- func CreateTimeNEQ(v time.Time) predicate.Devices
- func CreateTimeNotIn(vs ...time.Time) predicate.Devices
- func Device(v string) predicate.Devices
- func DeviceContains(v string) predicate.Devices
- func DeviceContainsFold(v string) predicate.Devices
- func DeviceEQ(v string) predicate.Devices
- func DeviceEqualFold(v string) predicate.Devices
- func DeviceGT(v string) predicate.Devices
- func DeviceGTE(v string) predicate.Devices
- func DeviceHasPrefix(v string) predicate.Devices
- func DeviceHasSuffix(v string) predicate.Devices
- func DeviceIn(vs ...string) predicate.Devices
- func DeviceLT(v string) predicate.Devices
- func DeviceLTE(v string) predicate.Devices
- func DeviceNEQ(v string) predicate.Devices
- func DeviceNotIn(vs ...string) predicate.Devices
- func HasUser() predicate.Devices
- func HasUserWith(preds ...predicate.Users) predicate.Devices
- func ID(id uint64) predicate.Devices
- func IDEQ(id uint64) predicate.Devices
- func IDGT(id uint64) predicate.Devices
- func IDGTE(id uint64) predicate.Devices
- func IDIn(ids ...uint64) predicate.Devices
- func IDLT(id uint64) predicate.Devices
- func IDLTE(id uint64) predicate.Devices
- func IDNEQ(id uint64) predicate.Devices
- func IDNotIn(ids ...uint64) predicate.Devices
- func IP(v string) predicate.Devices
- func IPContains(v string) predicate.Devices
- func IPContainsFold(v string) predicate.Devices
- func IPEQ(v string) predicate.Devices
- func IPEqualFold(v string) predicate.Devices
- func IPGT(v string) predicate.Devices
- func IPGTE(v string) predicate.Devices
- func IPHasPrefix(v string) predicate.Devices
- func IPHasSuffix(v string) predicate.Devices
- func IPIn(vs ...string) predicate.Devices
- func IPLT(v string) predicate.Devices
- func IPLTE(v string) predicate.Devices
- func IPNEQ(v string) predicate.Devices
- func IPNotIn(vs ...string) predicate.Devices
- func Not(p predicate.Devices) predicate.Devices
- func Or(predicates ...predicate.Devices) predicate.Devices
- func UpdateTime(v time.Time) predicate.Devices
- func UpdateTimeEQ(v time.Time) predicate.Devices
- func UpdateTimeGT(v time.Time) predicate.Devices
- func UpdateTimeGTE(v time.Time) predicate.Devices
- func UpdateTimeIn(vs ...time.Time) predicate.Devices
- func UpdateTimeLT(v time.Time) predicate.Devices
- func UpdateTimeLTE(v time.Time) predicate.Devices
- func UpdateTimeNEQ(v time.Time) predicate.Devices
- func UpdateTimeNotIn(vs ...time.Time) predicate.Devices
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDevice(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIP(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the devices type in the database. Label = "devices" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldIP holds the string denoting the ip field in the database. FieldIP = "ip" // FieldDevice holds the string denoting the device field in the database. FieldDevice = "device" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the devices in the database. Table = "devices" // UserTable is the table that holds the user relation/edge. UserTable = "devices" // UserInverseTable is the table name for the Users entity. // It exists in this package in order to avoid circular dependency with the "users" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "users_devices" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldIP, FieldDevice, }
Columns holds all SQL columns for devices fields.
var ForeignKeys = []string{
"users_devices",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "devices" table and are not defined as standalone fields in the schema.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Device ¶
Device applies equality check predicate on the "device" field. It's identical to DeviceEQ.
func DeviceContains ¶
DeviceContains applies the Contains predicate on the "device" field.
func DeviceContainsFold ¶
DeviceContainsFold applies the ContainsFold predicate on the "device" field.
func DeviceEqualFold ¶
DeviceEqualFold applies the EqualFold predicate on the "device" field.
func DeviceHasPrefix ¶
DeviceHasPrefix applies the HasPrefix predicate on the "device" field.
func DeviceHasSuffix ¶
DeviceHasSuffix applies the HasSuffix predicate on the "device" field.
func DeviceNotIn ¶
DeviceNotIn applies the NotIn predicate on the "device" field.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IPContains ¶
IPContains applies the Contains predicate on the "ip" field.
func IPContainsFold ¶
IPContainsFold applies the ContainsFold predicate on the "ip" field.
func IPEqualFold ¶
IPEqualFold applies the EqualFold predicate on the "ip" field.
func IPHasPrefix ¶
IPHasPrefix applies the HasPrefix predicate on the "ip" field.
func IPHasSuffix ¶
IPHasSuffix applies the HasSuffix predicate on the "ip" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 Devices queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDevice ¶
func ByDevice(opts ...sql.OrderTermOption) OrderOption
ByDevice orders the results by the device field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIP ¶
func ByIP(opts ...sql.OrderTermOption) OrderOption
ByIP orders the results by the ip field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.