Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AppInst) predicate.AppInst
- func AppID(v model.InternalID) predicate.AppInst
- func AppIDEQ(v model.InternalID) predicate.AppInst
- func AppIDGT(v model.InternalID) predicate.AppInst
- func AppIDGTE(v model.InternalID) predicate.AppInst
- func AppIDIn(vs ...model.InternalID) predicate.AppInst
- func AppIDLT(v model.InternalID) predicate.AppInst
- func AppIDLTE(v model.InternalID) predicate.AppInst
- func AppIDNEQ(v model.InternalID) predicate.AppInst
- func AppIDNotIn(vs ...model.InternalID) predicate.AppInst
- func CreatedAt(v time.Time) predicate.AppInst
- func CreatedAtEQ(v time.Time) predicate.AppInst
- func CreatedAtGT(v time.Time) predicate.AppInst
- func CreatedAtGTE(v time.Time) predicate.AppInst
- func CreatedAtIn(vs ...time.Time) predicate.AppInst
- func CreatedAtLT(v time.Time) predicate.AppInst
- func CreatedAtLTE(v time.Time) predicate.AppInst
- func CreatedAtNEQ(v time.Time) predicate.AppInst
- func CreatedAtNotIn(vs ...time.Time) predicate.AppInst
- func DeviceID(v model.InternalID) predicate.AppInst
- func DeviceIDEQ(v model.InternalID) predicate.AppInst
- func DeviceIDGT(v model.InternalID) predicate.AppInst
- func DeviceIDGTE(v model.InternalID) predicate.AppInst
- func DeviceIDIn(vs ...model.InternalID) predicate.AppInst
- func DeviceIDLT(v model.InternalID) predicate.AppInst
- func DeviceIDLTE(v model.InternalID) predicate.AppInst
- func DeviceIDNEQ(v model.InternalID) predicate.AppInst
- func DeviceIDNotIn(vs ...model.InternalID) predicate.AppInst
- func HasOwner() predicate.AppInst
- func HasOwnerWith(preds ...predicate.User) predicate.AppInst
- func ID(id model.InternalID) predicate.AppInst
- func IDEQ(id model.InternalID) predicate.AppInst
- func IDGT(id model.InternalID) predicate.AppInst
- func IDGTE(id model.InternalID) predicate.AppInst
- func IDIn(ids ...model.InternalID) predicate.AppInst
- func IDLT(id model.InternalID) predicate.AppInst
- func IDLTE(id model.InternalID) predicate.AppInst
- func IDNEQ(id model.InternalID) predicate.AppInst
- func IDNotIn(ids ...model.InternalID) predicate.AppInst
- func Not(p predicate.AppInst) predicate.AppInst
- func Or(predicates ...predicate.AppInst) predicate.AppInst
- func UpdatedAt(v time.Time) predicate.AppInst
- func UpdatedAtEQ(v time.Time) predicate.AppInst
- func UpdatedAtGT(v time.Time) predicate.AppInst
- func UpdatedAtGTE(v time.Time) predicate.AppInst
- func UpdatedAtIn(vs ...time.Time) predicate.AppInst
- func UpdatedAtLT(v time.Time) predicate.AppInst
- func UpdatedAtLTE(v time.Time) predicate.AppInst
- func UpdatedAtNEQ(v time.Time) predicate.AppInst
- func UpdatedAtNotIn(vs ...time.Time) predicate.AppInst
- func ValidColumn(column string) bool
- type OrderOption
- func ByAppID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeviceID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the appinst type in the database. Label = "app_inst" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDeviceID holds the string denoting the device_id field in the database. FieldDeviceID = "device_id" // FieldAppID holds the string denoting the app_id field in the database. FieldAppID = "app_id" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the appinst in the database. Table = "app_insts" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "app_insts" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_app_inst" )
Variables ¶
var ( // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldDeviceID, FieldAppID, FieldUpdatedAt, FieldCreatedAt, }
Columns holds all SQL columns for appinst fields.
var ForeignKeys = []string{
"user_app_inst",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "app_insts" table and are not defined as standalone fields in the schema.
Functions ¶
func AppID ¶
func AppID(v model.InternalID) predicate.AppInst
AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.
func AppIDEQ ¶
func AppIDEQ(v model.InternalID) predicate.AppInst
AppIDEQ applies the EQ predicate on the "app_id" field.
func AppIDGT ¶
func AppIDGT(v model.InternalID) predicate.AppInst
AppIDGT applies the GT predicate on the "app_id" field.
func AppIDGTE ¶
func AppIDGTE(v model.InternalID) predicate.AppInst
AppIDGTE applies the GTE predicate on the "app_id" field.
func AppIDIn ¶
func AppIDIn(vs ...model.InternalID) predicate.AppInst
AppIDIn applies the In predicate on the "app_id" field.
func AppIDLT ¶
func AppIDLT(v model.InternalID) predicate.AppInst
AppIDLT applies the LT predicate on the "app_id" field.
func AppIDLTE ¶
func AppIDLTE(v model.InternalID) predicate.AppInst
AppIDLTE applies the LTE predicate on the "app_id" field.
func AppIDNEQ ¶
func AppIDNEQ(v model.InternalID) predicate.AppInst
AppIDNEQ applies the NEQ predicate on the "app_id" field.
func AppIDNotIn ¶
func AppIDNotIn(vs ...model.InternalID) predicate.AppInst
AppIDNotIn applies the NotIn predicate on the "app_id" field.
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 DeviceID ¶
func DeviceID(v model.InternalID) predicate.AppInst
DeviceID applies equality check predicate on the "device_id" field. It's identical to DeviceIDEQ.
func DeviceIDEQ ¶
func DeviceIDEQ(v model.InternalID) predicate.AppInst
DeviceIDEQ applies the EQ predicate on the "device_id" field.
func DeviceIDGT ¶
func DeviceIDGT(v model.InternalID) predicate.AppInst
DeviceIDGT applies the GT predicate on the "device_id" field.
func DeviceIDGTE ¶
func DeviceIDGTE(v model.InternalID) predicate.AppInst
DeviceIDGTE applies the GTE predicate on the "device_id" field.
func DeviceIDIn ¶
func DeviceIDIn(vs ...model.InternalID) predicate.AppInst
DeviceIDIn applies the In predicate on the "device_id" field.
func DeviceIDLT ¶
func DeviceIDLT(v model.InternalID) predicate.AppInst
DeviceIDLT applies the LT predicate on the "device_id" field.
func DeviceIDLTE ¶
func DeviceIDLTE(v model.InternalID) predicate.AppInst
DeviceIDLTE applies the LTE predicate on the "device_id" field.
func DeviceIDNEQ ¶
func DeviceIDNEQ(v model.InternalID) predicate.AppInst
DeviceIDNEQ applies the NEQ predicate on the "device_id" field.
func DeviceIDNotIn ¶
func DeviceIDNotIn(vs ...model.InternalID) predicate.AppInst
DeviceIDNotIn applies the NotIn predicate on the "device_id" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func ID ¶
func ID(id model.InternalID) predicate.AppInst
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id model.InternalID) predicate.AppInst
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id model.InternalID) predicate.AppInst
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id model.InternalID) predicate.AppInst
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...model.InternalID) predicate.AppInst
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id model.InternalID) predicate.AppInst
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id model.InternalID) predicate.AppInst
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id model.InternalID) predicate.AppInst
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...model.InternalID) predicate.AppInst
IDNotIn applies the NotIn predicate on the ID field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 AppInst queries.
func ByAppID ¶
func ByAppID(opts ...sql.OrderTermOption) OrderOption
ByAppID orders the results by the app_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeviceID ¶
func ByDeviceID(opts ...sql.OrderTermOption) OrderOption
ByDeviceID orders the results by the device_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.