Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Test) predicate.Test
- func AvailableLocalesIsNil() predicate.Test
- func AvailableLocalesNotNil() predicate.Test
- func Code(v string) predicate.Test
- func CodeContains(v string) predicate.Test
- func CodeContainsFold(v string) predicate.Test
- func CodeEQ(v string) predicate.Test
- func CodeEqualFold(v string) predicate.Test
- func CodeGT(v string) predicate.Test
- func CodeGTE(v string) predicate.Test
- func CodeHasPrefix(v string) predicate.Test
- func CodeHasSuffix(v string) predicate.Test
- func CodeIn(vs ...string) predicate.Test
- func CodeLT(v string) predicate.Test
- func CodeLTE(v string) predicate.Test
- func CodeNEQ(v string) predicate.Test
- func CodeNotIn(vs ...string) predicate.Test
- func CreateTime(v time.Time) predicate.Test
- func CreateTimeEQ(v time.Time) predicate.Test
- func CreateTimeGT(v time.Time) predicate.Test
- func CreateTimeGTE(v time.Time) predicate.Test
- func CreateTimeIn(vs ...time.Time) predicate.Test
- func CreateTimeLT(v time.Time) predicate.Test
- func CreateTimeLTE(v time.Time) predicate.Test
- func CreateTimeNEQ(v time.Time) predicate.Test
- func CreateTimeNotIn(vs ...time.Time) predicate.Test
- func Duration(v time.Duration) predicate.Test
- func DurationEQ(v time.Duration) predicate.Test
- func DurationGT(v time.Duration) predicate.Test
- func DurationGTE(v time.Duration) predicate.Test
- func DurationIn(vs ...time.Duration) predicate.Test
- func DurationIsNil() predicate.Test
- func DurationLT(v time.Duration) predicate.Test
- func DurationLTE(v time.Duration) predicate.Test
- func DurationNEQ(v time.Duration) predicate.Test
- func DurationNotIn(vs ...time.Duration) predicate.Test
- func DurationNotNil() predicate.Test
- func HasDisplay() predicate.Test
- func HasDisplayWith(preds ...predicate.TestDisplay) predicate.Test
- func HasQuestions() predicate.Test
- func HasQuestionsWith(preds ...predicate.Question) predicate.Test
- func HasScales() predicate.Test
- func HasScalesWith(preds ...predicate.Scale) predicate.Test
- func HasTags() predicate.Test
- func HasTagsWith(preds ...predicate.Tag) predicate.Test
- func HasTakes() predicate.Test
- func HasTakesWith(preds ...predicate.Take) predicate.Test
- func HasTranslations() predicate.Test
- func HasTranslationsWith(preds ...predicate.TestTranslation) predicate.Test
- func ID(id uuid.UUID) predicate.Test
- func IDEQ(id uuid.UUID) predicate.Test
- func IDGT(id uuid.UUID) predicate.Test
- func IDGTE(id uuid.UUID) predicate.Test
- func IDIn(ids ...uuid.UUID) predicate.Test
- func IDLT(id uuid.UUID) predicate.Test
- func IDLTE(id uuid.UUID) predicate.Test
- func IDNEQ(id uuid.UUID) predicate.Test
- func IDNotIn(ids ...uuid.UUID) predicate.Test
- func Mark(v float64) predicate.Test
- func MarkEQ(v float64) predicate.Test
- func MarkGT(v float64) predicate.Test
- func MarkGTE(v float64) predicate.Test
- func MarkIn(vs ...float64) predicate.Test
- func MarkLT(v float64) predicate.Test
- func MarkLTE(v float64) predicate.Test
- func MarkNEQ(v float64) predicate.Test
- func MarkNotIn(vs ...float64) predicate.Test
- func Not(p predicate.Test) predicate.Test
- func Or(predicates ...predicate.Test) predicate.Test
- func Published(v bool) predicate.Test
- func PublishedEQ(v bool) predicate.Test
- func PublishedNEQ(v bool) predicate.Test
- func QuestionCount(v int) predicate.Test
- func QuestionCountEQ(v int) predicate.Test
- func QuestionCountGT(v int) predicate.Test
- func QuestionCountGTE(v int) predicate.Test
- func QuestionCountIn(vs ...int) predicate.Test
- func QuestionCountLT(v int) predicate.Test
- func QuestionCountLTE(v int) predicate.Test
- func QuestionCountNEQ(v int) predicate.Test
- func QuestionCountNotIn(vs ...int) predicate.Test
- func UpdateTime(v time.Time) predicate.Test
- func UpdateTimeEQ(v time.Time) predicate.Test
- func UpdateTimeGT(v time.Time) predicate.Test
- func UpdateTimeGTE(v time.Time) predicate.Test
- func UpdateTimeIn(vs ...time.Time) predicate.Test
- func UpdateTimeLT(v time.Time) predicate.Test
- func UpdateTimeLTE(v time.Time) predicate.Test
- func UpdateTimeNEQ(v time.Time) predicate.Test
- func UpdateTimeNotIn(vs ...time.Time) predicate.Test
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the test type in the database. Label = "test" // 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" // FieldPublished holds the string denoting the published field in the database. FieldPublished = "published" // FieldAvailableLocales holds the string denoting the available_locales field in the database. FieldAvailableLocales = "available_locales" // FieldMark holds the string denoting the mark field in the database. FieldMark = "mark" // FieldDuration holds the string denoting the duration field in the database. FieldDuration = "duration" // FieldQuestionCount holds the string denoting the question_count field in the database. FieldQuestionCount = "question_count" // EdgeTakes holds the string denoting the takes edge name in mutations. EdgeTakes = "takes" // EdgeQuestions holds the string denoting the questions edge name in mutations. EdgeQuestions = "questions" // EdgeTranslations holds the string denoting the translations edge name in mutations. EdgeTranslations = "translations" // EdgeScales holds the string denoting the scales edge name in mutations. EdgeScales = "scales" // EdgeDisplay holds the string denoting the display edge name in mutations. EdgeDisplay = "display" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // Table holds the table name of the test in the database. Table = "tests" // TakesTable is the table that holds the takes relation/edge. TakesTable = "takes" // TakesInverseTable is the table name for the Take entity. // It exists in this package in order to avoid circular dependency with the "take" package. TakesInverseTable = "takes" // TakesColumn is the table column denoting the takes relation/edge. TakesColumn = "test_takes" // QuestionsTable is the table that holds the questions relation/edge. The primary key declared below. QuestionsTable = "test_questions" // QuestionsInverseTable is the table name for the Question entity. // It exists in this package in order to avoid circular dependency with the "question" package. QuestionsInverseTable = "questions" // TranslationsTable is the table that holds the translations relation/edge. TranslationsTable = "test_translations" // TranslationsInverseTable is the table name for the TestTranslation entity. // It exists in this package in order to avoid circular dependency with the "testtranslation" package. TranslationsInverseTable = "test_translations" // TranslationsColumn is the table column denoting the translations relation/edge. TranslationsColumn = "test_translations" // ScalesTable is the table that holds the scales relation/edge. The primary key declared below. ScalesTable = "test_scales" // ScalesInverseTable is the table name for the Scale entity. // It exists in this package in order to avoid circular dependency with the "scale" package. ScalesInverseTable = "scales" // DisplayTable is the table that holds the display relation/edge. DisplayTable = "test_displays" // DisplayInverseTable is the table name for the TestDisplay entity. // It exists in this package in order to avoid circular dependency with the "testdisplay" package. DisplayInverseTable = "test_displays" // DisplayColumn is the table column denoting the display relation/edge. DisplayColumn = "test_display" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "test_tags" // TagsInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagsInverseTable = "tags" )
Variables ¶
var ( // QuestionsPrimaryKey and QuestionsColumn2 are the table columns denoting the // primary key for the questions relation (M2M). QuestionsPrimaryKey = []string{"test_id", "question_id"} // ScalesPrimaryKey and ScalesColumn2 are the table columns denoting the // primary key for the scales relation (M2M). ScalesPrimaryKey = []string{"test_id", "scale_id"} // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"test_id", "tag_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 // DefaultPublished holds the default value on creation for the "published" field. DefaultPublished bool // DefaultMark holds the default value on creation for the "mark" field. DefaultMark float64 // DefaultQuestionCount holds the default value on creation for the "question_count" field. DefaultQuestionCount int // QuestionCountValidator is a validator for the "question_count" field. It is called by the builders before save. QuestionCountValidator func(int) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldCode, FieldPublished, FieldAvailableLocales, FieldMark, FieldDuration, FieldQuestionCount, }
Columns holds all SQL columns for test fields.
Functions ¶
func AvailableLocalesIsNil ¶
AvailableLocalesIsNil applies the IsNil predicate on the "available_locales" field.
func AvailableLocalesNotNil ¶
AvailableLocalesNotNil applies the NotNil predicate on the "available_locales" field.
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 Duration ¶
Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.
func DurationEQ ¶
DurationEQ applies the EQ predicate on the "duration" field.
func DurationGT ¶
DurationGT applies the GT predicate on the "duration" field.
func DurationGTE ¶
DurationGTE applies the GTE predicate on the "duration" field.
func DurationIn ¶
DurationIn applies the In predicate on the "duration" field.
func DurationIsNil ¶
DurationIsNil applies the IsNil predicate on the "duration" field.
func DurationLT ¶
DurationLT applies the LT predicate on the "duration" field.
func DurationLTE ¶
DurationLTE applies the LTE predicate on the "duration" field.
func DurationNEQ ¶
DurationNEQ applies the NEQ predicate on the "duration" field.
func DurationNotIn ¶
DurationNotIn applies the NotIn predicate on the "duration" field.
func DurationNotNil ¶
DurationNotNil applies the NotNil predicate on the "duration" field.
func HasDisplay ¶
HasDisplay applies the HasEdge predicate on the "display" edge.
func HasDisplayWith ¶
func HasDisplayWith(preds ...predicate.TestDisplay) predicate.Test
HasDisplayWith applies the HasEdge predicate on the "display" edge with a given conditions (other predicates).
func HasQuestions ¶
HasQuestions applies the HasEdge predicate on the "questions" edge.
func HasQuestionsWith ¶
HasQuestionsWith applies the HasEdge predicate on the "questions" edge with a given conditions (other predicates).
func HasScalesWith ¶
HasScalesWith applies the HasEdge predicate on the "scales" edge with a given conditions (other predicates).
func HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func HasTakesWith ¶
HasTakesWith applies the HasEdge predicate on the "takes" edge with a given conditions (other predicates).
func HasTranslations ¶
HasTranslations applies the HasEdge predicate on the "translations" edge.
func HasTranslationsWith ¶
func HasTranslationsWith(preds ...predicate.TestTranslation) predicate.Test
HasTranslationsWith applies the HasEdge predicate on the "translations" edge with a given conditions (other predicates).
func Published ¶
Published applies equality check predicate on the "published" field. It's identical to PublishedEQ.
func PublishedEQ ¶
PublishedEQ applies the EQ predicate on the "published" field.
func PublishedNEQ ¶
PublishedNEQ applies the NEQ predicate on the "published" field.
func QuestionCount ¶
QuestionCount applies equality check predicate on the "question_count" field. It's identical to QuestionCountEQ.
func QuestionCountEQ ¶
QuestionCountEQ applies the EQ predicate on the "question_count" field.
func QuestionCountGT ¶
QuestionCountGT applies the GT predicate on the "question_count" field.
func QuestionCountGTE ¶
QuestionCountGTE applies the GTE predicate on the "question_count" field.
func QuestionCountIn ¶
QuestionCountIn applies the In predicate on the "question_count" field.
func QuestionCountLT ¶
QuestionCountLT applies the LT predicate on the "question_count" field.
func QuestionCountLTE ¶
QuestionCountLTE applies the LTE predicate on the "question_count" field.
func QuestionCountNEQ ¶
QuestionCountNEQ applies the NEQ predicate on the "question_count" field.
func QuestionCountNotIn ¶
QuestionCountNotIn applies the NotIn predicate on the "question_count" 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.