testdisplay

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for testdisplay fields.

View Source
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 ID

ID filters vertices based on their ID field.

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

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL