Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Template) predicate.Template
- func CreatedAt(v time.Time) predicate.Template
- func CreatedAtEQ(v time.Time) predicate.Template
- func CreatedAtGT(v time.Time) predicate.Template
- func CreatedAtGTE(v time.Time) predicate.Template
- func CreatedAtIn(vs ...time.Time) predicate.Template
- func CreatedAtLT(v time.Time) predicate.Template
- func CreatedAtLTE(v time.Time) predicate.Template
- func CreatedAtNEQ(v time.Time) predicate.Template
- func CreatedAtNotIn(vs ...time.Time) predicate.Template
- func Description(v string) predicate.Template
- func DescriptionContains(v string) predicate.Template
- func DescriptionContainsFold(v string) predicate.Template
- func DescriptionEQ(v string) predicate.Template
- func DescriptionEqualFold(v string) predicate.Template
- func DescriptionGT(v string) predicate.Template
- func DescriptionGTE(v string) predicate.Template
- func DescriptionHasPrefix(v string) predicate.Template
- func DescriptionHasSuffix(v string) predicate.Template
- func DescriptionIn(vs ...string) predicate.Template
- func DescriptionLT(v string) predicate.Template
- func DescriptionLTE(v string) predicate.Template
- func DescriptionNEQ(v string) predicate.Template
- func DescriptionNotIn(vs ...string) predicate.Template
- func DisplayRank(v uint) predicate.Template
- func DisplayRankEQ(v uint) predicate.Template
- func DisplayRankGT(v uint) predicate.Template
- func DisplayRankGTE(v uint) predicate.Template
- func DisplayRankIn(vs ...uint) predicate.Template
- func DisplayRankLT(v uint) predicate.Template
- func DisplayRankLTE(v uint) predicate.Template
- func DisplayRankNEQ(v uint) predicate.Template
- func DisplayRankNotIn(vs ...uint) predicate.Template
- func HasServices() predicate.Template
- func HasServicesWith(preds ...predicate.Service) predicate.Template
- func ID(id uuid.UUID) predicate.Template
- func IDEQ(id uuid.UUID) predicate.Template
- func IDGT(id uuid.UUID) predicate.Template
- func IDGTE(id uuid.UUID) predicate.Template
- func IDIn(ids ...uuid.UUID) predicate.Template
- func IDLT(id uuid.UUID) predicate.Template
- func IDLTE(id uuid.UUID) predicate.Template
- func IDNEQ(id uuid.UUID) predicate.Template
- func IDNotIn(ids ...uuid.UUID) predicate.Template
- func Icon(v string) predicate.Template
- func IconContains(v string) predicate.Template
- func IconContainsFold(v string) predicate.Template
- func IconEQ(v string) predicate.Template
- func IconEqualFold(v string) predicate.Template
- func IconGT(v string) predicate.Template
- func IconGTE(v string) predicate.Template
- func IconHasPrefix(v string) predicate.Template
- func IconHasSuffix(v string) predicate.Template
- func IconIn(vs ...string) predicate.Template
- func IconLT(v string) predicate.Template
- func IconLTE(v string) predicate.Template
- func IconNEQ(v string) predicate.Template
- func IconNotIn(vs ...string) predicate.Template
- func Immutable(v bool) predicate.Template
- func ImmutableEQ(v bool) predicate.Template
- func ImmutableNEQ(v bool) predicate.Template
- func KeywordsIsNil() predicate.Template
- func KeywordsNotNil() predicate.Template
- func Name(v string) predicate.Template
- func NameContains(v string) predicate.Template
- func NameContainsFold(v string) predicate.Template
- func NameEQ(v string) predicate.Template
- func NameEqualFold(v string) predicate.Template
- func NameGT(v string) predicate.Template
- func NameGTE(v string) predicate.Template
- func NameHasPrefix(v string) predicate.Template
- func NameHasSuffix(v string) predicate.Template
- func NameIn(vs ...string) predicate.Template
- func NameLT(v string) predicate.Template
- func NameLTE(v string) predicate.Template
- func NameNEQ(v string) predicate.Template
- func NameNotIn(vs ...string) predicate.Template
- func Not(p predicate.Template) predicate.Template
- func Or(predicates ...predicate.Template) predicate.Template
- func UpdatedAt(v time.Time) predicate.Template
- func UpdatedAtEQ(v time.Time) predicate.Template
- func UpdatedAtGT(v time.Time) predicate.Template
- func UpdatedAtGTE(v time.Time) predicate.Template
- func UpdatedAtIn(vs ...time.Time) predicate.Template
- func UpdatedAtLT(v time.Time) predicate.Template
- func UpdatedAtLTE(v time.Time) predicate.Template
- func UpdatedAtNEQ(v time.Time) predicate.Template
- func UpdatedAtNotIn(vs ...time.Time) predicate.Template
- func ValidColumn(column string) bool
- func Version(v int) predicate.Template
- func VersionEQ(v int) predicate.Template
- func VersionGT(v int) predicate.Template
- func VersionGTE(v int) predicate.Template
- func VersionIn(vs ...int) predicate.Template
- func VersionLT(v int) predicate.Template
- func VersionLTE(v int) predicate.Template
- func VersionNEQ(v int) predicate.Template
- func VersionNotIn(vs ...int) predicate.Template
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayRank(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIcon(opts ...sql.OrderTermOption) OrderOption
- func ByImmutable(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByServices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByServicesCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the template type in the database. Label = "template" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // 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" // FieldIcon holds the string denoting the icon field in the database. FieldIcon = "icon" // FieldKeywords holds the string denoting the keywords field in the database. FieldKeywords = "keywords" // FieldDisplayRank holds the string denoting the display_rank field in the database. FieldDisplayRank = "display_rank" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldImmutable holds the string denoting the immutable field in the database. FieldImmutable = "immutable" // FieldDefinition holds the string denoting the definition field in the database. FieldDefinition = "definition" // EdgeServices holds the string denoting the services edge name in mutations. EdgeServices = "services" // Table holds the table name of the template in the database. Table = "templates" // ServicesTable is the table that holds the services relation/edge. ServicesTable = "services" // ServicesInverseTable is the table name for the Service entity. // It exists in this package in order to avoid circular dependency with the "service" package. ServicesInverseTable = "services" // ServicesColumn is the table column denoting the services relation/edge. ServicesColumn = "template_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // 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 // DefaultDisplayRank holds the default value on creation for the "display_rank" field. DefaultDisplayRank uint // DefaultImmutable holds the default value on creation for the "immutable" field. DefaultImmutable bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldDescription, FieldIcon, FieldKeywords, FieldDisplayRank, FieldVersion, FieldImmutable, FieldDefinition, }
Columns holds all SQL columns for template fields.
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 DisplayRank ¶
DisplayRank applies equality check predicate on the "display_rank" field. It's identical to DisplayRankEQ.
func DisplayRankEQ ¶
DisplayRankEQ applies the EQ predicate on the "display_rank" field.
func DisplayRankGT ¶
DisplayRankGT applies the GT predicate on the "display_rank" field.
func DisplayRankGTE ¶
DisplayRankGTE applies the GTE predicate on the "display_rank" field.
func DisplayRankIn ¶
DisplayRankIn applies the In predicate on the "display_rank" field.
func DisplayRankLT ¶
DisplayRankLT applies the LT predicate on the "display_rank" field.
func DisplayRankLTE ¶
DisplayRankLTE applies the LTE predicate on the "display_rank" field.
func DisplayRankNEQ ¶
DisplayRankNEQ applies the NEQ predicate on the "display_rank" field.
func DisplayRankNotIn ¶
DisplayRankNotIn applies the NotIn predicate on the "display_rank" field.
func HasServices ¶
HasServices applies the HasEdge predicate on the "services" edge.
func HasServicesWith ¶
HasServicesWith applies the HasEdge predicate on the "services" edge with a given conditions (other predicates).
func IconContains ¶
IconContains applies the Contains predicate on the "icon" field.
func IconContainsFold ¶
IconContainsFold applies the ContainsFold predicate on the "icon" field.
func IconEqualFold ¶
IconEqualFold applies the EqualFold predicate on the "icon" field.
func IconHasPrefix ¶
IconHasPrefix applies the HasPrefix predicate on the "icon" field.
func IconHasSuffix ¶
IconHasSuffix applies the HasSuffix predicate on the "icon" field.
func Immutable ¶
Immutable applies equality check predicate on the "immutable" field. It's identical to ImmutableEQ.
func ImmutableEQ ¶
ImmutableEQ applies the EQ predicate on the "immutable" field.
func ImmutableNEQ ¶
ImmutableNEQ applies the NEQ predicate on the "immutable" field.
func KeywordsIsNil ¶
KeywordsIsNil applies the IsNil predicate on the "keywords" field.
func KeywordsNotNil ¶
KeywordsNotNil applies the NotNil predicate on the "keywords" 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 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).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Template 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 ByDisplayRank ¶
func ByDisplayRank(opts ...sql.OrderTermOption) OrderOption
ByDisplayRank orders the results by the display_rank field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIcon ¶
func ByIcon(opts ...sql.OrderTermOption) OrderOption
ByIcon orders the results by the icon field.
func ByImmutable ¶
func ByImmutable(opts ...sql.OrderTermOption) OrderOption
ByImmutable orders the results by the immutable field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByServices ¶
func ByServices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByServices orders the results by services terms.
func ByServicesCount ¶
func ByServicesCount(opts ...sql.OrderTermOption) OrderOption
ByServicesCount orders the results by services count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.