Documentation ¶
Index ¶
- Constants
- Variables
- func AlertMetas(v int) predicate.Meta
- func AlertMetasEQ(v int) predicate.Meta
- func AlertMetasIn(vs ...int) predicate.Meta
- func AlertMetasIsNil() predicate.Meta
- func AlertMetasNEQ(v int) predicate.Meta
- func AlertMetasNotIn(vs ...int) predicate.Meta
- func AlertMetasNotNil() predicate.Meta
- func And(predicates ...predicate.Meta) predicate.Meta
- func CreatedAt(v time.Time) predicate.Meta
- func CreatedAtEQ(v time.Time) predicate.Meta
- func CreatedAtGT(v time.Time) predicate.Meta
- func CreatedAtGTE(v time.Time) predicate.Meta
- func CreatedAtIn(vs ...time.Time) predicate.Meta
- func CreatedAtIsNil() predicate.Meta
- func CreatedAtLT(v time.Time) predicate.Meta
- func CreatedAtLTE(v time.Time) predicate.Meta
- func CreatedAtNEQ(v time.Time) predicate.Meta
- func CreatedAtNotIn(vs ...time.Time) predicate.Meta
- func CreatedAtNotNil() predicate.Meta
- func HasOwner() predicate.Meta
- func HasOwnerWith(preds ...predicate.Alert) predicate.Meta
- func ID(id int) predicate.Meta
- func IDEQ(id int) predicate.Meta
- func IDGT(id int) predicate.Meta
- func IDGTE(id int) predicate.Meta
- func IDIn(ids ...int) predicate.Meta
- func IDLT(id int) predicate.Meta
- func IDLTE(id int) predicate.Meta
- func IDNEQ(id int) predicate.Meta
- func IDNotIn(ids ...int) predicate.Meta
- func Key(v string) predicate.Meta
- func KeyContains(v string) predicate.Meta
- func KeyContainsFold(v string) predicate.Meta
- func KeyEQ(v string) predicate.Meta
- func KeyEqualFold(v string) predicate.Meta
- func KeyGT(v string) predicate.Meta
- func KeyGTE(v string) predicate.Meta
- func KeyHasPrefix(v string) predicate.Meta
- func KeyHasSuffix(v string) predicate.Meta
- func KeyIn(vs ...string) predicate.Meta
- func KeyLT(v string) predicate.Meta
- func KeyLTE(v string) predicate.Meta
- func KeyNEQ(v string) predicate.Meta
- func KeyNotIn(vs ...string) predicate.Meta
- func Not(p predicate.Meta) predicate.Meta
- func Or(predicates ...predicate.Meta) predicate.Meta
- func UpdatedAt(v time.Time) predicate.Meta
- func UpdatedAtEQ(v time.Time) predicate.Meta
- func UpdatedAtGT(v time.Time) predicate.Meta
- func UpdatedAtGTE(v time.Time) predicate.Meta
- func UpdatedAtIn(vs ...time.Time) predicate.Meta
- func UpdatedAtIsNil() predicate.Meta
- func UpdatedAtLT(v time.Time) predicate.Meta
- func UpdatedAtLTE(v time.Time) predicate.Meta
- func UpdatedAtNEQ(v time.Time) predicate.Meta
- func UpdatedAtNotIn(vs ...time.Time) predicate.Meta
- func UpdatedAtNotNil() predicate.Meta
- func ValidColumn(column string) bool
- func Value(v string) predicate.Meta
- func ValueContains(v string) predicate.Meta
- func ValueContainsFold(v string) predicate.Meta
- func ValueEQ(v string) predicate.Meta
- func ValueEqualFold(v string) predicate.Meta
- func ValueGT(v string) predicate.Meta
- func ValueGTE(v string) predicate.Meta
- func ValueHasPrefix(v string) predicate.Meta
- func ValueHasSuffix(v string) predicate.Meta
- func ValueIn(vs ...string) predicate.Meta
- func ValueLT(v string) predicate.Meta
- func ValueLTE(v string) predicate.Meta
- func ValueNEQ(v string) predicate.Meta
- func ValueNotIn(vs ...string) predicate.Meta
- type OrderOption
- func ByAlertMetas(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKey(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByValue(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the meta type in the database. Label = "meta" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldAlertMetas holds the string denoting the alert_metas field in the database. FieldAlertMetas = "alert_metas" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the meta in the database. Table = "meta" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "meta" // OwnerInverseTable is the table name for the Alert entity. // It exists in this package in order to avoid circular dependency with the "alert" package. OwnerInverseTable = "alerts" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "alert_metas" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // UpdateDefaultCreatedAt holds the default value on update for the "created_at" field. UpdateDefaultCreatedAt 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 // ValueValidator is a validator for the "value" field. It is called by the builders before save. ValueValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldKey, FieldValue, FieldAlertMetas, }
Columns holds all SQL columns for meta fields.
Functions ¶
func AlertMetas ¶ added in v1.5.0
AlertMetas applies equality check predicate on the "alert_metas" field. It's identical to AlertMetasEQ.
func AlertMetasEQ ¶ added in v1.5.0
AlertMetasEQ applies the EQ predicate on the "alert_metas" field.
func AlertMetasIn ¶ added in v1.5.0
AlertMetasIn applies the In predicate on the "alert_metas" field.
func AlertMetasIsNil ¶ added in v1.5.0
AlertMetasIsNil applies the IsNil predicate on the "alert_metas" field.
func AlertMetasNEQ ¶ added in v1.5.0
AlertMetasNEQ applies the NEQ predicate on the "alert_metas" field.
func AlertMetasNotIn ¶ added in v1.5.0
AlertMetasNotIn applies the NotIn predicate on the "alert_metas" field.
func AlertMetasNotNil ¶ added in v1.5.0
AlertMetasNotNil applies the NotNil predicate on the "alert_metas" 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 CreatedAtIsNil ¶ added in v1.3.0
CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil ¶ added in v1.3.0
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" 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 UpdatedAtIsNil ¶ added in v1.3.0
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶ added in v1.3.0
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
type OrderOption ¶ added in v1.6.1
OrderOption defines the ordering options for the Meta queries.
func ByAlertMetas ¶ added in v1.6.1
func ByAlertMetas(opts ...sql.OrderTermOption) OrderOption
ByAlertMetas orders the results by the alert_metas field.
func ByCreatedAt ¶ added in v1.6.1
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶ added in v1.6.1
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKey ¶ added in v1.6.1
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key field.
func ByOwnerField ¶ added in v1.6.1
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByUpdatedAt ¶ added in v1.6.1
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByValue ¶ added in v1.6.1
func ByValue(opts ...sql.OrderTermOption) OrderOption
ByValue orders the results by the value field.