Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Item) predicate.Item
- func Code(v string) predicate.Item
- func CodeContains(v string) predicate.Item
- func CodeContainsFold(v string) predicate.Item
- func CodeEQ(v string) predicate.Item
- func CodeEqualFold(v string) predicate.Item
- func CodeGT(v string) predicate.Item
- func CodeGTE(v string) predicate.Item
- func CodeHasPrefix(v string) predicate.Item
- func CodeHasSuffix(v string) predicate.Item
- func CodeIn(vs ...string) predicate.Item
- func CodeLT(v string) predicate.Item
- func CodeLTE(v string) predicate.Item
- func CodeNEQ(v string) predicate.Item
- func CodeNotIn(vs ...string) predicate.Item
- func CreateTime(v time.Time) predicate.Item
- func CreateTimeEQ(v time.Time) predicate.Item
- func CreateTimeGT(v time.Time) predicate.Item
- func CreateTimeGTE(v time.Time) predicate.Item
- func CreateTimeIn(vs ...time.Time) predicate.Item
- func CreateTimeLT(v time.Time) predicate.Item
- func CreateTimeLTE(v time.Time) predicate.Item
- func CreateTimeNEQ(v time.Time) predicate.Item
- func CreateTimeNotIn(vs ...time.Time) predicate.Item
- func HasQuestion() predicate.Item
- func HasQuestionWith(preds ...predicate.Question) predicate.Item
- func HasResponses() predicate.Item
- func HasResponsesWith(preds ...predicate.Response) predicate.Item
- func HasScale() predicate.Item
- func HasScaleItem() predicate.Item
- func HasScaleItemWith(preds ...predicate.ScaleItem) predicate.Item
- func HasScaleWith(preds ...predicate.Scale) predicate.Item
- func HasTranslations() predicate.Item
- func HasTranslationsWith(preds ...predicate.ItemTranslation) predicate.Item
- func ID(id uuid.UUID) predicate.Item
- func IDEQ(id uuid.UUID) predicate.Item
- func IDGT(id uuid.UUID) predicate.Item
- func IDGTE(id uuid.UUID) predicate.Item
- func IDIn(ids ...uuid.UUID) predicate.Item
- func IDLT(id uuid.UUID) predicate.Item
- func IDLTE(id uuid.UUID) predicate.Item
- func IDNEQ(id uuid.UUID) predicate.Item
- func IDNotIn(ids ...uuid.UUID) predicate.Item
- func Not(p predicate.Item) predicate.Item
- func Or(predicates ...predicate.Item) predicate.Item
- func Steps(v int) predicate.Item
- func StepsEQ(v int) predicate.Item
- func StepsGT(v int) predicate.Item
- func StepsGTE(v int) predicate.Item
- func StepsIn(vs ...int) predicate.Item
- func StepsLT(v int) predicate.Item
- func StepsLTE(v int) predicate.Item
- func StepsNEQ(v int) predicate.Item
- func StepsNotIn(vs ...int) predicate.Item
- func UpdateTime(v time.Time) predicate.Item
- func UpdateTimeEQ(v time.Time) predicate.Item
- func UpdateTimeGT(v time.Time) predicate.Item
- func UpdateTimeGTE(v time.Time) predicate.Item
- func UpdateTimeIn(vs ...time.Time) predicate.Item
- func UpdateTimeLT(v time.Time) predicate.Item
- func UpdateTimeLTE(v time.Time) predicate.Item
- func UpdateTimeNEQ(v time.Time) predicate.Item
- func UpdateTimeNotIn(vs ...time.Time) predicate.Item
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the item type in the database. Label = "item" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldSteps holds the string denoting the steps field in the database. FieldSteps = "steps" // EdgeResponses holds the string denoting the responses edge name in mutations. EdgeResponses = "responses" // EdgeTranslations holds the string denoting the translations edge name in mutations. EdgeTranslations = "translations" // EdgeScale holds the string denoting the scale edge name in mutations. EdgeScale = "scale" // EdgeQuestion holds the string denoting the question edge name in mutations. EdgeQuestion = "question" // EdgeScaleItem holds the string denoting the scale_item edge name in mutations. EdgeScaleItem = "scale_item" // Table holds the table name of the item in the database. Table = "items" // ResponsesTable is the table that holds the responses relation/edge. ResponsesTable = "responses" // ResponsesInverseTable is the table name for the Response entity. // It exists in this package in order to avoid circular dependency with the "response" package. ResponsesInverseTable = "responses" // ResponsesColumn is the table column denoting the responses relation/edge. ResponsesColumn = "item_responses" // TranslationsTable is the table that holds the translations relation/edge. TranslationsTable = "item_translations" // TranslationsInverseTable is the table name for the ItemTranslation entity. // It exists in this package in order to avoid circular dependency with the "itemtranslation" package. TranslationsInverseTable = "item_translations" // TranslationsColumn is the table column denoting the translations relation/edge. TranslationsColumn = "item_translations" // ScaleTable is the table that holds the scale relation/edge. The primary key declared below. ScaleTable = "scale_items" // ScaleInverseTable is the table name for the Scale entity. // It exists in this package in order to avoid circular dependency with the "scale" package. ScaleInverseTable = "scales" // QuestionTable is the table that holds the question relation/edge. The primary key declared below. QuestionTable = "question_items" // QuestionInverseTable is the table name for the Question entity. // It exists in this package in order to avoid circular dependency with the "question" package. QuestionInverseTable = "questions" // ScaleItemTable is the table that holds the scale_item relation/edge. ScaleItemTable = "scale_items" // ScaleItemInverseTable is the table name for the ScaleItem entity. // It exists in this package in order to avoid circular dependency with the "scaleitem" package. ScaleItemInverseTable = "scale_items" // ScaleItemColumn is the table column denoting the scale_item relation/edge. ScaleItemColumn = "item_id" )
Variables ¶
var ( // ScalePrimaryKey and ScaleColumn2 are the table columns denoting the // primary key for the scale relation (M2M). ScalePrimaryKey = []string{"scale_id", "item_id"} // QuestionPrimaryKey and QuestionColumn2 are the table columns denoting the // primary key for the question relation (M2M). QuestionPrimaryKey = []string{"question_id", "item_id"} )
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error // DefaultSteps holds the default value on creation for the "steps" field. DefaultSteps int // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldCode, FieldSteps, }
Columns holds all SQL columns for item fields.
Functions ¶
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasQuestion ¶
HasQuestion applies the HasEdge predicate on the "question" edge.
func HasQuestionWith ¶
HasQuestionWith applies the HasEdge predicate on the "question" edge with a given conditions (other predicates).
func HasResponses ¶
HasResponses applies the HasEdge predicate on the "responses" edge.
func HasResponsesWith ¶
HasResponsesWith applies the HasEdge predicate on the "responses" edge with a given conditions (other predicates).
func HasScaleItem ¶
HasScaleItem applies the HasEdge predicate on the "scale_item" edge.
func HasScaleItemWith ¶
HasScaleItemWith applies the HasEdge predicate on the "scale_item" edge with a given conditions (other predicates).
func HasScaleWith ¶
HasScaleWith applies the HasEdge predicate on the "scale" edge with a given conditions (other predicates).
func HasTranslations ¶
HasTranslations applies the HasEdge predicate on the "translations" edge.
func HasTranslationsWith ¶
func HasTranslationsWith(preds ...predicate.ItemTranslation) predicate.Item
HasTranslationsWith applies the HasEdge predicate on the "translations" edge with a given conditions (other predicates).
func Steps ¶
Steps applies equality check predicate on the "steps" field. It's identical to StepsEQ.
func StepsNotIn ¶
StepsNotIn applies the NotIn predicate on the "steps" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.