Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Location) predicate.Location
- func CreatedAt(v time.Time) predicate.Location
- func CreatedAtEQ(v time.Time) predicate.Location
- func CreatedAtGT(v time.Time) predicate.Location
- func CreatedAtGTE(v time.Time) predicate.Location
- func CreatedAtIn(vs ...time.Time) predicate.Location
- func CreatedAtLT(v time.Time) predicate.Location
- func CreatedAtLTE(v time.Time) predicate.Location
- func CreatedAtNEQ(v time.Time) predicate.Location
- func CreatedAtNotIn(vs ...time.Time) predicate.Location
- func Description(v string) predicate.Location
- func DescriptionContains(v string) predicate.Location
- func DescriptionContainsFold(v string) predicate.Location
- func DescriptionEQ(v string) predicate.Location
- func DescriptionEqualFold(v string) predicate.Location
- func DescriptionGT(v string) predicate.Location
- func DescriptionGTE(v string) predicate.Location
- func DescriptionHasPrefix(v string) predicate.Location
- func DescriptionHasSuffix(v string) predicate.Location
- func DescriptionIn(vs ...string) predicate.Location
- func DescriptionLT(v string) predicate.Location
- func DescriptionLTE(v string) predicate.Location
- func DescriptionNEQ(v string) predicate.Location
- func DescriptionNotIn(vs ...string) predicate.Location
- func HasPackages() predicate.Location
- func HasPackagesWith(preds ...predicate.Pkg) predicate.Location
- func ID(id int) predicate.Location
- func IDEQ(id int) predicate.Location
- func IDGT(id int) predicate.Location
- func IDGTE(id int) predicate.Location
- func IDIn(ids ...int) predicate.Location
- func IDLT(id int) predicate.Location
- func IDLTE(id int) predicate.Location
- func IDNEQ(id int) predicate.Location
- func IDNotIn(ids ...int) predicate.Location
- func Name(v string) predicate.Location
- func NameContains(v string) predicate.Location
- func NameContainsFold(v string) predicate.Location
- func NameEQ(v string) predicate.Location
- func NameEqualFold(v string) predicate.Location
- func NameGT(v string) predicate.Location
- func NameGTE(v string) predicate.Location
- func NameHasPrefix(v string) predicate.Location
- func NameHasSuffix(v string) predicate.Location
- func NameIn(vs ...string) predicate.Location
- func NameLT(v string) predicate.Location
- func NameLTE(v string) predicate.Location
- func NameNEQ(v string) predicate.Location
- func NameNotIn(vs ...string) predicate.Location
- func Not(p predicate.Location) predicate.Location
- func Or(predicates ...predicate.Location) predicate.Location
- func PurposeEQ(v types.LocationPurpose) predicate.Location
- func PurposeIn(vs ...types.LocationPurpose) predicate.Location
- func PurposeNEQ(v types.LocationPurpose) predicate.Location
- func PurposeNotIn(vs ...types.LocationPurpose) predicate.Location
- func PurposeValidator(pu types.LocationPurpose) error
- func SourceEQ(v types.LocationSource) predicate.Location
- func SourceIn(vs ...types.LocationSource) predicate.Location
- func SourceNEQ(v types.LocationSource) predicate.Location
- func SourceNotIn(vs ...types.LocationSource) predicate.Location
- func SourceValidator(s types.LocationSource) error
- func UUID(v uuid.UUID) predicate.Location
- func UUIDEQ(v uuid.UUID) predicate.Location
- func UUIDGT(v uuid.UUID) predicate.Location
- func UUIDGTE(v uuid.UUID) predicate.Location
- func UUIDIn(vs ...uuid.UUID) predicate.Location
- func UUIDLT(v uuid.UUID) predicate.Location
- func UUIDLTE(v uuid.UUID) predicate.Location
- func UUIDNEQ(v uuid.UUID) predicate.Location
- func UUIDNotIn(vs ...uuid.UUID) predicate.Location
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPackages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPackagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByPurpose(opts ...sql.OrderTermOption) OrderOption
- func BySource(opts ...sql.OrderTermOption) OrderOption
- func ByUUID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the location type in the database. Label = "location" // 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" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldSource holds the string denoting the source field in the database. FieldSource = "source" // FieldPurpose holds the string denoting the purpose field in the database. FieldPurpose = "purpose" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // FieldConfig holds the string denoting the config field in the database. FieldConfig = "config" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgePackages holds the string denoting the packages edge name in mutations. EdgePackages = "packages" // Table holds the table name of the location in the database. Table = "location" // PackagesTable is the table that holds the packages relation/edge. PackagesTable = "package" // PackagesInverseTable is the table name for the Pkg entity. // It exists in this package in order to avoid circular dependency with the "pkg" package. PackagesInverseTable = "package" // PackagesColumn is the table column denoting the packages relation/edge. PackagesColumn = "location_id" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldSource, FieldPurpose, FieldUUID, FieldConfig, FieldCreatedAt, }
Columns holds all SQL columns for location fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Functions ¶
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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasPackages ¶
HasPackages applies the HasEdge predicate on the "packages" edge.
func HasPackagesWith ¶
HasPackagesWith applies the HasEdge predicate on the "packages" edge with a given conditions (other predicates).
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 PurposeEQ ¶
func PurposeEQ(v types.LocationPurpose) predicate.Location
PurposeEQ applies the EQ predicate on the "purpose" field.
func PurposeIn ¶
func PurposeIn(vs ...types.LocationPurpose) predicate.Location
PurposeIn applies the In predicate on the "purpose" field.
func PurposeNEQ ¶
func PurposeNEQ(v types.LocationPurpose) predicate.Location
PurposeNEQ applies the NEQ predicate on the "purpose" field.
func PurposeNotIn ¶
func PurposeNotIn(vs ...types.LocationPurpose) predicate.Location
PurposeNotIn applies the NotIn predicate on the "purpose" field.
func PurposeValidator ¶
func PurposeValidator(pu types.LocationPurpose) error
PurposeValidator is a validator for the "purpose" field enum values. It is called by the builders before save.
func SourceEQ ¶
func SourceEQ(v types.LocationSource) predicate.Location
SourceEQ applies the EQ predicate on the "source" field.
func SourceIn ¶
func SourceIn(vs ...types.LocationSource) predicate.Location
SourceIn applies the In predicate on the "source" field.
func SourceNEQ ¶
func SourceNEQ(v types.LocationSource) predicate.Location
SourceNEQ applies the NEQ predicate on the "source" field.
func SourceNotIn ¶
func SourceNotIn(vs ...types.LocationSource) predicate.Location
SourceNotIn applies the NotIn predicate on the "source" field.
func SourceValidator ¶
func SourceValidator(s types.LocationSource) error
SourceValidator is a validator for the "source" 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 Location queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPackages ¶
func ByPackages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPackages orders the results by packages terms.
func ByPackagesCount ¶
func ByPackagesCount(opts ...sql.OrderTermOption) OrderOption
ByPackagesCount orders the results by packages count.
func ByPurpose ¶
func ByPurpose(opts ...sql.OrderTermOption) OrderOption
ByPurpose orders the results by the purpose field.
func BySource ¶
func BySource(opts ...sql.OrderTermOption) OrderOption
BySource orders the results by the source field.
func ByUUID ¶
func ByUUID(opts ...sql.OrderTermOption) OrderOption
ByUUID orders the results by the uuid field.