Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TestDisplay) predicate.TestDisplay
- func HasTest() predicate.TestDisplay
- func HasTestWith(preds ...predicate.Test) predicate.TestDisplay
- func ID(id uuid.UUID) predicate.TestDisplay
- func IDEQ(id uuid.UUID) predicate.TestDisplay
- func IDGT(id uuid.UUID) predicate.TestDisplay
- func IDGTE(id uuid.UUID) predicate.TestDisplay
- func IDIn(ids ...uuid.UUID) predicate.TestDisplay
- func IDLT(id uuid.UUID) predicate.TestDisplay
- func IDLTE(id uuid.UUID) predicate.TestDisplay
- func IDNEQ(id uuid.UUID) predicate.TestDisplay
- func IDNotIn(ids ...uuid.UUID) predicate.TestDisplay
- func Not(p predicate.TestDisplay) predicate.TestDisplay
- func Or(predicates ...predicate.TestDisplay) predicate.TestDisplay
- func QuestionsPerPage(v int) predicate.TestDisplay
- func QuestionsPerPageEQ(v int) predicate.TestDisplay
- func QuestionsPerPageGT(v int) predicate.TestDisplay
- func QuestionsPerPageGTE(v int) predicate.TestDisplay
- func QuestionsPerPageIn(vs ...int) predicate.TestDisplay
- func QuestionsPerPageLT(v int) predicate.TestDisplay
- func QuestionsPerPageLTE(v int) predicate.TestDisplay
- func QuestionsPerPageNEQ(v int) predicate.TestDisplay
- func QuestionsPerPageNotIn(vs ...int) predicate.TestDisplay
- func RandomizeOrder(v bool) predicate.TestDisplay
- func RandomizeOrderEQ(v bool) predicate.TestDisplay
- func RandomizeOrderNEQ(v bool) predicate.TestDisplay
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the testdisplay type in the database. Label = "test_display" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRandomizeOrder holds the string denoting the randomize_order field in the database. FieldRandomizeOrder = "randomize_order" // FieldQuestionsPerPage holds the string denoting the questions_per_page field in the database. FieldQuestionsPerPage = "questions_per_page" // EdgeTest holds the string denoting the test edge name in mutations. EdgeTest = "test" // Table holds the table name of the testdisplay in the database. Table = "test_displays" // TestTable is the table that holds the test relation/edge. TestTable = "test_displays" // TestInverseTable is the table name for the Test entity. // It exists in this package in order to avoid circular dependency with the "test" package. TestInverseTable = "tests" // TestColumn is the table column denoting the test relation/edge. TestColumn = "test_display" )
Variables ¶
var ( // DefaultRandomizeOrder holds the default value on creation for the "randomize_order" field. DefaultRandomizeOrder bool // DefaultQuestionsPerPage holds the default value on creation for the "questions_per_page" field. DefaultQuestionsPerPage int // QuestionsPerPageValidator is a validator for the "questions_per_page" field. It is called by the builders before save. QuestionsPerPageValidator func(int) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldRandomizeOrder, FieldQuestionsPerPage, }
Columns holds all SQL columns for testdisplay fields.
var ForeignKeys = []string{
"test_display",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "test_displays" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.TestDisplay) predicate.TestDisplay
And groups predicates with the AND operator between them.
func HasTest ¶
func HasTest() predicate.TestDisplay
HasTest applies the HasEdge predicate on the "test" edge.
func HasTestWith ¶
func HasTestWith(preds ...predicate.Test) predicate.TestDisplay
HasTestWith applies the HasEdge predicate on the "test" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.TestDisplay
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.TestDisplay
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.TestDisplay
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.TestDisplay
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.TestDisplay
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.TestDisplay
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.TestDisplay
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.TestDisplay
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.TestDisplay) predicate.TestDisplay
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TestDisplay) predicate.TestDisplay
Or groups predicates with the OR operator between them.
func QuestionsPerPage ¶
func QuestionsPerPage(v int) predicate.TestDisplay
QuestionsPerPage applies equality check predicate on the "questions_per_page" field. It's identical to QuestionsPerPageEQ.
func QuestionsPerPageEQ ¶
func QuestionsPerPageEQ(v int) predicate.TestDisplay
QuestionsPerPageEQ applies the EQ predicate on the "questions_per_page" field.
func QuestionsPerPageGT ¶
func QuestionsPerPageGT(v int) predicate.TestDisplay
QuestionsPerPageGT applies the GT predicate on the "questions_per_page" field.
func QuestionsPerPageGTE ¶
func QuestionsPerPageGTE(v int) predicate.TestDisplay
QuestionsPerPageGTE applies the GTE predicate on the "questions_per_page" field.
func QuestionsPerPageIn ¶
func QuestionsPerPageIn(vs ...int) predicate.TestDisplay
QuestionsPerPageIn applies the In predicate on the "questions_per_page" field.
func QuestionsPerPageLT ¶
func QuestionsPerPageLT(v int) predicate.TestDisplay
QuestionsPerPageLT applies the LT predicate on the "questions_per_page" field.
func QuestionsPerPageLTE ¶
func QuestionsPerPageLTE(v int) predicate.TestDisplay
QuestionsPerPageLTE applies the LTE predicate on the "questions_per_page" field.
func QuestionsPerPageNEQ ¶
func QuestionsPerPageNEQ(v int) predicate.TestDisplay
QuestionsPerPageNEQ applies the NEQ predicate on the "questions_per_page" field.
func QuestionsPerPageNotIn ¶
func QuestionsPerPageNotIn(vs ...int) predicate.TestDisplay
QuestionsPerPageNotIn applies the NotIn predicate on the "questions_per_page" field.
func RandomizeOrder ¶
func RandomizeOrder(v bool) predicate.TestDisplay
RandomizeOrder applies equality check predicate on the "randomize_order" field. It's identical to RandomizeOrderEQ.
func RandomizeOrderEQ ¶
func RandomizeOrderEQ(v bool) predicate.TestDisplay
RandomizeOrderEQ applies the EQ predicate on the "randomize_order" field.
func RandomizeOrderNEQ ¶
func RandomizeOrderNEQ(v bool) predicate.TestDisplay
RandomizeOrderNEQ applies the NEQ predicate on the "randomize_order" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.