Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Question) predicate.Question
- func Anonymous(v bool) predicate.Question
- func AnonymousEQ(v bool) predicate.Question
- func AnonymousNEQ(v bool) predicate.Question
- func Description(v string) predicate.Question
- func DescriptionContains(v string) predicate.Question
- func DescriptionContainsFold(v string) predicate.Question
- func DescriptionEQ(v string) predicate.Question
- func DescriptionEqualFold(v string) predicate.Question
- func DescriptionGT(v string) predicate.Question
- func DescriptionGTE(v string) predicate.Question
- func DescriptionHasPrefix(v string) predicate.Question
- func DescriptionHasSuffix(v string) predicate.Question
- func DescriptionIn(vs ...string) predicate.Question
- func DescriptionLT(v string) predicate.Question
- func DescriptionLTE(v string) predicate.Question
- func DescriptionNEQ(v string) predicate.Question
- func DescriptionNotIn(vs ...string) predicate.Question
- func HasAnswers() predicate.Question
- func HasAnswersWith(preds ...predicate.Answer) predicate.Question
- func HasFlow() predicate.Question
- func HasFlowWith(preds ...predicate.Flow) predicate.Question
- func HasInput() predicate.Question
- func HasInputWith(preds ...predicate.Input) predicate.Question
- func Hash(v string) predicate.Question
- func HashContains(v string) predicate.Question
- func HashContainsFold(v string) predicate.Question
- func HashEQ(v string) predicate.Question
- func HashEqualFold(v string) predicate.Question
- func HashGT(v string) predicate.Question
- func HashGTE(v string) predicate.Question
- func HashHasPrefix(v string) predicate.Question
- func HashHasSuffix(v string) predicate.Question
- func HashIn(vs ...string) predicate.Question
- func HashLT(v string) predicate.Question
- func HashLTE(v string) predicate.Question
- func HashNEQ(v string) predicate.Question
- func HashNotIn(vs ...string) predicate.Question
- func ID(id uuid.UUID) predicate.Question
- func IDEQ(id uuid.UUID) predicate.Question
- func IDGT(id uuid.UUID) predicate.Question
- func IDGTE(id uuid.UUID) predicate.Question
- func IDIn(ids ...uuid.UUID) predicate.Question
- func IDLT(id uuid.UUID) predicate.Question
- func IDLTE(id uuid.UUID) predicate.Question
- func IDNEQ(id uuid.UUID) predicate.Question
- func IDNotIn(ids ...uuid.UUID) predicate.Question
- func MetadataIsNil() predicate.Question
- func MetadataNotNil() predicate.Question
- func Not(p predicate.Question) predicate.Question
- func Or(predicates ...predicate.Question) predicate.Question
- func Title(v string) predicate.Question
- func TitleContains(v string) predicate.Question
- func TitleContainsFold(v string) predicate.Question
- func TitleEQ(v string) predicate.Question
- func TitleEqualFold(v string) predicate.Question
- func TitleGT(v string) predicate.Question
- func TitleGTE(v string) predicate.Question
- func TitleHasPrefix(v string) predicate.Question
- func TitleHasSuffix(v string) predicate.Question
- func TitleIn(vs ...string) predicate.Question
- func TitleLT(v string) predicate.Question
- func TitleLTE(v string) predicate.Question
- func TitleNEQ(v string) predicate.Question
- func TitleNotIn(vs ...string) predicate.Question
- func Validator(v string) predicate.Question
- func ValidatorContains(v string) predicate.Question
- func ValidatorContainsFold(v string) predicate.Question
- func ValidatorEQ(v string) predicate.Question
- func ValidatorEqualFold(v string) predicate.Question
- func ValidatorGT(v string) predicate.Question
- func ValidatorGTE(v string) predicate.Question
- func ValidatorHasPrefix(v string) predicate.Question
- func ValidatorHasSuffix(v string) predicate.Question
- func ValidatorIn(vs ...string) predicate.Question
- func ValidatorIsNil() predicate.Question
- func ValidatorLT(v string) predicate.Question
- func ValidatorLTE(v string) predicate.Question
- func ValidatorNEQ(v string) predicate.Question
- func ValidatorNotIn(vs ...string) predicate.Question
- func ValidatorNotNil() predicate.Question
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldHash, FieldTitle, FieldDescription, FieldMetadata, FieldValidator, FieldAnonymous, }
Columns holds all SQL columns for question fields.
var ForeignKeys = []string{
"flow_questions",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Question type.
Functions ¶
func Anonymous ¶
Anonymous applies equality check predicate on the "anonymous" field. It's identical to AnonymousEQ.
func AnonymousEQ ¶
AnonymousEQ applies the EQ predicate on the "anonymous" field.
func AnonymousNEQ ¶
AnonymousNEQ applies the NEQ predicate on the "anonymous" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasAnswers ¶
HasAnswers applies the HasEdge predicate on the "answers" edge.
func HasAnswersWith ¶
HasAnswersWith applies the HasEdge predicate on the "answers" edge with a given conditions (other predicates).
func HasFlowWith ¶
HasFlowWith applies the HasEdge predicate on the "flow" edge with a given conditions (other predicates).
func HasInputWith ¶
HasInputWith applies the HasEdge predicate on the "input" edge with a given conditions (other predicates).
func HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func Validator ¶
Validator applies equality check predicate on the "validator" field. It's identical to ValidatorEQ.
func ValidatorContains ¶
ValidatorContains applies the Contains predicate on the "validator" field.
func ValidatorContainsFold ¶
ValidatorContainsFold applies the ContainsFold predicate on the "validator" field.
func ValidatorEQ ¶
ValidatorEQ applies the EQ predicate on the "validator" field.
func ValidatorEqualFold ¶
ValidatorEqualFold applies the EqualFold predicate on the "validator" field.
func ValidatorGT ¶
ValidatorGT applies the GT predicate on the "validator" field.
func ValidatorGTE ¶
ValidatorGTE applies the GTE predicate on the "validator" field.
func ValidatorHasPrefix ¶
ValidatorHasPrefix applies the HasPrefix predicate on the "validator" field.
func ValidatorHasSuffix ¶
ValidatorHasSuffix applies the HasSuffix predicate on the "validator" field.
func ValidatorIn ¶
ValidatorIn applies the In predicate on the "validator" field.
func ValidatorIsNil ¶
ValidatorIsNil applies the IsNil predicate on the "validator" field.
func ValidatorLT ¶
ValidatorLT applies the LT predicate on the "validator" field.
func ValidatorLTE ¶
ValidatorLTE applies the LTE predicate on the "validator" field.
func ValidatorNEQ ¶
ValidatorNEQ applies the NEQ predicate on the "validator" field.
func ValidatorNotIn ¶
ValidatorNotIn applies the NotIn predicate on the "validator" field.
func ValidatorNotNil ¶
ValidatorNotNil applies the NotNil predicate on the "validator" field.
Types ¶
This section is empty.