question

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the question type in the database.
	Label = "question"
	// FieldID holds the string denoting the id field in the database.
	FieldID          = "id"          // FieldHash holds the string denoting the hash vertex property in the database.
	FieldHash        = "hash"        // FieldTitle holds the string denoting the title vertex property in the database.
	FieldTitle       = "title"       // FieldDescription holds the string denoting the description vertex property in the database.
	FieldDescription = "description" // FieldMetadata holds the string denoting the metadata vertex property in the database.
	FieldMetadata    = "metadata"    // FieldValidator holds the string denoting the validator vertex property in the database.
	FieldValidator   = "validator"   // FieldAnonymous holds the string denoting the anonymous vertex property in the database.
	FieldAnonymous   = "anonymous"

	// EdgeAnswers holds the string denoting the answers edge name in mutations.
	EdgeAnswers = "answers"
	// EdgeInput holds the string denoting the input edge name in mutations.
	EdgeInput = "input"
	// EdgeFlow holds the string denoting the flow edge name in mutations.
	EdgeFlow = "flow"

	// Table holds the table name of the question in the database.
	Table = "questions"
	// AnswersTable is the table the holds the answers relation/edge.
	AnswersTable = "answers"
	// AnswersInverseTable is the table name for the Answer entity.
	// It exists in this package in order to avoid circular dependency with the "answer" package.
	AnswersInverseTable = "answers"
	// AnswersColumn is the table column denoting the answers relation/edge.
	AnswersColumn = "question_answers"
	// InputTable is the table the holds the input relation/edge.
	InputTable = "inputs"
	// InputInverseTable is the table name for the Input entity.
	// It exists in this package in order to avoid circular dependency with the "input" package.
	InputInverseTable = "inputs"
	// InputColumn is the table column denoting the input relation/edge.
	InputColumn = "question_input"
	// FlowTable is the table the holds the flow relation/edge.
	FlowTable = "questions"
	// FlowInverseTable is the table name for the Flow entity.
	// It exists in this package in order to avoid circular dependency with the "flow" package.
	FlowInverseTable = "flows"
	// FlowColumn is the table column denoting the flow relation/edge.
	FlowColumn = "flow_questions"
)

Variables

View Source
var (
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DefaultAnonymous holds the default value on creation for the anonymous field.
	DefaultAnonymous bool
)

Columns holds all SQL columns for question fields.

View Source
var ForeignKeys = []string{
	"flow_questions",
}

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

Functions

func And

func And(predicates ...predicate.Question) predicate.Question

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

func Anonymous

func Anonymous(v bool) predicate.Question

Anonymous applies equality check predicate on the "anonymous" field. It's identical to AnonymousEQ.

func AnonymousEQ

func AnonymousEQ(v bool) predicate.Question

AnonymousEQ applies the EQ predicate on the "anonymous" field.

func AnonymousNEQ

func AnonymousNEQ(v bool) predicate.Question

AnonymousNEQ applies the NEQ predicate on the "anonymous" field.

func Description

func Description(v string) predicate.Question

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Question

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Question

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Question

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Question

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Question

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Question

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Question

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Question

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Question

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Question

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Question

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Question

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Question

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasAnswers

func HasAnswers() predicate.Question

HasAnswers applies the HasEdge predicate on the "answers" edge.

func HasAnswersWith

func HasAnswersWith(preds ...predicate.Answer) predicate.Question

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

func HasFlow

func HasFlow() predicate.Question

HasFlow applies the HasEdge predicate on the "flow" edge.

func HasFlowWith

func HasFlowWith(preds ...predicate.Flow) predicate.Question

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

func HasInput

func HasInput() predicate.Question

HasInput applies the HasEdge predicate on the "input" edge.

func HasInputWith

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

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

func Hash

func Hash(v string) predicate.Question

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.Question

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.Question

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.Question

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.Question

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.Question

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.Question

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.Question

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.Question

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.Question

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.Question

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.Question

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.Question

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.Question

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id uuid.UUID) predicate.Question

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Question

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Question

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Question

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Question

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Question

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Question

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MetadataIsNil

func MetadataIsNil() predicate.Question

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Question

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Question) predicate.Question

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

func Title

func Title(v string) predicate.Question

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Question

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Question

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Question

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Question

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Question

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Question

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Question

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Question

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Question

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Question

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Question

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Question

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Question

TitleNotIn applies the NotIn predicate on the "title" field.

func Validator

func Validator(v string) predicate.Question

Validator applies equality check predicate on the "validator" field. It's identical to ValidatorEQ.

func ValidatorContains

func ValidatorContains(v string) predicate.Question

ValidatorContains applies the Contains predicate on the "validator" field.

func ValidatorContainsFold

func ValidatorContainsFold(v string) predicate.Question

ValidatorContainsFold applies the ContainsFold predicate on the "validator" field.

func ValidatorEQ

func ValidatorEQ(v string) predicate.Question

ValidatorEQ applies the EQ predicate on the "validator" field.

func ValidatorEqualFold

func ValidatorEqualFold(v string) predicate.Question

ValidatorEqualFold applies the EqualFold predicate on the "validator" field.

func ValidatorGT

func ValidatorGT(v string) predicate.Question

ValidatorGT applies the GT predicate on the "validator" field.

func ValidatorGTE

func ValidatorGTE(v string) predicate.Question

ValidatorGTE applies the GTE predicate on the "validator" field.

func ValidatorHasPrefix

func ValidatorHasPrefix(v string) predicate.Question

ValidatorHasPrefix applies the HasPrefix predicate on the "validator" field.

func ValidatorHasSuffix

func ValidatorHasSuffix(v string) predicate.Question

ValidatorHasSuffix applies the HasSuffix predicate on the "validator" field.

func ValidatorIn

func ValidatorIn(vs ...string) predicate.Question

ValidatorIn applies the In predicate on the "validator" field.

func ValidatorIsNil

func ValidatorIsNil() predicate.Question

ValidatorIsNil applies the IsNil predicate on the "validator" field.

func ValidatorLT

func ValidatorLT(v string) predicate.Question

ValidatorLT applies the LT predicate on the "validator" field.

func ValidatorLTE

func ValidatorLTE(v string) predicate.Question

ValidatorLTE applies the LTE predicate on the "validator" field.

func ValidatorNEQ

func ValidatorNEQ(v string) predicate.Question

ValidatorNEQ applies the NEQ predicate on the "validator" field.

func ValidatorNotIn

func ValidatorNotIn(vs ...string) predicate.Question

ValidatorNotIn applies the NotIn predicate on the "validator" field.

func ValidatorNotNil

func ValidatorNotNil() predicate.Question

ValidatorNotNil applies the NotNil predicate on the "validator" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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