input

package
v0.0.0-...-444ad2e Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the input type in the database.
	Label = "input"
	// FieldID holds the string denoting the id field in the database.
	FieldID       = "id"       // FieldKind holds the string denoting the kind vertex property in the database.
	FieldKind     = "kind"     // FieldMultiple holds the string denoting the multiple vertex property in the database.
	FieldMultiple = "multiple" // FieldDefaults holds the string denoting the defaults vertex property in the database.
	FieldDefaults = "defaults" // FieldOptions holds the string denoting the options vertex property in the database.
	FieldOptions  = "options"

	// EdgeQuestion holds the string denoting the question edge name in mutations.
	EdgeQuestion = "question"

	// Table holds the table name of the input in the database.
	Table = "inputs"
	// QuestionTable is the table the holds the question relation/edge.
	QuestionTable = "inputs"
	// QuestionInverseTable is the table name for the Question entity.
	// It exists in this package in order to avoid circular dependency with the "question" package.
	QuestionInverseTable = "questions"
	// QuestionColumn is the table column denoting the question relation/edge.
	QuestionColumn = "question_input"
)

Variables

Columns holds all SQL columns for input fields.

View Source
var (
	// DefaultMultiple holds the default value on creation for the multiple field.
	DefaultMultiple bool
)
View Source
var ForeignKeys = []string{
	"question_input",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Input type.

Functions

func And

func And(predicates ...predicate.Input) predicate.Input

And groups list of predicates with the AND operator between them.

func DefaultsIsNil

func DefaultsIsNil() predicate.Input

DefaultsIsNil applies the IsNil predicate on the "defaults" field.

func DefaultsNotNil

func DefaultsNotNil() predicate.Input

DefaultsNotNil applies the NotNil predicate on the "defaults" field.

func HasQuestion

func HasQuestion() predicate.Input

HasQuestion applies the HasEdge predicate on the "question" edge.

func HasQuestionWith

func HasQuestionWith(preds ...predicate.Question) predicate.Input

HasQuestionWith applies the HasEdge predicate on the "question" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Input

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Input

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Input

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Input

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Input

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Input

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Input

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Input

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Input

IDNotIn applies the NotIn predicate on the ID field.

func KindEQ

func KindEQ(v Kind) predicate.Input

KindEQ applies the EQ predicate on the "kind" field.

func KindIn

func KindIn(vs ...Kind) predicate.Input

KindIn applies the In predicate on the "kind" field.

func KindNEQ

func KindNEQ(v Kind) predicate.Input

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...Kind) predicate.Input

KindNotIn applies the NotIn predicate on the "kind" field.

func KindValidator

func KindValidator(k Kind) error

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

func Multiple

func Multiple(v bool) predicate.Input

Multiple applies equality check predicate on the "multiple" field. It's identical to MultipleEQ.

func MultipleEQ

func MultipleEQ(v bool) predicate.Input

MultipleEQ applies the EQ predicate on the "multiple" field.

func MultipleIsNil

func MultipleIsNil() predicate.Input

MultipleIsNil applies the IsNil predicate on the "multiple" field.

func MultipleNEQ

func MultipleNEQ(v bool) predicate.Input

MultipleNEQ applies the NEQ predicate on the "multiple" field.

func MultipleNotNil

func MultipleNotNil() predicate.Input

MultipleNotNil applies the NotNil predicate on the "multiple" field.

func Not

Not applies the not operator on the given predicate.

func OptionsIsNil

func OptionsIsNil() predicate.Input

OptionsIsNil applies the IsNil predicate on the "options" field.

func OptionsNotNil

func OptionsNotNil() predicate.Input

OptionsNotNil applies the NotNil predicate on the "options" field.

func Or

func Or(predicates ...predicate.Input) predicate.Input

Or groups list of predicates with the OR operator between them.

Types

type Kind

type Kind string

Kind defines the type for the kind enum field.

const (
	KindText         Kind = "Text"
	KindOptions      Kind = "Options"
	KindSatisfaction Kind = "Satisfaction"
	KindBoolean      Kind = "Boolean"
)

Kind values.

func (Kind) String

func (s Kind) String() string

Jump to

Keyboard shortcuts

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