test

package
v0.0.0-...-6f1b090 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 And

func And(predicates ...predicate.Test) predicate.Test

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.Test

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Test

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Test

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Test

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Test

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Test

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Test

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Test

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Test

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.Test) predicate.Test

Or groups predicates with the OR operator between them.

func TestEQ

func TestEQ(v Test) predicate.Test

TestEQ applies the EQ predicate on the "test" field.

func TestIn

func TestIn(vs ...Test) predicate.Test

TestIn applies the In predicate on the "test" field.

func TestNEQ

func TestNEQ(v Test) predicate.Test

TestNEQ applies the NEQ predicate on the "test" field.

func TestNotIn

func TestNotIn(vs ...Test) predicate.Test

TestNotIn applies the NotIn predicate on the "test" field.

func TestValidator

func TestValidator(t Test) error

TestValidator is a validator for the "test" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

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.

const (
	TestA Test = "a"
	TestB Test = "b"
)

Test values.

func (Test) MarshalGQL

func (t Test) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Test) String

func (t Test) String() string

func (*Test) UnmarshalGQL

func (t *Test) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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