session

package
v0.0.0-...-54b0228 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the session type in the database.
	Label = "session"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldChainID holds the string denoting the chain_id field in the database.
	FieldChainID = "chain_id"
	// FieldInfinite holds the string denoting the infinite field in the database.
	FieldInfinite = "infinite"
	// FieldData holds the string denoting the data field in the database.
	FieldData = "data"
	// FieldResult holds the string denoting the result field in the database.
	FieldResult = "result"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeChain holds the string denoting the chain edge name in mutations.
	EdgeChain = "chain"
	// Table holds the table name of the session in the database.
	Table = "sessions"
	// ChainTable is the table that holds the chain relation/edge.
	ChainTable = "sessions"
	// ChainInverseTable is the table name for the RuleChan entity.
	// It exists in this package in order to avoid circular dependency with the "rulechan" package.
	ChainInverseTable = "rule_chan"
	// ChainColumn is the table column denoting the chain relation/edge.
	ChainColumn = "chain_id"
)

Variables

View Source
var (
	// DefaultInfinite holds the default value on creation for the "infinite" field.
	DefaultInfinite bool
	// DefaultData holds the default value on creation for the "data" field.
	DefaultData map[string]interface{}
	// DefaultResult holds the default value on creation for the "result" field.
	DefaultResult map[string]interface{}
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for session fields.

Functions

func And

func And(predicates ...predicate.Session) predicate.Session

And groups predicates with the AND operator between them.

func ChainID

func ChainID(v uint64) predicate.Session

ChainID applies equality check predicate on the "chain_id" field. It's identical to ChainIDEQ.

func ChainIDEQ

func ChainIDEQ(v uint64) predicate.Session

ChainIDEQ applies the EQ predicate on the "chain_id" field.

func ChainIDIn

func ChainIDIn(vs ...uint64) predicate.Session

ChainIDIn applies the In predicate on the "chain_id" field.

func ChainIDIsNil

func ChainIDIsNil() predicate.Session

ChainIDIsNil applies the IsNil predicate on the "chain_id" field.

func ChainIDNEQ

func ChainIDNEQ(v uint64) predicate.Session

ChainIDNEQ applies the NEQ predicate on the "chain_id" field.

func ChainIDNotIn

func ChainIDNotIn(vs ...uint64) predicate.Session

ChainIDNotIn applies the NotIn predicate on the "chain_id" field.

func ChainIDNotNil

func ChainIDNotNil() predicate.Session

ChainIDNotNil applies the NotNil predicate on the "chain_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Session

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Session

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Session

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Session

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Session

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Session

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Session

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Session

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Session

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasChain

func HasChain() predicate.Session

HasChain applies the HasEdge predicate on the "chain" edge.

func HasChainWith

func HasChainWith(preds ...predicate.RuleChan) predicate.Session

HasChainWith applies the HasEdge predicate on the "chain" edge with a given conditions (other predicates).

func ID

func ID(id uint64) predicate.Session

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Session

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Session

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Session

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.Session

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Session

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Session

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Session

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.Session

IDNotIn applies the NotIn predicate on the ID field.

func Infinite

func Infinite(v bool) predicate.Session

Infinite applies equality check predicate on the "infinite" field. It's identical to InfiniteEQ.

func InfiniteEQ

func InfiniteEQ(v bool) predicate.Session

InfiniteEQ applies the EQ predicate on the "infinite" field.

func InfiniteNEQ

func InfiniteNEQ(v bool) predicate.Session

InfiniteNEQ applies the NEQ predicate on the "infinite" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Session) predicate.Session

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Session

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Session

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Session

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Session

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Session

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Session

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Session

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Session

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Session

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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