Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Learning) predicate.Learning
- func CategoryEQ(v Category) predicate.Learning
- func CategoryIn(vs ...Category) predicate.Learning
- func CategoryNEQ(v Category) predicate.Learning
- func CategoryNotIn(vs ...Category) predicate.Learning
- func CategoryValidator(c Category) error
- func Confidence(v float64) predicate.Learning
- func ConfidenceEQ(v float64) predicate.Learning
- func ConfidenceGT(v float64) predicate.Learning
- func ConfidenceGTE(v float64) predicate.Learning
- func ConfidenceIn(vs ...float64) predicate.Learning
- func ConfidenceLT(v float64) predicate.Learning
- func ConfidenceLTE(v float64) predicate.Learning
- func ConfidenceNEQ(v float64) predicate.Learning
- func ConfidenceNotIn(vs ...float64) predicate.Learning
- func CreatedAt(v time.Time) predicate.Learning
- func CreatedAtEQ(v time.Time) predicate.Learning
- func CreatedAtGT(v time.Time) predicate.Learning
- func CreatedAtGTE(v time.Time) predicate.Learning
- func CreatedAtIn(vs ...time.Time) predicate.Learning
- func CreatedAtLT(v time.Time) predicate.Learning
- func CreatedAtLTE(v time.Time) predicate.Learning
- func CreatedAtNEQ(v time.Time) predicate.Learning
- func CreatedAtNotIn(vs ...time.Time) predicate.Learning
- func Diagnosis(v string) predicate.Learning
- func DiagnosisContains(v string) predicate.Learning
- func DiagnosisContainsFold(v string) predicate.Learning
- func DiagnosisEQ(v string) predicate.Learning
- func DiagnosisEqualFold(v string) predicate.Learning
- func DiagnosisGT(v string) predicate.Learning
- func DiagnosisGTE(v string) predicate.Learning
- func DiagnosisHasPrefix(v string) predicate.Learning
- func DiagnosisHasSuffix(v string) predicate.Learning
- func DiagnosisIn(vs ...string) predicate.Learning
- func DiagnosisIsNil() predicate.Learning
- func DiagnosisLT(v string) predicate.Learning
- func DiagnosisLTE(v string) predicate.Learning
- func DiagnosisNEQ(v string) predicate.Learning
- func DiagnosisNotIn(vs ...string) predicate.Learning
- func DiagnosisNotNil() predicate.Learning
- func ErrorPattern(v string) predicate.Learning
- func ErrorPatternContains(v string) predicate.Learning
- func ErrorPatternContainsFold(v string) predicate.Learning
- func ErrorPatternEQ(v string) predicate.Learning
- func ErrorPatternEqualFold(v string) predicate.Learning
- func ErrorPatternGT(v string) predicate.Learning
- func ErrorPatternGTE(v string) predicate.Learning
- func ErrorPatternHasPrefix(v string) predicate.Learning
- func ErrorPatternHasSuffix(v string) predicate.Learning
- func ErrorPatternIn(vs ...string) predicate.Learning
- func ErrorPatternIsNil() predicate.Learning
- func ErrorPatternLT(v string) predicate.Learning
- func ErrorPatternLTE(v string) predicate.Learning
- func ErrorPatternNEQ(v string) predicate.Learning
- func ErrorPatternNotIn(vs ...string) predicate.Learning
- func ErrorPatternNotNil() predicate.Learning
- func Fix(v string) predicate.Learning
- func FixContains(v string) predicate.Learning
- func FixContainsFold(v string) predicate.Learning
- func FixEQ(v string) predicate.Learning
- func FixEqualFold(v string) predicate.Learning
- func FixGT(v string) predicate.Learning
- func FixGTE(v string) predicate.Learning
- func FixHasPrefix(v string) predicate.Learning
- func FixHasSuffix(v string) predicate.Learning
- func FixIn(vs ...string) predicate.Learning
- func FixIsNil() predicate.Learning
- func FixLT(v string) predicate.Learning
- func FixLTE(v string) predicate.Learning
- func FixNEQ(v string) predicate.Learning
- func FixNotIn(vs ...string) predicate.Learning
- func FixNotNil() predicate.Learning
- func ID(id uuid.UUID) predicate.Learning
- func IDEQ(id uuid.UUID) predicate.Learning
- func IDGT(id uuid.UUID) predicate.Learning
- func IDGTE(id uuid.UUID) predicate.Learning
- func IDIn(ids ...uuid.UUID) predicate.Learning
- func IDLT(id uuid.UUID) predicate.Learning
- func IDLTE(id uuid.UUID) predicate.Learning
- func IDNEQ(id uuid.UUID) predicate.Learning
- func IDNotIn(ids ...uuid.UUID) predicate.Learning
- func Not(p predicate.Learning) predicate.Learning
- func OccurrenceCount(v int) predicate.Learning
- func OccurrenceCountEQ(v int) predicate.Learning
- func OccurrenceCountGT(v int) predicate.Learning
- func OccurrenceCountGTE(v int) predicate.Learning
- func OccurrenceCountIn(vs ...int) predicate.Learning
- func OccurrenceCountLT(v int) predicate.Learning
- func OccurrenceCountLTE(v int) predicate.Learning
- func OccurrenceCountNEQ(v int) predicate.Learning
- func OccurrenceCountNotIn(vs ...int) predicate.Learning
- func Or(predicates ...predicate.Learning) predicate.Learning
- func SuccessCount(v int) predicate.Learning
- func SuccessCountEQ(v int) predicate.Learning
- func SuccessCountGT(v int) predicate.Learning
- func SuccessCountGTE(v int) predicate.Learning
- func SuccessCountIn(vs ...int) predicate.Learning
- func SuccessCountLT(v int) predicate.Learning
- func SuccessCountLTE(v int) predicate.Learning
- func SuccessCountNEQ(v int) predicate.Learning
- func SuccessCountNotIn(vs ...int) predicate.Learning
- func TagsIsNil() predicate.Learning
- func TagsNotNil() predicate.Learning
- func Trigger(v string) predicate.Learning
- func TriggerContains(v string) predicate.Learning
- func TriggerContainsFold(v string) predicate.Learning
- func TriggerEQ(v string) predicate.Learning
- func TriggerEqualFold(v string) predicate.Learning
- func TriggerGT(v string) predicate.Learning
- func TriggerGTE(v string) predicate.Learning
- func TriggerHasPrefix(v string) predicate.Learning
- func TriggerHasSuffix(v string) predicate.Learning
- func TriggerIn(vs ...string) predicate.Learning
- func TriggerLT(v string) predicate.Learning
- func TriggerLTE(v string) predicate.Learning
- func TriggerNEQ(v string) predicate.Learning
- func TriggerNotIn(vs ...string) predicate.Learning
- func UpdatedAt(v time.Time) predicate.Learning
- func UpdatedAtEQ(v time.Time) predicate.Learning
- func UpdatedAtGT(v time.Time) predicate.Learning
- func UpdatedAtGTE(v time.Time) predicate.Learning
- func UpdatedAtIn(vs ...time.Time) predicate.Learning
- func UpdatedAtLT(v time.Time) predicate.Learning
- func UpdatedAtLTE(v time.Time) predicate.Learning
- func UpdatedAtNEQ(v time.Time) predicate.Learning
- func UpdatedAtNotIn(vs ...time.Time) predicate.Learning
- func ValidColumn(column string) bool
- type Category
- type OrderOption
- func ByCategory(opts ...sql.OrderTermOption) OrderOption
- func ByConfidence(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDiagnosis(opts ...sql.OrderTermOption) OrderOption
- func ByErrorPattern(opts ...sql.OrderTermOption) OrderOption
- func ByFix(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOccurrenceCount(opts ...sql.OrderTermOption) OrderOption
- func BySuccessCount(opts ...sql.OrderTermOption) OrderOption
- func ByTrigger(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the learning type in the database. Label = "learning" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTrigger holds the string denoting the trigger field in the database. FieldTrigger = "trigger" // FieldErrorPattern holds the string denoting the error_pattern field in the database. FieldErrorPattern = "error_pattern" // FieldDiagnosis holds the string denoting the diagnosis field in the database. FieldDiagnosis = "diagnosis" // FieldFix holds the string denoting the fix field in the database. FieldFix = "fix" // FieldCategory holds the string denoting the category field in the database. FieldCategory = "category" // FieldTags holds the string denoting the tags field in the database. FieldTags = "tags" // FieldOccurrenceCount holds the string denoting the occurrence_count field in the database. FieldOccurrenceCount = "occurrence_count" // FieldSuccessCount holds the string denoting the success_count field in the database. FieldSuccessCount = "success_count" // FieldConfidence holds the string denoting the confidence field in the database. FieldConfidence = "confidence" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // Table holds the table name of the learning in the database. Table = "learnings" )
Variables ¶
var ( // TriggerValidator is a validator for the "trigger" field. It is called by the builders before save. TriggerValidator func(string) error // DefaultOccurrenceCount holds the default value on creation for the "occurrence_count" field. DefaultOccurrenceCount int // DefaultSuccessCount holds the default value on creation for the "success_count" field. DefaultSuccessCount int // DefaultConfidence holds the default value on creation for the "confidence" field. DefaultConfidence float64 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldTrigger, FieldErrorPattern, FieldDiagnosis, FieldFix, FieldCategory, FieldTags, FieldOccurrenceCount, FieldSuccessCount, FieldConfidence, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for learning fields.
Functions ¶
func CategoryEQ ¶
CategoryEQ applies the EQ predicate on the "category" field.
func CategoryIn ¶
CategoryIn applies the In predicate on the "category" field.
func CategoryNEQ ¶
CategoryNEQ applies the NEQ predicate on the "category" field.
func CategoryNotIn ¶
CategoryNotIn applies the NotIn predicate on the "category" field.
func CategoryValidator ¶
CategoryValidator is a validator for the "category" field enum values. It is called by the builders before save.
func Confidence ¶
Confidence applies equality check predicate on the "confidence" field. It's identical to ConfidenceEQ.
func ConfidenceEQ ¶
ConfidenceEQ applies the EQ predicate on the "confidence" field.
func ConfidenceGT ¶
ConfidenceGT applies the GT predicate on the "confidence" field.
func ConfidenceGTE ¶
ConfidenceGTE applies the GTE predicate on the "confidence" field.
func ConfidenceIn ¶
ConfidenceIn applies the In predicate on the "confidence" field.
func ConfidenceLT ¶
ConfidenceLT applies the LT predicate on the "confidence" field.
func ConfidenceLTE ¶
ConfidenceLTE applies the LTE predicate on the "confidence" field.
func ConfidenceNEQ ¶
ConfidenceNEQ applies the NEQ predicate on the "confidence" field.
func ConfidenceNotIn ¶
ConfidenceNotIn applies the NotIn predicate on the "confidence" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Diagnosis ¶
Diagnosis applies equality check predicate on the "diagnosis" field. It's identical to DiagnosisEQ.
func DiagnosisContains ¶
DiagnosisContains applies the Contains predicate on the "diagnosis" field.
func DiagnosisContainsFold ¶
DiagnosisContainsFold applies the ContainsFold predicate on the "diagnosis" field.
func DiagnosisEQ ¶
DiagnosisEQ applies the EQ predicate on the "diagnosis" field.
func DiagnosisEqualFold ¶
DiagnosisEqualFold applies the EqualFold predicate on the "diagnosis" field.
func DiagnosisGT ¶
DiagnosisGT applies the GT predicate on the "diagnosis" field.
func DiagnosisGTE ¶
DiagnosisGTE applies the GTE predicate on the "diagnosis" field.
func DiagnosisHasPrefix ¶
DiagnosisHasPrefix applies the HasPrefix predicate on the "diagnosis" field.
func DiagnosisHasSuffix ¶
DiagnosisHasSuffix applies the HasSuffix predicate on the "diagnosis" field.
func DiagnosisIn ¶
DiagnosisIn applies the In predicate on the "diagnosis" field.
func DiagnosisIsNil ¶
DiagnosisIsNil applies the IsNil predicate on the "diagnosis" field.
func DiagnosisLT ¶
DiagnosisLT applies the LT predicate on the "diagnosis" field.
func DiagnosisLTE ¶
DiagnosisLTE applies the LTE predicate on the "diagnosis" field.
func DiagnosisNEQ ¶
DiagnosisNEQ applies the NEQ predicate on the "diagnosis" field.
func DiagnosisNotIn ¶
DiagnosisNotIn applies the NotIn predicate on the "diagnosis" field.
func DiagnosisNotNil ¶
DiagnosisNotNil applies the NotNil predicate on the "diagnosis" field.
func ErrorPattern ¶
ErrorPattern applies equality check predicate on the "error_pattern" field. It's identical to ErrorPatternEQ.
func ErrorPatternContains ¶
ErrorPatternContains applies the Contains predicate on the "error_pattern" field.
func ErrorPatternContainsFold ¶
ErrorPatternContainsFold applies the ContainsFold predicate on the "error_pattern" field.
func ErrorPatternEQ ¶
ErrorPatternEQ applies the EQ predicate on the "error_pattern" field.
func ErrorPatternEqualFold ¶
ErrorPatternEqualFold applies the EqualFold predicate on the "error_pattern" field.
func ErrorPatternGT ¶
ErrorPatternGT applies the GT predicate on the "error_pattern" field.
func ErrorPatternGTE ¶
ErrorPatternGTE applies the GTE predicate on the "error_pattern" field.
func ErrorPatternHasPrefix ¶
ErrorPatternHasPrefix applies the HasPrefix predicate on the "error_pattern" field.
func ErrorPatternHasSuffix ¶
ErrorPatternHasSuffix applies the HasSuffix predicate on the "error_pattern" field.
func ErrorPatternIn ¶
ErrorPatternIn applies the In predicate on the "error_pattern" field.
func ErrorPatternIsNil ¶
ErrorPatternIsNil applies the IsNil predicate on the "error_pattern" field.
func ErrorPatternLT ¶
ErrorPatternLT applies the LT predicate on the "error_pattern" field.
func ErrorPatternLTE ¶
ErrorPatternLTE applies the LTE predicate on the "error_pattern" field.
func ErrorPatternNEQ ¶
ErrorPatternNEQ applies the NEQ predicate on the "error_pattern" field.
func ErrorPatternNotIn ¶
ErrorPatternNotIn applies the NotIn predicate on the "error_pattern" field.
func ErrorPatternNotNil ¶
ErrorPatternNotNil applies the NotNil predicate on the "error_pattern" field.
func FixContains ¶
FixContains applies the Contains predicate on the "fix" field.
func FixContainsFold ¶
FixContainsFold applies the ContainsFold predicate on the "fix" field.
func FixEqualFold ¶
FixEqualFold applies the EqualFold predicate on the "fix" field.
func FixHasPrefix ¶
FixHasPrefix applies the HasPrefix predicate on the "fix" field.
func FixHasSuffix ¶
FixHasSuffix applies the HasSuffix predicate on the "fix" field.
func OccurrenceCount ¶
OccurrenceCount applies equality check predicate on the "occurrence_count" field. It's identical to OccurrenceCountEQ.
func OccurrenceCountEQ ¶
OccurrenceCountEQ applies the EQ predicate on the "occurrence_count" field.
func OccurrenceCountGT ¶
OccurrenceCountGT applies the GT predicate on the "occurrence_count" field.
func OccurrenceCountGTE ¶
OccurrenceCountGTE applies the GTE predicate on the "occurrence_count" field.
func OccurrenceCountIn ¶
OccurrenceCountIn applies the In predicate on the "occurrence_count" field.
func OccurrenceCountLT ¶
OccurrenceCountLT applies the LT predicate on the "occurrence_count" field.
func OccurrenceCountLTE ¶
OccurrenceCountLTE applies the LTE predicate on the "occurrence_count" field.
func OccurrenceCountNEQ ¶
OccurrenceCountNEQ applies the NEQ predicate on the "occurrence_count" field.
func OccurrenceCountNotIn ¶
OccurrenceCountNotIn applies the NotIn predicate on the "occurrence_count" field.
func SuccessCount ¶
SuccessCount applies equality check predicate on the "success_count" field. It's identical to SuccessCountEQ.
func SuccessCountEQ ¶
SuccessCountEQ applies the EQ predicate on the "success_count" field.
func SuccessCountGT ¶
SuccessCountGT applies the GT predicate on the "success_count" field.
func SuccessCountGTE ¶
SuccessCountGTE applies the GTE predicate on the "success_count" field.
func SuccessCountIn ¶
SuccessCountIn applies the In predicate on the "success_count" field.
func SuccessCountLT ¶
SuccessCountLT applies the LT predicate on the "success_count" field.
func SuccessCountLTE ¶
SuccessCountLTE applies the LTE predicate on the "success_count" field.
func SuccessCountNEQ ¶
SuccessCountNEQ applies the NEQ predicate on the "success_count" field.
func SuccessCountNotIn ¶
SuccessCountNotIn applies the NotIn predicate on the "success_count" field.
func TagsNotNil ¶
TagsNotNil applies the NotNil predicate on the "tags" field.
func Trigger ¶
Trigger applies equality check predicate on the "trigger" field. It's identical to TriggerEQ.
func TriggerContains ¶
TriggerContains applies the Contains predicate on the "trigger" field.
func TriggerContainsFold ¶
TriggerContainsFold applies the ContainsFold predicate on the "trigger" field.
func TriggerEqualFold ¶
TriggerEqualFold applies the EqualFold predicate on the "trigger" field.
func TriggerGTE ¶
TriggerGTE applies the GTE predicate on the "trigger" field.
func TriggerHasPrefix ¶
TriggerHasPrefix applies the HasPrefix predicate on the "trigger" field.
func TriggerHasSuffix ¶
TriggerHasSuffix applies the HasSuffix predicate on the "trigger" field.
func TriggerLTE ¶
TriggerLTE applies the LTE predicate on the "trigger" field.
func TriggerNEQ ¶
TriggerNEQ applies the NEQ predicate on the "trigger" field.
func TriggerNotIn ¶
TriggerNotIn applies the NotIn predicate on the "trigger" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Category ¶
type Category string
Category defines the type for the "category" enum field.
type OrderOption ¶
OrderOption defines the ordering options for the Learning queries.
func ByCategory ¶
func ByCategory(opts ...sql.OrderTermOption) OrderOption
ByCategory orders the results by the category field.
func ByConfidence ¶
func ByConfidence(opts ...sql.OrderTermOption) OrderOption
ByConfidence orders the results by the confidence field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDiagnosis ¶
func ByDiagnosis(opts ...sql.OrderTermOption) OrderOption
ByDiagnosis orders the results by the diagnosis field.
func ByErrorPattern ¶
func ByErrorPattern(opts ...sql.OrderTermOption) OrderOption
ByErrorPattern orders the results by the error_pattern field.
func ByFix ¶
func ByFix(opts ...sql.OrderTermOption) OrderOption
ByFix orders the results by the fix field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOccurrenceCount ¶
func ByOccurrenceCount(opts ...sql.OrderTermOption) OrderOption
ByOccurrenceCount orders the results by the occurrence_count field.
func BySuccessCount ¶
func BySuccessCount(opts ...sql.OrderTermOption) OrderOption
BySuccessCount orders the results by the success_count field.
func ByTrigger ¶
func ByTrigger(opts ...sql.OrderTermOption) OrderOption
ByTrigger orders the results by the trigger field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.