Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Answer) predicate.Answer
- func At(v time.Time) predicate.Answer
- func AtEQ(v time.Time) predicate.Answer
- func AtGT(v time.Time) predicate.Answer
- func AtGTE(v time.Time) predicate.Answer
- func AtIn(vs ...time.Time) predicate.Answer
- func AtLT(v time.Time) predicate.Answer
- func AtLTE(v time.Time) predicate.Answer
- func AtNEQ(v time.Time) predicate.Answer
- func AtNotIn(vs ...time.Time) predicate.Answer
- func HasQuestion() predicate.Answer
- func HasQuestionWith(preds ...predicate.Question) predicate.Answer
- func ID(id uuid.UUID) predicate.Answer
- func IDEQ(id uuid.UUID) predicate.Answer
- func IDGT(id uuid.UUID) predicate.Answer
- func IDGTE(id uuid.UUID) predicate.Answer
- func IDIn(ids ...uuid.UUID) predicate.Answer
- func IDLT(id uuid.UUID) predicate.Answer
- func IDLTE(id uuid.UUID) predicate.Answer
- func IDNEQ(id uuid.UUID) predicate.Answer
- func IDNotIn(ids ...uuid.UUID) predicate.Answer
- func Not(p predicate.Answer) predicate.Answer
- func Or(predicates ...predicate.Answer) predicate.Answer
- func Valid(v bool) predicate.Answer
- func ValidEQ(v bool) predicate.Answer
- func ValidIsNil() predicate.Answer
- func ValidNEQ(v bool) predicate.Answer
- func ValidNotNil() predicate.Answer
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 ¶
View Source
var Columns = []string{ FieldID, FieldAt, FieldResponses, FieldValid, }
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 HasQuestion ¶
HasQuestion applies the HasEdge predicate on the "question" edge.
func HasQuestionWith ¶
HasQuestionWith applies the HasEdge predicate on the "question" edge with a given conditions (other predicates).
func Valid ¶
Valid applies equality check predicate on the "valid" field. It's identical to ValidEQ.
func ValidIsNil ¶
ValidIsNil applies the IsNil predicate on the "valid" field.
func ValidNotNil ¶
ValidNotNil applies the NotNil predicate on the "valid" field.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.