othertest

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 othertest type in the database.
	Label = "other_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 othertest in the database.
	Table = "other_tests"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldTest,
}

Columns holds all SQL columns for othertest fields.

Functions

func And

func And(predicates ...predicate.OtherTest) predicate.OtherTest

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.OtherTest

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.OtherTest

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.OtherTest

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.OtherTest

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.OtherTest

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.OtherTest

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.OtherTest

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func TestEQ

func TestEQ(v Test) predicate.OtherTest

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

func TestIn

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

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

func TestNEQ

func TestNEQ(v Test) predicate.OtherTest

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

func TestNotIn

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

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 (
	TestC Test = "c"
	TestD Test = "d"
)

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