Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DSession) predicate.DSession
- func CreateTime(v time.Time) predicate.DSession
- func CreateTimeEQ(v time.Time) predicate.DSession
- func CreateTimeGT(v time.Time) predicate.DSession
- func CreateTimeGTE(v time.Time) predicate.DSession
- func CreateTimeIn(vs ...time.Time) predicate.DSession
- func CreateTimeLT(v time.Time) predicate.DSession
- func CreateTimeLTE(v time.Time) predicate.DSession
- func CreateTimeNEQ(v time.Time) predicate.DSession
- func CreateTimeNotIn(vs ...time.Time) predicate.DSession
- func ID(id string) predicate.DSession
- func IDEQ(id string) predicate.DSession
- func IDGT(id string) predicate.DSession
- func IDGTE(id string) predicate.DSession
- func IDIn(ids ...string) predicate.DSession
- func IDLT(id string) predicate.DSession
- func IDLTE(id string) predicate.DSession
- func IDNEQ(id string) predicate.DSession
- func IDNotIn(ids ...string) predicate.DSession
- func Not(p predicate.DSession) predicate.DSession
- func Or(predicates ...predicate.DSession) predicate.DSession
- func RoomID(v string) predicate.DSession
- func RoomIDContains(v string) predicate.DSession
- func RoomIDContainsFold(v string) predicate.DSession
- func RoomIDEQ(v string) predicate.DSession
- func RoomIDEqualFold(v string) predicate.DSession
- func RoomIDGT(v string) predicate.DSession
- func RoomIDGTE(v string) predicate.DSession
- func RoomIDHasPrefix(v string) predicate.DSession
- func RoomIDHasSuffix(v string) predicate.DSession
- func RoomIDIn(vs ...string) predicate.DSession
- func RoomIDLT(v string) predicate.DSession
- func RoomIDLTE(v string) predicate.DSession
- func RoomIDNEQ(v string) predicate.DSession
- func RoomIDNotIn(vs ...string) predicate.DSession
- func UserID(v string) predicate.DSession
- func UserIDContains(v string) predicate.DSession
- func UserIDContainsFold(v string) predicate.DSession
- func UserIDEQ(v string) predicate.DSession
- func UserIDEqualFold(v string) predicate.DSession
- func UserIDGT(v string) predicate.DSession
- func UserIDGTE(v string) predicate.DSession
- func UserIDHasPrefix(v string) predicate.DSession
- func UserIDHasSuffix(v string) predicate.DSession
- func UserIDIn(vs ...string) predicate.DSession
- func UserIDLT(v string) predicate.DSession
- func UserIDLTE(v string) predicate.DSession
- func UserIDNEQ(v string) predicate.DSession
- func UserIDNotIn(vs ...string) predicate.DSession
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the dsession type in the database. Label = "dsession" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldRoomID holds the string denoting the room_id field in the database. FieldRoomID = "room_id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // Table holds the table name of the dsession in the database. Table = "dsessions" )
Variables ¶
var ( // DefaultUserID holds the default value on creation for the "user_id" field. DefaultUserID string // DefaultRoomID holds the default value on creation for the "room_id" field. DefaultRoomID string )
var Columns = []string{ FieldID, FieldUserID, FieldRoomID, FieldCreateTime, }
Columns holds all SQL columns for dsession fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func RoomID ¶
RoomID applies equality check predicate on the "room_id" field. It's identical to RoomIDEQ.
func RoomIDContains ¶
RoomIDContains applies the Contains predicate on the "room_id" field.
func RoomIDContainsFold ¶
RoomIDContainsFold applies the ContainsFold predicate on the "room_id" field.
func RoomIDEqualFold ¶
RoomIDEqualFold applies the EqualFold predicate on the "room_id" field.
func RoomIDHasPrefix ¶
RoomIDHasPrefix applies the HasPrefix predicate on the "room_id" field.
func RoomIDHasSuffix ¶
RoomIDHasSuffix applies the HasSuffix predicate on the "room_id" field.
func RoomIDNotIn ¶
RoomIDNotIn applies the NotIn predicate on the "room_id" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEqualFold ¶
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDHasPrefix ¶
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.