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 DeletedAt(v time.Time) predicate.Template
- func DeletedAtEQ(v time.Time) predicate.Template
- func DeletedAtGT(v time.Time) predicate.Template
- func DeletedAtGTE(v time.Time) predicate.Template
- func DeletedAtIn(vs ...time.Time) predicate.Template
- func DeletedAtIsNil() predicate.Template
- func DeletedAtLT(v time.Time) predicate.Template
- func DeletedAtLTE(v time.Time) predicate.Template
- func DeletedAtNEQ(v time.Time) predicate.Template
- func DeletedAtNotIn(vs ...time.Time) predicate.Template
- func DeletedAtNotNil() 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 DescriptionIsNil() 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 DescriptionNotNil() predicate.Template
- func HasServer() predicate.Template
- func HasServerWith(preds ...predicate.Server) predicate.Template
- func HasUser() predicate.Template
- func HasUserWith(preds ...predicate.User) predicate.Template
- func ID(id int) predicate.Template
- func IDEQ(id int) predicate.Template
- func IDGT(id int) predicate.Template
- func IDGTE(id int) predicate.Template
- func IDIn(ids ...int) predicate.Template
- func IDLT(id int) predicate.Template
- func IDLTE(id int) predicate.Template
- func IDNEQ(id int) predicate.Template
- func IDNotIn(ids ...int) 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 Template(v string) predicate.Template
- func TemplateContains(v string) predicate.Template
- func TemplateContainsFold(v string) predicate.Template
- func TemplateEQ(v string) predicate.Template
- func TemplateEqualFold(v string) predicate.Template
- func TemplateGT(v string) predicate.Template
- func TemplateGTE(v string) predicate.Template
- func TemplateHasPrefix(v string) predicate.Template
- func TemplateHasSuffix(v string) predicate.Template
- func TemplateIn(vs ...string) predicate.Template
- func TemplateLT(v string) predicate.Template
- func TemplateLTE(v string) predicate.Template
- func TemplateNEQ(v string) predicate.Template
- func TemplateNotIn(vs ...string) predicate.Template
- func ValidColumn(column string) bool
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" // 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" // FieldTemplate holds the string denoting the template field in the database. FieldTemplate = "template" // FieldVariables holds the string denoting the variables field in the database. FieldVariables = "variables" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeServer holds the string denoting the server edge name in mutations. EdgeServer = "server" // Table holds the table name of the template in the database. Table = "templates" // UserTable is the table the holds the user relation/edge. The primary key declared below. UserTable = "user_templates" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // ServerTable is the table the holds the server relation/edge. The primary key declared below. ServerTable = "server_template_from" // ServerInverseTable is the table name for the Server entity. // It exists in this package in order to avoid circular dependency with the "server" package. ServerInverseTable = "servers" )
Variables ¶
var ( // UserPrimaryKey and UserColumn2 are the table columns denoting the // primary key for the user relation (M2M). UserPrimaryKey = []string{"user_id", "template_id"} // ServerPrimaryKey and ServerColumn2 are the table columns denoting the // primary key for the server relation (M2M). ServerPrimaryKey = []string{"server_id", "template_id"} )
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldTemplate, FieldVariables, FieldCreatedAt, FieldDeletedAt, }
Columns holds all SQL columns for template 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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_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 DescriptionIsNil ¶
DescriptionIsNil applies the IsNil 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 DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasServerWith ¶
HasServerWith applies the HasEdge predicate on the "server" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" 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 Template ¶
Template applies equality check predicate on the "template" field. It's identical to TemplateEQ.
func TemplateContains ¶
TemplateContains applies the Contains predicate on the "template" field.
func TemplateContainsFold ¶
TemplateContainsFold applies the ContainsFold predicate on the "template" field.
func TemplateEQ ¶
TemplateEQ applies the EQ predicate on the "template" field.
func TemplateEqualFold ¶
TemplateEqualFold applies the EqualFold predicate on the "template" field.
func TemplateGT ¶
TemplateGT applies the GT predicate on the "template" field.
func TemplateGTE ¶
TemplateGTE applies the GTE predicate on the "template" field.
func TemplateHasPrefix ¶
TemplateHasPrefix applies the HasPrefix predicate on the "template" field.
func TemplateHasSuffix ¶
TemplateHasSuffix applies the HasSuffix predicate on the "template" field.
func TemplateIn ¶
TemplateIn applies the In predicate on the "template" field.
func TemplateLT ¶
TemplateLT applies the LT predicate on the "template" field.
func TemplateLTE ¶
TemplateLTE applies the LTE predicate on the "template" field.
func TemplateNEQ ¶
TemplateNEQ applies the NEQ predicate on the "template" field.
func TemplateNotIn ¶
TemplateNotIn applies the NotIn predicate on the "template" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.