Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Input) predicate.Input
- func DefaultsIsNil() predicate.Input
- func DefaultsNotNil() predicate.Input
- func HasQuestion() predicate.Input
- func HasQuestionWith(preds ...predicate.Question) predicate.Input
- func ID(id uuid.UUID) predicate.Input
- func IDEQ(id uuid.UUID) predicate.Input
- func IDGT(id uuid.UUID) predicate.Input
- func IDGTE(id uuid.UUID) predicate.Input
- func IDIn(ids ...uuid.UUID) predicate.Input
- func IDLT(id uuid.UUID) predicate.Input
- func IDLTE(id uuid.UUID) predicate.Input
- func IDNEQ(id uuid.UUID) predicate.Input
- func IDNotIn(ids ...uuid.UUID) predicate.Input
- func KindEQ(v Kind) predicate.Input
- func KindIn(vs ...Kind) predicate.Input
- func KindNEQ(v Kind) predicate.Input
- func KindNotIn(vs ...Kind) predicate.Input
- func KindValidator(k Kind) error
- func Multiple(v bool) predicate.Input
- func MultipleEQ(v bool) predicate.Input
- func MultipleIsNil() predicate.Input
- func MultipleNEQ(v bool) predicate.Input
- func MultipleNotNil() predicate.Input
- func Not(p predicate.Input) predicate.Input
- func OptionsIsNil() predicate.Input
- func OptionsNotNil() predicate.Input
- func Or(predicates ...predicate.Input) predicate.Input
- type Kind
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldKind, FieldMultiple, FieldDefaults, FieldOptions, }
Columns holds all SQL columns for input fields.
var ( // DefaultMultiple holds the default value on creation for the multiple field. DefaultMultiple bool )
var ForeignKeys = []string{
"question_input",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Input type.
Functions ¶
func DefaultsIsNil ¶
DefaultsIsNil applies the IsNil predicate on the "defaults" field.
func DefaultsNotNil ¶
DefaultsNotNil applies the NotNil predicate on the "defaults" field.
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 KindValidator ¶
KindValidator is a validator for the "k" field enum values. It is called by the builders before save.
func Multiple ¶
Multiple applies equality check predicate on the "multiple" field. It's identical to MultipleEQ.
func MultipleEQ ¶
MultipleEQ applies the EQ predicate on the "multiple" field.
func MultipleIsNil ¶
MultipleIsNil applies the IsNil predicate on the "multiple" field.
func MultipleNEQ ¶
MultipleNEQ applies the NEQ predicate on the "multiple" field.
func MultipleNotNil ¶
MultipleNotNil applies the NotNil predicate on the "multiple" field.
func OptionsIsNil ¶
OptionsIsNil applies the IsNil predicate on the "options" field.
func OptionsNotNil ¶
OptionsNotNil applies the NotNil predicate on the "options" field.