Documentation ¶
Index ¶
- Constants
- Variables
- func ActionEQ(v Action) predicate.Message
- func ActionIn(vs ...Action) predicate.Message
- func ActionNEQ(v Action) predicate.Message
- func ActionNotIn(vs ...Action) predicate.Message
- func ActionValidator(a Action) error
- func And(predicates ...predicate.Message) predicate.Message
- func AutoRemove(v bool) predicate.Message
- func AutoRemoveEQ(v bool) predicate.Message
- func AutoRemoveNEQ(v bool) predicate.Message
- func AutoRemoveTime(v int) predicate.Message
- func AutoRemoveTimeEQ(v int) predicate.Message
- func AutoRemoveTimeGT(v int) predicate.Message
- func AutoRemoveTimeGTE(v int) predicate.Message
- func AutoRemoveTimeIn(vs ...int) predicate.Message
- func AutoRemoveTimeLT(v int) predicate.Message
- func AutoRemoveTimeLTE(v int) predicate.Message
- func AutoRemoveTimeNEQ(v int) predicate.Message
- func AutoRemoveTimeNotIn(vs ...int) predicate.Message
- func Enable(v bool) predicate.Message
- func EnableEQ(v bool) predicate.Message
- func EnableNEQ(v bool) predicate.Message
- func ID(id int) predicate.Message
- func IDEQ(id int) predicate.Message
- func IDGT(id int) predicate.Message
- func IDGTE(id int) predicate.Message
- func IDIn(ids ...int) predicate.Message
- func IDLT(id int) predicate.Message
- func IDLTE(id int) predicate.Message
- func IDNEQ(id int) predicate.Message
- func IDNotIn(ids ...int) predicate.Message
- func Message(v string) predicate.Message
- func MessageContains(v string) predicate.Message
- func MessageContainsFold(v string) predicate.Message
- func MessageEQ(v string) predicate.Message
- func MessageEqualFold(v string) predicate.Message
- func MessageGT(v string) predicate.Message
- func MessageGTE(v string) predicate.Message
- func MessageHasPrefix(v string) predicate.Message
- func MessageHasSuffix(v string) predicate.Message
- func MessageIn(vs ...string) predicate.Message
- func MessageLT(v string) predicate.Message
- func MessageLTE(v string) predicate.Message
- func MessageNEQ(v string) predicate.Message
- func MessageNotIn(vs ...string) predicate.Message
- func Not(p predicate.Message) predicate.Message
- func Or(predicates ...predicate.Message) predicate.Message
- func Type(v int) predicate.Message
- func TypeEQ(v int) predicate.Message
- func TypeGT(v int) predicate.Message
- func TypeGTE(v int) predicate.Message
- func TypeIn(vs ...int) predicate.Message
- func TypeLT(v int) predicate.Message
- func TypeLTE(v int) predicate.Message
- func TypeNEQ(v int) predicate.Message
- func TypeNotIn(vs ...int) predicate.Message
- func ValidColumn(column string) bool
- type Action
Constants ¶
const ( // Label holds the string label denoting the message type in the database. Label = "message" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldAction holds the string denoting the action field in the database. FieldAction = "action" // FieldMessage holds the string denoting the message field in the database. FieldMessage = "message" // FieldAutoRemove holds the string denoting the auto_remove field in the database. FieldAutoRemove = "auto_remove" // FieldAutoRemoveTime holds the string denoting the auto_remove_time field in the database. FieldAutoRemoveTime = "auto_remove_time" // FieldEnable holds the string denoting the enable field in the database. FieldEnable = "enable" // Table holds the table name of the message in the database. Table = "messages" )
Variables ¶
var ( // DefaultType holds the default value on creation for the "type" field. DefaultType int // DefaultMessage holds the default value on creation for the "message" field. DefaultMessage string // DefaultAutoRemove holds the default value on creation for the "auto_remove" field. DefaultAutoRemove bool // DefaultAutoRemoveTime holds the default value on creation for the "auto_remove_time" field. DefaultAutoRemoveTime int // DefaultEnable holds the default value on creation for the "enable" field. DefaultEnable bool )
var Columns = []string{ FieldID, FieldType, FieldAction, FieldMessage, FieldAutoRemove, FieldAutoRemoveTime, FieldEnable, }
Columns holds all SQL columns for message fields.
Functions ¶
func ActionNotIn ¶
ActionNotIn applies the NotIn predicate on the "action" field.
func ActionValidator ¶
ActionValidator is a validator for the "action" field enum values. It is called by the builders before save.
func AutoRemove ¶
AutoRemove applies equality check predicate on the "auto_remove" field. It's identical to AutoRemoveEQ.
func AutoRemoveEQ ¶
AutoRemoveEQ applies the EQ predicate on the "auto_remove" field.
func AutoRemoveNEQ ¶
AutoRemoveNEQ applies the NEQ predicate on the "auto_remove" field.
func AutoRemoveTime ¶
AutoRemoveTime applies equality check predicate on the "auto_remove_time" field. It's identical to AutoRemoveTimeEQ.
func AutoRemoveTimeEQ ¶
AutoRemoveTimeEQ applies the EQ predicate on the "auto_remove_time" field.
func AutoRemoveTimeGT ¶
AutoRemoveTimeGT applies the GT predicate on the "auto_remove_time" field.
func AutoRemoveTimeGTE ¶
AutoRemoveTimeGTE applies the GTE predicate on the "auto_remove_time" field.
func AutoRemoveTimeIn ¶
AutoRemoveTimeIn applies the In predicate on the "auto_remove_time" field.
func AutoRemoveTimeLT ¶
AutoRemoveTimeLT applies the LT predicate on the "auto_remove_time" field.
func AutoRemoveTimeLTE ¶
AutoRemoveTimeLTE applies the LTE predicate on the "auto_remove_time" field.
func AutoRemoveTimeNEQ ¶
AutoRemoveTimeNEQ applies the NEQ predicate on the "auto_remove_time" field.
func AutoRemoveTimeNotIn ¶
AutoRemoveTimeNotIn applies the NotIn predicate on the "auto_remove_time" field.
func Enable ¶
Enable applies equality check predicate on the "enable" field. It's identical to EnableEQ.
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).