answer

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 answer type in the database.
	Label = "answer"
	// FieldID holds the string denoting the id field in the database.
	FieldID        = "id"        // FieldAt holds the string denoting the at vertex property in the database.
	FieldAt        = "at"        // FieldResponses holds the string denoting the responses vertex property in the database.
	FieldResponses = "responses" // FieldValid holds the string denoting the valid vertex property in the database.
	FieldValid     = "valid"

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

	// Table holds the table name of the answer in the database.
	Table = "answers"
	// QuestionTable is the table the holds the question relation/edge.
	QuestionTable = "answers"
	// 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_answers"
)

Variables

Columns holds all SQL columns for answer fields.

View Source
var (
	// DefaultAt holds the default value on creation for the at field.
	DefaultAt func() time.Time
)
View Source
var ForeignKeys = []string{
	"question_answers",
}

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

Functions

func And

func And(predicates ...predicate.Answer) predicate.Answer

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

func At

func At(v time.Time) predicate.Answer

At applies equality check predicate on the "at" field. It's identical to AtEQ.

func AtEQ

func AtEQ(v time.Time) predicate.Answer

AtEQ applies the EQ predicate on the "at" field.

func AtGT

func AtGT(v time.Time) predicate.Answer

AtGT applies the GT predicate on the "at" field.

func AtGTE

func AtGTE(v time.Time) predicate.Answer

AtGTE applies the GTE predicate on the "at" field.

func AtIn

func AtIn(vs ...time.Time) predicate.Answer

AtIn applies the In predicate on the "at" field.

func AtLT

func AtLT(v time.Time) predicate.Answer

AtLT applies the LT predicate on the "at" field.

func AtLTE

func AtLTE(v time.Time) predicate.Answer

AtLTE applies the LTE predicate on the "at" field.

func AtNEQ

func AtNEQ(v time.Time) predicate.Answer

AtNEQ applies the NEQ predicate on the "at" field.

func AtNotIn

func AtNotIn(vs ...time.Time) predicate.Answer

AtNotIn applies the NotIn predicate on the "at" field.

func HasQuestion

func HasQuestion() predicate.Answer

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

func HasQuestionWith

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

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

func ID

func ID(id uuid.UUID) predicate.Answer

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Answer

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Answer

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Answer

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Answer

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Answer

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Answer

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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

func Valid

func Valid(v bool) predicate.Answer

Valid applies equality check predicate on the "valid" field. It's identical to ValidEQ.

func ValidEQ

func ValidEQ(v bool) predicate.Answer

ValidEQ applies the EQ predicate on the "valid" field.

func ValidIsNil

func ValidIsNil() predicate.Answer

ValidIsNil applies the IsNil predicate on the "valid" field.

func ValidNEQ

func ValidNEQ(v bool) predicate.Answer

ValidNEQ applies the NEQ predicate on the "valid" field.

func ValidNotNil

func ValidNotNil() predicate.Answer

ValidNotNil applies the NotNil predicate on the "valid" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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