Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.EmailTemplate) predicate.EmailTemplate
- func Content(v string) predicate.EmailTemplate
- func ContentContains(v string) predicate.EmailTemplate
- func ContentContainsFold(v string) predicate.EmailTemplate
- func ContentEQ(v string) predicate.EmailTemplate
- func ContentEqualFold(v string) predicate.EmailTemplate
- func ContentGT(v string) predicate.EmailTemplate
- func ContentGTE(v string) predicate.EmailTemplate
- func ContentHasPrefix(v string) predicate.EmailTemplate
- func ContentHasSuffix(v string) predicate.EmailTemplate
- func ContentIn(vs ...string) predicate.EmailTemplate
- func ContentLT(v string) predicate.EmailTemplate
- func ContentLTE(v string) predicate.EmailTemplate
- func ContentNEQ(v string) predicate.EmailTemplate
- func ContentNotIn(vs ...string) predicate.EmailTemplate
- func ID(id int) predicate.EmailTemplate
- func IDEQ(id int) predicate.EmailTemplate
- func IDGT(id int) predicate.EmailTemplate
- func IDGTE(id int) predicate.EmailTemplate
- func IDIn(ids ...int) predicate.EmailTemplate
- func IDLT(id int) predicate.EmailTemplate
- func IDLTE(id int) predicate.EmailTemplate
- func IDNEQ(id int) predicate.EmailTemplate
- func IDNotIn(ids ...int) predicate.EmailTemplate
- func Not(p predicate.EmailTemplate) predicate.EmailTemplate
- func Or(predicates ...predicate.EmailTemplate) predicate.EmailTemplate
- func TemplateCode(v string) predicate.EmailTemplate
- func TemplateCodeContains(v string) predicate.EmailTemplate
- func TemplateCodeContainsFold(v string) predicate.EmailTemplate
- func TemplateCodeEQ(v string) predicate.EmailTemplate
- func TemplateCodeEqualFold(v string) predicate.EmailTemplate
- func TemplateCodeGT(v string) predicate.EmailTemplate
- func TemplateCodeGTE(v string) predicate.EmailTemplate
- func TemplateCodeHasPrefix(v string) predicate.EmailTemplate
- func TemplateCodeHasSuffix(v string) predicate.EmailTemplate
- func TemplateCodeIn(vs ...string) predicate.EmailTemplate
- func TemplateCodeLT(v string) predicate.EmailTemplate
- func TemplateCodeLTE(v string) predicate.EmailTemplate
- func TemplateCodeNEQ(v string) predicate.EmailTemplate
- func TemplateCodeNotIn(vs ...string) predicate.EmailTemplate
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the emailtemplate type in the database. Label = "email_template" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTemplateCode holds the string denoting the template_code field in the database. FieldTemplateCode = "template_code" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // Table holds the table name of the emailtemplate in the database. Table = "email_templates" )
Variables ¶
var ( // DefaultTemplateCode holds the default value on creation for the "template_code" field. DefaultTemplateCode string // DefaultContent holds the default value on creation for the "content" field. DefaultContent string )
var Columns = []string{ FieldID, FieldTemplateCode, FieldContent, }
Columns holds all SQL columns for emailtemplate fields.
Functions ¶
func And ¶
func And(predicates ...predicate.EmailTemplate) predicate.EmailTemplate
And groups predicates with the AND operator between them.
func Content ¶
func Content(v string) predicate.EmailTemplate
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
func ContentContains(v string) predicate.EmailTemplate
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
func ContentContainsFold(v string) predicate.EmailTemplate
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEQ ¶
func ContentEQ(v string) predicate.EmailTemplate
ContentEQ applies the EQ predicate on the "content" field.
func ContentEqualFold ¶
func ContentEqualFold(v string) predicate.EmailTemplate
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGT ¶
func ContentGT(v string) predicate.EmailTemplate
ContentGT applies the GT predicate on the "content" field.
func ContentGTE ¶
func ContentGTE(v string) predicate.EmailTemplate
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
func ContentHasPrefix(v string) predicate.EmailTemplate
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
func ContentHasSuffix(v string) predicate.EmailTemplate
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIn ¶
func ContentIn(vs ...string) predicate.EmailTemplate
ContentIn applies the In predicate on the "content" field.
func ContentLT ¶
func ContentLT(v string) predicate.EmailTemplate
ContentLT applies the LT predicate on the "content" field.
func ContentLTE ¶
func ContentLTE(v string) predicate.EmailTemplate
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
func ContentNEQ(v string) predicate.EmailTemplate
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
func ContentNotIn(vs ...string) predicate.EmailTemplate
ContentNotIn applies the NotIn predicate on the "content" field.
func IDEQ ¶
func IDEQ(id int) predicate.EmailTemplate
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.EmailTemplate
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.EmailTemplate
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.EmailTemplate
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.EmailTemplate
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.EmailTemplate
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.EmailTemplate
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.EmailTemplate
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.EmailTemplate) predicate.EmailTemplate
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.EmailTemplate) predicate.EmailTemplate
Or groups predicates with the OR operator between them.
func TemplateCode ¶
func TemplateCode(v string) predicate.EmailTemplate
TemplateCode applies equality check predicate on the "template_code" field. It's identical to TemplateCodeEQ.
func TemplateCodeContains ¶
func TemplateCodeContains(v string) predicate.EmailTemplate
TemplateCodeContains applies the Contains predicate on the "template_code" field.
func TemplateCodeContainsFold ¶
func TemplateCodeContainsFold(v string) predicate.EmailTemplate
TemplateCodeContainsFold applies the ContainsFold predicate on the "template_code" field.
func TemplateCodeEQ ¶
func TemplateCodeEQ(v string) predicate.EmailTemplate
TemplateCodeEQ applies the EQ predicate on the "template_code" field.
func TemplateCodeEqualFold ¶
func TemplateCodeEqualFold(v string) predicate.EmailTemplate
TemplateCodeEqualFold applies the EqualFold predicate on the "template_code" field.
func TemplateCodeGT ¶
func TemplateCodeGT(v string) predicate.EmailTemplate
TemplateCodeGT applies the GT predicate on the "template_code" field.
func TemplateCodeGTE ¶
func TemplateCodeGTE(v string) predicate.EmailTemplate
TemplateCodeGTE applies the GTE predicate on the "template_code" field.
func TemplateCodeHasPrefix ¶
func TemplateCodeHasPrefix(v string) predicate.EmailTemplate
TemplateCodeHasPrefix applies the HasPrefix predicate on the "template_code" field.
func TemplateCodeHasSuffix ¶
func TemplateCodeHasSuffix(v string) predicate.EmailTemplate
TemplateCodeHasSuffix applies the HasSuffix predicate on the "template_code" field.
func TemplateCodeIn ¶
func TemplateCodeIn(vs ...string) predicate.EmailTemplate
TemplateCodeIn applies the In predicate on the "template_code" field.
func TemplateCodeLT ¶
func TemplateCodeLT(v string) predicate.EmailTemplate
TemplateCodeLT applies the LT predicate on the "template_code" field.
func TemplateCodeLTE ¶
func TemplateCodeLTE(v string) predicate.EmailTemplate
TemplateCodeLTE applies the LTE predicate on the "template_code" field.
func TemplateCodeNEQ ¶
func TemplateCodeNEQ(v string) predicate.EmailTemplate
TemplateCodeNEQ applies the NEQ predicate on the "template_code" field.
func TemplateCodeNotIn ¶
func TemplateCodeNotIn(vs ...string) predicate.EmailTemplate
TemplateCodeNotIn applies the NotIn predicate on the "template_code" field.
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 EmailTemplate queries.
func ByContent ¶
func ByContent(opts ...sql.OrderTermOption) OrderOption
ByContent orders the results by the content field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTemplateCode ¶
func ByTemplateCode(opts ...sql.OrderTermOption) OrderOption
ByTemplateCode orders the results by the template_code field.