Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Session) 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 CreatedBy(v string) predicate.Session
- func CreatedByContains(v string) predicate.Session
- func CreatedByContainsFold(v string) predicate.Session
- func CreatedByEQ(v string) predicate.Session
- func CreatedByEqualFold(v string) predicate.Session
- func CreatedByGT(v string) predicate.Session
- func CreatedByGTE(v string) predicate.Session
- func CreatedByHasPrefix(v string) predicate.Session
- func CreatedByHasSuffix(v string) predicate.Session
- func CreatedByIn(vs ...string) predicate.Session
- func CreatedByIsNil() predicate.Session
- func CreatedByLT(v string) predicate.Session
- func CreatedByLTE(v string) predicate.Session
- func CreatedByNEQ(v string) predicate.Session
- func CreatedByNotIn(vs ...string) predicate.Session
- func CreatedByNotNil() predicate.Session
- func ExpiresAt(v time.Time) predicate.Session
- func ExpiresAtEQ(v time.Time) predicate.Session
- func ExpiresAtGT(v time.Time) predicate.Session
- func ExpiresAtGTE(v time.Time) predicate.Session
- func ExpiresAtIn(vs ...time.Time) predicate.Session
- func ExpiresAtLT(v time.Time) predicate.Session
- func ExpiresAtLTE(v time.Time) predicate.Session
- func ExpiresAtNEQ(v time.Time) predicate.Session
- func ExpiresAtNotIn(vs ...time.Time) predicate.Session
- func HasOwner() predicate.Session
- func HasOwnerWith(preds ...predicate.User) predicate.Session
- func ID(id string) predicate.Session
- func IDContainsFold(id string) predicate.Session
- func IDEQ(id string) predicate.Session
- func IDEqualFold(id string) predicate.Session
- func IDGT(id string) predicate.Session
- func IDGTE(id string) predicate.Session
- func IDIn(ids ...string) predicate.Session
- func IDLT(id string) predicate.Session
- func IDLTE(id string) predicate.Session
- func IDNEQ(id string) predicate.Session
- func IDNotIn(ids ...string) predicate.Session
- func IssuedAt(v time.Time) predicate.Session
- func IssuedAtEQ(v time.Time) predicate.Session
- func IssuedAtGT(v time.Time) predicate.Session
- func IssuedAtGTE(v time.Time) predicate.Session
- func IssuedAtIn(vs ...time.Time) predicate.Session
- func IssuedAtLT(v time.Time) predicate.Session
- func IssuedAtLTE(v time.Time) predicate.Session
- func IssuedAtNEQ(v time.Time) predicate.Session
- func IssuedAtNotIn(vs ...time.Time) predicate.Session
- func Not(p predicate.Session) predicate.Session
- func Or(predicates ...predicate.Session) predicate.Session
- func OrganizationID(v string) predicate.Session
- func OrganizationIDContains(v string) predicate.Session
- func OrganizationIDContainsFold(v string) predicate.Session
- func OrganizationIDEQ(v string) predicate.Session
- func OrganizationIDEqualFold(v string) predicate.Session
- func OrganizationIDGT(v string) predicate.Session
- func OrganizationIDGTE(v string) predicate.Session
- func OrganizationIDHasPrefix(v string) predicate.Session
- func OrganizationIDHasSuffix(v string) predicate.Session
- func OrganizationIDIn(vs ...string) predicate.Session
- func OrganizationIDLT(v string) predicate.Session
- func OrganizationIDLTE(v string) predicate.Session
- func OrganizationIDNEQ(v string) predicate.Session
- func OrganizationIDNotIn(vs ...string) predicate.Session
- func OwnerID(v string) predicate.Session
- func OwnerIDContains(v string) predicate.Session
- func OwnerIDContainsFold(v string) predicate.Session
- func OwnerIDEQ(v string) predicate.Session
- func OwnerIDEqualFold(v string) predicate.Session
- func OwnerIDGT(v string) predicate.Session
- func OwnerIDGTE(v string) predicate.Session
- func OwnerIDHasPrefix(v string) predicate.Session
- func OwnerIDHasSuffix(v string) predicate.Session
- func OwnerIDIn(vs ...string) predicate.Session
- func OwnerIDLT(v string) predicate.Session
- func OwnerIDLTE(v string) predicate.Session
- func OwnerIDNEQ(v string) predicate.Session
- func OwnerIDNotIn(vs ...string) predicate.Session
- func SessionToken(v string) predicate.Session
- func SessionTokenContains(v string) predicate.Session
- func SessionTokenContainsFold(v string) predicate.Session
- func SessionTokenEQ(v string) predicate.Session
- func SessionTokenEqualFold(v string) predicate.Session
- func SessionTokenGT(v string) predicate.Session
- func SessionTokenGTE(v string) predicate.Session
- func SessionTokenHasPrefix(v string) predicate.Session
- func SessionTokenHasSuffix(v string) predicate.Session
- func SessionTokenIn(vs ...string) predicate.Session
- func SessionTokenLT(v string) predicate.Session
- func SessionTokenLTE(v string) predicate.Session
- func SessionTokenNEQ(v string) predicate.Session
- func SessionTokenNotIn(vs ...string) 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 UpdatedBy(v string) predicate.Session
- func UpdatedByContains(v string) predicate.Session
- func UpdatedByContainsFold(v string) predicate.Session
- func UpdatedByEQ(v string) predicate.Session
- func UpdatedByEqualFold(v string) predicate.Session
- func UpdatedByGT(v string) predicate.Session
- func UpdatedByGTE(v string) predicate.Session
- func UpdatedByHasPrefix(v string) predicate.Session
- func UpdatedByHasSuffix(v string) predicate.Session
- func UpdatedByIn(vs ...string) predicate.Session
- func UpdatedByIsNil() predicate.Session
- func UpdatedByLT(v string) predicate.Session
- func UpdatedByLTE(v string) predicate.Session
- func UpdatedByNEQ(v string) predicate.Session
- func UpdatedByNotIn(vs ...string) predicate.Session
- func UpdatedByNotNil() predicate.Session
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIssuedAt(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func BySessionToken(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
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" // 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" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldSessionToken holds the string denoting the session_token field in the database. FieldSessionToken = "session_token" // FieldIssuedAt holds the string denoting the issued_at field in the database. FieldIssuedAt = "issued_at" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldOrganizationID holds the string denoting the organization_id field in the database. FieldOrganizationID = "organization_id" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the session in the database. Table = "sessions" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "sessions" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "owner_id" )
Variables ¶
var ( Hooks [2]ent.Hook // 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 // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // UpdateDefaultIssuedAt holds the default value on update for the "issued_at" field. UpdateDefaultIssuedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/datumforge/datum/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldOwnerID, FieldSessionToken, FieldIssuedAt, FieldExpiresAt, FieldOrganizationID, }
Columns holds all SQL columns for session 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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func IssuedAt ¶
IssuedAt applies equality check predicate on the "issued_at" field. It's identical to IssuedAtEQ.
func IssuedAtEQ ¶
IssuedAtEQ applies the EQ predicate on the "issued_at" field.
func IssuedAtGT ¶
IssuedAtGT applies the GT predicate on the "issued_at" field.
func IssuedAtGTE ¶
IssuedAtGTE applies the GTE predicate on the "issued_at" field.
func IssuedAtIn ¶
IssuedAtIn applies the In predicate on the "issued_at" field.
func IssuedAtLT ¶
IssuedAtLT applies the LT predicate on the "issued_at" field.
func IssuedAtLTE ¶
IssuedAtLTE applies the LTE predicate on the "issued_at" field.
func IssuedAtNEQ ¶
IssuedAtNEQ applies the NEQ predicate on the "issued_at" field.
func IssuedAtNotIn ¶
IssuedAtNotIn applies the NotIn predicate on the "issued_at" field.
func OrganizationID ¶
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDContains ¶
OrganizationIDContains applies the Contains predicate on the "organization_id" field.
func OrganizationIDContainsFold ¶
OrganizationIDContainsFold applies the ContainsFold predicate on the "organization_id" field.
func OrganizationIDEQ ¶
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDEqualFold ¶
OrganizationIDEqualFold applies the EqualFold predicate on the "organization_id" field.
func OrganizationIDGT ¶
OrganizationIDGT applies the GT predicate on the "organization_id" field.
func OrganizationIDGTE ¶
OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
func OrganizationIDHasPrefix ¶
OrganizationIDHasPrefix applies the HasPrefix predicate on the "organization_id" field.
func OrganizationIDHasSuffix ¶
OrganizationIDHasSuffix applies the HasSuffix predicate on the "organization_id" field.
func OrganizationIDIn ¶
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDLT ¶
OrganizationIDLT applies the LT predicate on the "organization_id" field.
func OrganizationIDLTE ¶
OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func OwnerID ¶ added in v0.2.4
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶ added in v0.2.4
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶ added in v0.2.4
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEqualFold ¶ added in v0.2.4
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGTE ¶ added in v0.2.4
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶ added in v0.2.4
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶ added in v0.2.4
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDLTE ¶ added in v0.2.4
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶ added in v0.2.4
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶ added in v0.2.4
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func SessionToken ¶
SessionToken applies equality check predicate on the "session_token" field. It's identical to SessionTokenEQ.
func SessionTokenContains ¶
SessionTokenContains applies the Contains predicate on the "session_token" field.
func SessionTokenContainsFold ¶
SessionTokenContainsFold applies the ContainsFold predicate on the "session_token" field.
func SessionTokenEQ ¶
SessionTokenEQ applies the EQ predicate on the "session_token" field.
func SessionTokenEqualFold ¶
SessionTokenEqualFold applies the EqualFold predicate on the "session_token" field.
func SessionTokenGT ¶
SessionTokenGT applies the GT predicate on the "session_token" field.
func SessionTokenGTE ¶
SessionTokenGTE applies the GTE predicate on the "session_token" field.
func SessionTokenHasPrefix ¶
SessionTokenHasPrefix applies the HasPrefix predicate on the "session_token" field.
func SessionTokenHasSuffix ¶
SessionTokenHasSuffix applies the HasSuffix predicate on the "session_token" field.
func SessionTokenIn ¶
SessionTokenIn applies the In predicate on the "session_token" field.
func SessionTokenLT ¶
SessionTokenLT applies the LT predicate on the "session_token" field.
func SessionTokenLTE ¶
SessionTokenLTE applies the LTE predicate on the "session_token" field.
func SessionTokenNEQ ¶
SessionTokenNEQ applies the NEQ predicate on the "session_token" field.
func SessionTokenNotIn ¶
SessionTokenNotIn applies the NotIn predicate on the "session_token" 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 UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Session queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIssuedAt ¶
func ByIssuedAt(opts ...sql.OrderTermOption) OrderOption
ByIssuedAt orders the results by the issued_at field.
func ByOrganizationID ¶
func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
ByOrganizationID orders the results by the organization_id field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶ added in v0.2.4
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func BySessionToken ¶
func BySessionToken(opts ...sql.OrderTermOption) OrderOption
BySessionToken orders the results by the session_token field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.