Documentation
¶
Index ¶
- Constants
- Variables
- func AlertID(v int) predicate.NlogAlert
- func AlertIDEQ(v int) predicate.NlogAlert
- func AlertIDIn(vs ...int) predicate.NlogAlert
- func AlertIDNEQ(v int) predicate.NlogAlert
- func AlertIDNotIn(vs ...int) predicate.NlogAlert
- func And(predicates ...predicate.NlogAlert) predicate.NlogAlert
- func CreatedAt(v time.Time) predicate.NlogAlert
- func CreatedAtEQ(v time.Time) predicate.NlogAlert
- func CreatedAtGT(v time.Time) predicate.NlogAlert
- func CreatedAtGTE(v time.Time) predicate.NlogAlert
- func CreatedAtIn(vs ...time.Time) predicate.NlogAlert
- func CreatedAtLT(v time.Time) predicate.NlogAlert
- func CreatedAtLTE(v time.Time) predicate.NlogAlert
- func CreatedAtNEQ(v time.Time) predicate.NlogAlert
- func CreatedAtNotIn(vs ...time.Time) predicate.NlogAlert
- func HasAlert() predicate.NlogAlert
- func HasAlertWith(preds ...predicate.MsgAlert) predicate.NlogAlert
- func HasNlog() predicate.NlogAlert
- func HasNlogWith(preds ...predicate.Nlog) predicate.NlogAlert
- func ID(id int) predicate.NlogAlert
- func IDEQ(id int) predicate.NlogAlert
- func IDGT(id int) predicate.NlogAlert
- func IDGTE(id int) predicate.NlogAlert
- func IDIn(ids ...int) predicate.NlogAlert
- func IDLT(id int) predicate.NlogAlert
- func IDLTE(id int) predicate.NlogAlert
- func IDNEQ(id int) predicate.NlogAlert
- func IDNotIn(ids ...int) predicate.NlogAlert
- func NlogID(v int) predicate.NlogAlert
- func NlogIDEQ(v int) predicate.NlogAlert
- func NlogIDIn(vs ...int) predicate.NlogAlert
- func NlogIDNEQ(v int) predicate.NlogAlert
- func NlogIDNotIn(vs ...int) predicate.NlogAlert
- func Not(p predicate.NlogAlert) predicate.NlogAlert
- func Or(predicates ...predicate.NlogAlert) predicate.NlogAlert
- func ValidColumn(column string) bool
- type OrderOption
- func ByAlertField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAlertID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNlogField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByNlogID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the nlogalert type in the database. Label = "nlog_alert" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldNlogID holds the string denoting the nlog_id field in the database. FieldNlogID = "nlog_id" // FieldAlertID holds the string denoting the alert_id field in the database. FieldAlertID = "alert_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeNlog holds the string denoting the nlog edge name in mutations. EdgeNlog = "nlog" // EdgeAlert holds the string denoting the alert edge name in mutations. EdgeAlert = "alert" // Table holds the table name of the nlogalert in the database. Table = "msg_nlog_alert" // NlogTable is the table that holds the nlog relation/edge. NlogTable = "msg_nlog_alert" // NlogInverseTable is the table name for the Nlog entity. // It exists in this package in order to avoid circular dependency with the "nlog" package. NlogInverseTable = "msg_nlog" // NlogColumn is the table column denoting the nlog relation/edge. NlogColumn = "nlog_id" // AlertTable is the table that holds the alert relation/edge. AlertTable = "msg_nlog_alert" // AlertInverseTable is the table name for the MsgAlert entity. // It exists in this package in order to avoid circular dependency with the "msgalert" package. AlertInverseTable = "msg_alert" // AlertColumn is the table column denoting the alert relation/edge. AlertColumn = "alert_id" )
Variables ¶
var Columns = []string{ FieldID, FieldNlogID, FieldAlertID, FieldCreatedAt, }
Columns holds all SQL columns for nlogalert fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Functions ¶
func AlertID ¶
AlertID applies equality check predicate on the "alert_id" field. It's identical to AlertIDEQ.
func AlertIDNEQ ¶
AlertIDNEQ applies the NEQ predicate on the "alert_id" field.
func AlertIDNotIn ¶
AlertIDNotIn applies the NotIn predicate on the "alert_id" 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 HasAlertWith ¶
HasAlertWith applies the HasEdge predicate on the "alert" edge with a given conditions (other predicates).
func HasNlogWith ¶
HasNlogWith applies the HasEdge predicate on the "nlog" edge with a given conditions (other predicates).
func NlogID ¶
NlogID applies equality check predicate on the "nlog_id" field. It's identical to NlogIDEQ.
func NlogIDNotIn ¶
NlogIDNotIn applies the NotIn predicate on the "nlog_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the NlogAlert queries.
func ByAlertField ¶
func ByAlertField(field string, opts ...sql.OrderTermOption) OrderOption
ByAlertField orders the results by alert field.
func ByAlertID ¶
func ByAlertID(opts ...sql.OrderTermOption) OrderOption
ByAlertID orders the results by the alert_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNlogField ¶
func ByNlogField(field string, opts ...sql.OrderTermOption) OrderOption
ByNlogField orders the results by nlog field.
func ByNlogID ¶
func ByNlogID(opts ...sql.OrderTermOption) OrderOption
ByNlogID orders the results by the nlog_id field.