dsession

package
v0.0.0-...-91de038 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for dsession fields.

Functions

func And

func And(predicates ...predicate.DSession) predicate.DSession

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.DSession

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.DSession

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.DSession

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.DSession

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.DSession

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.DSession

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.DSession

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.DSession

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.DSession

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func ID

func ID(id string) predicate.DSession

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.DSession

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.DSession

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.DSession

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.DSession

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.DSession

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.DSession

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.DSession

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.DSession

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.DSession) predicate.DSession

Or groups predicates with the OR operator between them.

func RoomID

func RoomID(v string) predicate.DSession

RoomID applies equality check predicate on the "room_id" field. It's identical to RoomIDEQ.

func RoomIDContains

func RoomIDContains(v string) predicate.DSession

RoomIDContains applies the Contains predicate on the "room_id" field.

func RoomIDContainsFold

func RoomIDContainsFold(v string) predicate.DSession

RoomIDContainsFold applies the ContainsFold predicate on the "room_id" field.

func RoomIDEQ

func RoomIDEQ(v string) predicate.DSession

RoomIDEQ applies the EQ predicate on the "room_id" field.

func RoomIDEqualFold

func RoomIDEqualFold(v string) predicate.DSession

RoomIDEqualFold applies the EqualFold predicate on the "room_id" field.

func RoomIDGT

func RoomIDGT(v string) predicate.DSession

RoomIDGT applies the GT predicate on the "room_id" field.

func RoomIDGTE

func RoomIDGTE(v string) predicate.DSession

RoomIDGTE applies the GTE predicate on the "room_id" field.

func RoomIDHasPrefix

func RoomIDHasPrefix(v string) predicate.DSession

RoomIDHasPrefix applies the HasPrefix predicate on the "room_id" field.

func RoomIDHasSuffix

func RoomIDHasSuffix(v string) predicate.DSession

RoomIDHasSuffix applies the HasSuffix predicate on the "room_id" field.

func RoomIDIn

func RoomIDIn(vs ...string) predicate.DSession

RoomIDIn applies the In predicate on the "room_id" field.

func RoomIDLT

func RoomIDLT(v string) predicate.DSession

RoomIDLT applies the LT predicate on the "room_id" field.

func RoomIDLTE

func RoomIDLTE(v string) predicate.DSession

RoomIDLTE applies the LTE predicate on the "room_id" field.

func RoomIDNEQ

func RoomIDNEQ(v string) predicate.DSession

RoomIDNEQ applies the NEQ predicate on the "room_id" field.

func RoomIDNotIn

func RoomIDNotIn(vs ...string) predicate.DSession

RoomIDNotIn applies the NotIn predicate on the "room_id" field.

func UserID

func UserID(v string) predicate.DSession

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDContains

func UserIDContains(v string) predicate.DSession

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.DSession

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

func UserIDEQ(v string) predicate.DSession

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.DSession

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v string) predicate.DSession

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v string) predicate.DSession

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.DSession

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.DSession

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...string) predicate.DSession

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v string) predicate.DSession

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v string) predicate.DSession

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v string) predicate.DSession

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...string) predicate.DSession

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL