Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Failure) predicate.Failure
- func Error(v string) predicate.Failure
- func ErrorContains(v string) predicate.Failure
- func ErrorContainsFold(v string) predicate.Failure
- func ErrorEQ(v string) predicate.Failure
- func ErrorEqualFold(v string) predicate.Failure
- func ErrorGT(v string) predicate.Failure
- func ErrorGTE(v string) predicate.Failure
- func ErrorHasPrefix(v string) predicate.Failure
- func ErrorHasSuffix(v string) predicate.Failure
- func ErrorIn(vs ...string) predicate.Failure
- func ErrorLT(v string) predicate.Failure
- func ErrorLTE(v string) predicate.Failure
- func ErrorNEQ(v string) predicate.Failure
- func ErrorNotIn(vs ...string) predicate.Failure
- func ID(id int) predicate.Failure
- func IDEQ(id int) predicate.Failure
- func IDGT(id int) predicate.Failure
- func IDGTE(id int) predicate.Failure
- func IDIn(ids ...int) predicate.Failure
- func IDLT(id int) predicate.Failure
- func IDLTE(id int) predicate.Failure
- func IDNEQ(id int) predicate.Failure
- func IDNotIn(ids ...int) predicate.Failure
- func Idx(v int) predicate.Failure
- func IdxEQ(v int) predicate.Failure
- func IdxGT(v int) predicate.Failure
- func IdxGTE(v int) predicate.Failure
- func IdxIn(vs ...int) predicate.Failure
- func IdxLT(v int) predicate.Failure
- func IdxLTE(v int) predicate.Failure
- func IdxNEQ(v int) predicate.Failure
- func IdxNotIn(vs ...int) predicate.Failure
- func Not(p predicate.Failure) predicate.Failure
- func Or(predicates ...predicate.Failure) predicate.Failure
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the failure type in the database. Label = "failure" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldError holds the string denoting the error field in the database. FieldError = "error" // FieldIdx holds the string denoting the idx field in the database. FieldIdx = "idx" // Table holds the table name of the failure in the database. Table = "failures" )
Variables ¶
var Columns = []string{ FieldID, FieldError, FieldIdx, }
Columns holds all SQL columns for failure fields.
var ForeignKeys = []string{
"alert_failures",
"incident_failures",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "failures" table and are not defined as standalone fields in the schema.
Functions ¶
func Error ¶
Error applies equality check predicate on the "Error" field. It's identical to ErrorEQ.
func ErrorContains ¶
ErrorContains applies the Contains predicate on the "Error" field.
func ErrorContainsFold ¶
ErrorContainsFold applies the ContainsFold predicate on the "Error" field.
func ErrorEqualFold ¶
ErrorEqualFold applies the EqualFold predicate on the "Error" field.
func ErrorHasPrefix ¶
ErrorHasPrefix applies the HasPrefix predicate on the "Error" field.
func ErrorHasSuffix ¶
ErrorHasSuffix applies the HasSuffix predicate on the "Error" field.
func ErrorNotIn ¶
ErrorNotIn applies the NotIn predicate on the "Error" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.