appinst

package
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for appinst fields.

View Source
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 And

func And(predicates ...predicate.AppInst) predicate.AppInst

And groups predicates with the AND operator between them.

func AppID

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

func CreatedAt(v time.Time) predicate.AppInst

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.AppInst

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.AppInst

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.AppInst

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.AppInst

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.AppInst

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.AppInst

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.AppInst

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.AppInst

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 HasOwner

func HasOwner() predicate.AppInst

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.AppInst

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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 Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.AppInst) predicate.AppInst

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.AppInst

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.AppInst

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.AppInst

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.AppInst

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.AppInst

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.AppInst

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.AppInst

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.AppInst

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.AppInst

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL