Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Message) predicate.Message
- func CreatedAt(v time.Time) predicate.Message
- func CreatedAtEQ(v time.Time) predicate.Message
- func CreatedAtGT(v time.Time) predicate.Message
- func CreatedAtGTE(v time.Time) predicate.Message
- func CreatedAtIn(vs ...time.Time) predicate.Message
- func CreatedAtLT(v time.Time) predicate.Message
- func CreatedAtLTE(v time.Time) predicate.Message
- func CreatedAtNEQ(v time.Time) predicate.Message
- func CreatedAtNotIn(vs ...time.Time) 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 Not(p predicate.Message) predicate.Message
- func Or(predicates ...predicate.Message) predicate.Message
- func Text(v string) predicate.Message
- func TextContains(v string) predicate.Message
- func TextContainsFold(v string) predicate.Message
- func TextEQ(v string) predicate.Message
- func TextEqualFold(v string) predicate.Message
- func TextGT(v string) predicate.Message
- func TextGTE(v string) predicate.Message
- func TextHasPrefix(v string) predicate.Message
- func TextHasSuffix(v string) predicate.Message
- func TextIn(vs ...string) predicate.Message
- func TextLT(v string) predicate.Message
- func TextLTE(v string) predicate.Message
- func TextNEQ(v string) predicate.Message
- func TextNotIn(vs ...string) predicate.Message
- func UID(v string) predicate.Message
- func UIDContains(v string) predicate.Message
- func UIDContainsFold(v string) predicate.Message
- func UIDEQ(v string) predicate.Message
- func UIDEqualFold(v string) predicate.Message
- func UIDGT(v string) predicate.Message
- func UIDGTE(v string) predicate.Message
- func UIDHasPrefix(v string) predicate.Message
- func UIDHasSuffix(v string) predicate.Message
- func UIDIn(vs ...string) predicate.Message
- func UIDLT(v string) predicate.Message
- func UIDLTE(v string) predicate.Message
- func UIDNEQ(v string) predicate.Message
- func UIDNotIn(vs ...string) predicate.Message
- func UpdatedAt(v time.Time) predicate.Message
- func UpdatedAtEQ(v time.Time) predicate.Message
- func UpdatedAtGT(v time.Time) predicate.Message
- func UpdatedAtGTE(v time.Time) predicate.Message
- func UpdatedAtIn(vs ...time.Time) predicate.Message
- func UpdatedAtLT(v time.Time) predicate.Message
- func UpdatedAtLTE(v time.Time) predicate.Message
- func UpdatedAtNEQ(v time.Time) predicate.Message
- func UpdatedAtNotIn(vs ...time.Time) predicate.Message
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" // FieldUID holds the string denoting the uid vertex property in the database. FieldUID = "uid" // FieldText holds the string denoting the text vertex property in the database. FieldText = "text" // FieldCreatedAt holds the string denoting the created_at vertex property in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at vertex property in the database. FieldUpdatedAt = "updated_at" // Table holds the table name of the message in the database. Table = "messages" )
Variables ¶
var ( // UIDValidator is a validator for the "uid" field. It is called by the builders before save. UIDValidator = func() func(string) error { validators := descUID.Validators fns := [...]func(string) error{ validators[0].(func(string) error), validators[1].(func(string) error), } return func(uid string) error { for _, fn := range fns { if err := fn(uid); err != nil { return err } } return nil } }() // DefaultCreatedAt holds the default value on creation for the created_at field. DefaultCreatedAt = descCreatedAt.Default.(func() time.Time) // DefaultUpdatedAt holds the default value on creation for the updated_at field. DefaultUpdatedAt = descUpdatedAt.Default.(func() time.Time) // UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. UpdateDefaultUpdatedAt = descUpdatedAt.UpdateDefault.(func() time.Time) )
var Columns = []string{ FieldID, FieldUID, FieldText, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for message fields.
Functions ¶
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 TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func UIDContains ¶
UIDContains applies the Contains predicate on the "uid" field.
func UIDContainsFold ¶
UIDContainsFold applies the ContainsFold predicate on the "uid" field.
func UIDEqualFold ¶
UIDEqualFold applies the EqualFold predicate on the "uid" field.
func UIDHasPrefix ¶
UIDHasPrefix applies the HasPrefix predicate on the "uid" field.
func UIDHasSuffix ¶
UIDHasSuffix applies the HasSuffix predicate on the "uid" 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.
Types ¶
This section is empty.