Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Session) predicate.Session
- func ChainID(v uint64) predicate.Session
- func ChainIDEQ(v uint64) predicate.Session
- func ChainIDIn(vs ...uint64) predicate.Session
- func ChainIDIsNil() predicate.Session
- func ChainIDNEQ(v uint64) predicate.Session
- func ChainIDNotIn(vs ...uint64) predicate.Session
- func ChainIDNotNil() predicate.Session
- func CreatedAt(v time.Time) predicate.Session
- func CreatedAtEQ(v time.Time) predicate.Session
- func CreatedAtGT(v time.Time) predicate.Session
- func CreatedAtGTE(v time.Time) predicate.Session
- func CreatedAtIn(vs ...time.Time) predicate.Session
- func CreatedAtLT(v time.Time) predicate.Session
- func CreatedAtLTE(v time.Time) predicate.Session
- func CreatedAtNEQ(v time.Time) predicate.Session
- func CreatedAtNotIn(vs ...time.Time) predicate.Session
- func HasChain() predicate.Session
- func HasChainWith(preds ...predicate.RuleChan) predicate.Session
- func ID(id uint64) predicate.Session
- func IDEQ(id uint64) predicate.Session
- func IDGT(id uint64) predicate.Session
- func IDGTE(id uint64) predicate.Session
- func IDIn(ids ...uint64) predicate.Session
- func IDLT(id uint64) predicate.Session
- func IDLTE(id uint64) predicate.Session
- func IDNEQ(id uint64) predicate.Session
- func IDNotIn(ids ...uint64) predicate.Session
- func Infinite(v bool) predicate.Session
- func InfiniteEQ(v bool) predicate.Session
- func InfiniteNEQ(v bool) predicate.Session
- func Not(p predicate.Session) predicate.Session
- func Or(predicates ...predicate.Session) predicate.Session
- func UpdatedAt(v time.Time) predicate.Session
- func UpdatedAtEQ(v time.Time) predicate.Session
- func UpdatedAtGT(v time.Time) predicate.Session
- func UpdatedAtGTE(v time.Time) predicate.Session
- func UpdatedAtIn(vs ...time.Time) predicate.Session
- func UpdatedAtLT(v time.Time) predicate.Session
- func UpdatedAtLTE(v time.Time) predicate.Session
- func UpdatedAtNEQ(v time.Time) predicate.Session
- func UpdatedAtNotIn(vs ...time.Time) predicate.Session
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldChainID, FieldInfinite, FieldData, FieldResult, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for session fields.
Functions ¶
func ChainID ¶
ChainID applies equality check predicate on the "chain_id" field. It's identical to ChainIDEQ.
func ChainIDIsNil ¶
ChainIDIsNil applies the IsNil predicate on the "chain_id" field.
func ChainIDNEQ ¶
ChainIDNEQ applies the NEQ predicate on the "chain_id" field.
func ChainIDNotIn ¶
ChainIDNotIn applies the NotIn predicate on the "chain_id" field.
func ChainIDNotNil ¶
ChainIDNotNil applies the NotNil predicate on the "chain_id" field.
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 HasChainWith ¶
HasChainWith applies the HasEdge predicate on the "chain" edge with a given conditions (other predicates).
func Infinite ¶
Infinite applies equality check predicate on the "infinite" field. It's identical to InfiniteEQ.
func InfiniteEQ ¶
InfiniteEQ applies the EQ predicate on the "infinite" field.
func InfiniteNEQ ¶
InfiniteNEQ applies the NEQ predicate on the "infinite" 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.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.