Documentation ¶
Index ¶
- Constants
- Variables
- func AipID(v uuid.UUID) predicate.Pkg
- func AipIDEQ(v uuid.UUID) predicate.Pkg
- func AipIDGT(v uuid.UUID) predicate.Pkg
- func AipIDGTE(v uuid.UUID) predicate.Pkg
- func AipIDIn(vs ...uuid.UUID) predicate.Pkg
- func AipIDLT(v uuid.UUID) predicate.Pkg
- func AipIDLTE(v uuid.UUID) predicate.Pkg
- func AipIDNEQ(v uuid.UUID) predicate.Pkg
- func AipIDNotIn(vs ...uuid.UUID) predicate.Pkg
- func And(predicates ...predicate.Pkg) predicate.Pkg
- func CreatedAt(v time.Time) predicate.Pkg
- func CreatedAtEQ(v time.Time) predicate.Pkg
- func CreatedAtGT(v time.Time) predicate.Pkg
- func CreatedAtGTE(v time.Time) predicate.Pkg
- func CreatedAtIn(vs ...time.Time) predicate.Pkg
- func CreatedAtLT(v time.Time) predicate.Pkg
- func CreatedAtLTE(v time.Time) predicate.Pkg
- func CreatedAtNEQ(v time.Time) predicate.Pkg
- func CreatedAtNotIn(vs ...time.Time) predicate.Pkg
- func HasLocation() predicate.Pkg
- func HasLocationWith(preds ...predicate.Location) predicate.Pkg
- func ID(id int) predicate.Pkg
- func IDEQ(id int) predicate.Pkg
- func IDGT(id int) predicate.Pkg
- func IDGTE(id int) predicate.Pkg
- func IDIn(ids ...int) predicate.Pkg
- func IDLT(id int) predicate.Pkg
- func IDLTE(id int) predicate.Pkg
- func IDNEQ(id int) predicate.Pkg
- func IDNotIn(ids ...int) predicate.Pkg
- func LocationID(v int) predicate.Pkg
- func LocationIDEQ(v int) predicate.Pkg
- func LocationIDIn(vs ...int) predicate.Pkg
- func LocationIDIsNil() predicate.Pkg
- func LocationIDNEQ(v int) predicate.Pkg
- func LocationIDNotIn(vs ...int) predicate.Pkg
- func LocationIDNotNil() predicate.Pkg
- func Name(v string) predicate.Pkg
- func NameContains(v string) predicate.Pkg
- func NameContainsFold(v string) predicate.Pkg
- func NameEQ(v string) predicate.Pkg
- func NameEqualFold(v string) predicate.Pkg
- func NameGT(v string) predicate.Pkg
- func NameGTE(v string) predicate.Pkg
- func NameHasPrefix(v string) predicate.Pkg
- func NameHasSuffix(v string) predicate.Pkg
- func NameIn(vs ...string) predicate.Pkg
- func NameLT(v string) predicate.Pkg
- func NameLTE(v string) predicate.Pkg
- func NameNEQ(v string) predicate.Pkg
- func NameNotIn(vs ...string) predicate.Pkg
- func Not(p predicate.Pkg) predicate.Pkg
- func ObjectKey(v uuid.UUID) predicate.Pkg
- func ObjectKeyEQ(v uuid.UUID) predicate.Pkg
- func ObjectKeyGT(v uuid.UUID) predicate.Pkg
- func ObjectKeyGTE(v uuid.UUID) predicate.Pkg
- func ObjectKeyIn(vs ...uuid.UUID) predicate.Pkg
- func ObjectKeyLT(v uuid.UUID) predicate.Pkg
- func ObjectKeyLTE(v uuid.UUID) predicate.Pkg
- func ObjectKeyNEQ(v uuid.UUID) predicate.Pkg
- func ObjectKeyNotIn(vs ...uuid.UUID) predicate.Pkg
- func Or(predicates ...predicate.Pkg) predicate.Pkg
- func StatusEQ(v types.PackageStatus) predicate.Pkg
- func StatusIn(vs ...types.PackageStatus) predicate.Pkg
- func StatusNEQ(v types.PackageStatus) predicate.Pkg
- func StatusNotIn(vs ...types.PackageStatus) predicate.Pkg
- func StatusValidator(s types.PackageStatus) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByAipID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLocationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByLocationID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByObjectKey(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the pkg type in the database. Label = "pkg" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldAipID holds the string denoting the aip_id field in the database. FieldAipID = "aip_id" // FieldLocationID holds the string denoting the location_id field in the database. FieldLocationID = "location_id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldObjectKey holds the string denoting the object_key field in the database. FieldObjectKey = "object_key" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeLocation holds the string denoting the location edge name in mutations. EdgeLocation = "location" // Table holds the table name of the pkg in the database. Table = "package" // LocationTable is the table that holds the location relation/edge. LocationTable = "package" // LocationInverseTable is the table name for the Location entity. // It exists in this package in order to avoid circular dependency with the "location" package. LocationInverseTable = "location" // LocationColumn is the table column denoting the location relation/edge. LocationColumn = "location_id" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldAipID, FieldLocationID, FieldStatus, FieldObjectKey, FieldCreatedAt, }
Columns holds all SQL columns for pkg fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Functions ¶
func AipID ¶
AipID applies equality check predicate on the "aip_id" field. It's identical to AipIDEQ.
func AipIDNotIn ¶
AipIDNotIn applies the NotIn predicate on the "aip_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 HasLocation ¶
HasLocation applies the HasEdge predicate on the "location" edge.
func HasLocationWith ¶
HasLocationWith applies the HasEdge predicate on the "location" edge with a given conditions (other predicates).
func LocationID ¶
LocationID applies equality check predicate on the "location_id" field. It's identical to LocationIDEQ.
func LocationIDEQ ¶
LocationIDEQ applies the EQ predicate on the "location_id" field.
func LocationIDIn ¶
LocationIDIn applies the In predicate on the "location_id" field.
func LocationIDIsNil ¶
LocationIDIsNil applies the IsNil predicate on the "location_id" field.
func LocationIDNEQ ¶
LocationIDNEQ applies the NEQ predicate on the "location_id" field.
func LocationIDNotIn ¶
LocationIDNotIn applies the NotIn predicate on the "location_id" field.
func LocationIDNotNil ¶
LocationIDNotNil applies the NotNil predicate on the "location_id" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ObjectKey ¶
ObjectKey applies equality check predicate on the "object_key" field. It's identical to ObjectKeyEQ.
func ObjectKeyEQ ¶
ObjectKeyEQ applies the EQ predicate on the "object_key" field.
func ObjectKeyGT ¶
ObjectKeyGT applies the GT predicate on the "object_key" field.
func ObjectKeyGTE ¶
ObjectKeyGTE applies the GTE predicate on the "object_key" field.
func ObjectKeyIn ¶
ObjectKeyIn applies the In predicate on the "object_key" field.
func ObjectKeyLT ¶
ObjectKeyLT applies the LT predicate on the "object_key" field.
func ObjectKeyLTE ¶
ObjectKeyLTE applies the LTE predicate on the "object_key" field.
func ObjectKeyNEQ ¶
ObjectKeyNEQ applies the NEQ predicate on the "object_key" field.
func ObjectKeyNotIn ¶
ObjectKeyNotIn applies the NotIn predicate on the "object_key" field.
func StatusEQ ¶
func StatusEQ(v types.PackageStatus) predicate.Pkg
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...types.PackageStatus) predicate.Pkg
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v types.PackageStatus) predicate.Pkg
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...types.PackageStatus) predicate.Pkg
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s types.PackageStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
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 Pkg queries.
func ByAipID ¶
func ByAipID(opts ...sql.OrderTermOption) OrderOption
ByAipID orders the results by the aip_id field.
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 ByLocationField ¶
func ByLocationField(field string, opts ...sql.OrderTermOption) OrderOption
ByLocationField orders the results by location field.
func ByLocationID ¶
func ByLocationID(opts ...sql.OrderTermOption) OrderOption
ByLocationID orders the results by the location_id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByObjectKey ¶
func ByObjectKey(opts ...sql.OrderTermOption) OrderOption
ByObjectKey orders the results by the object_key field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.