Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Test) predicate.Test
- func ID(id int) predicate.Test
- func IDEQ(id int) predicate.Test
- func IDGT(id int) predicate.Test
- func IDGTE(id int) predicate.Test
- func IDIn(ids ...int) predicate.Test
- func IDLT(id int) predicate.Test
- func IDLTE(id int) predicate.Test
- func IDNEQ(id int) predicate.Test
- func IDNotIn(ids ...int) predicate.Test
- func Not(p predicate.Test) predicate.Test
- func Or(predicates ...predicate.Test) predicate.Test
- func TestEQ(v Test) predicate.Test
- func TestIn(vs ...Test) predicate.Test
- func TestNEQ(v Test) predicate.Test
- func TestNotIn(vs ...Test) predicate.Test
- func TestValidator(t Test) error
- func ValidColumn(column string) bool
- type Test
Constants ¶
View Source
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" // FieldTest holds the string denoting the test field in the database. FieldTest = "test" // Table holds the table name of the test in the database. Table = "tests" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldTest, }
Columns holds all SQL columns for test fields.
Functions ¶
func TestValidator ¶
TestValidator is a validator for the "test" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Test ¶
type Test string
Test defines the type for the "test" enum field.
func (Test) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Test) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.