Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AccessToken) predicate.AccessToken
- func CreatedAt(v time.Time) predicate.AccessToken
- func CreatedAtEQ(v time.Time) predicate.AccessToken
- func CreatedAtGT(v time.Time) predicate.AccessToken
- func CreatedAtGTE(v time.Time) predicate.AccessToken
- func CreatedAtIn(vs ...time.Time) predicate.AccessToken
- func CreatedAtIsNil() predicate.AccessToken
- func CreatedAtLT(v time.Time) predicate.AccessToken
- func CreatedAtLTE(v time.Time) predicate.AccessToken
- func CreatedAtNEQ(v time.Time) predicate.AccessToken
- func CreatedAtNotIn(vs ...time.Time) predicate.AccessToken
- func CreatedAtNotNil() predicate.AccessToken
- func HasUser() predicate.AccessToken
- func HasUserWith(preds ...predicate.User) predicate.AccessToken
- func ID(id string) predicate.AccessToken
- func IDContainsFold(id string) predicate.AccessToken
- func IDEQ(id string) predicate.AccessToken
- func IDEqualFold(id string) predicate.AccessToken
- func IDGT(id string) predicate.AccessToken
- func IDGTE(id string) predicate.AccessToken
- func IDIn(ids ...string) predicate.AccessToken
- func IDLT(id string) predicate.AccessToken
- func IDLTE(id string) predicate.AccessToken
- func IDNEQ(id string) predicate.AccessToken
- func IDNotIn(ids ...string) predicate.AccessToken
- func Not(p predicate.AccessToken) predicate.AccessToken
- func Or(predicates ...predicate.AccessToken) predicate.AccessToken
- func UserID(v uuid.UUID) predicate.AccessToken
- func UserIDEQ(v uuid.UUID) predicate.AccessToken
- func UserIDIn(vs ...uuid.UUID) predicate.AccessToken
- func UserIDNEQ(v uuid.UUID) predicate.AccessToken
- func UserIDNotIn(vs ...uuid.UUID) predicate.AccessToken
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the accesstoken type in the database. Label = "access_token" // FieldID holds the string denoting the id field in the database. FieldID = "access_token" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // UserFieldID holds the string denoting the ID field of the User. UserFieldID = "id" // Table holds the table name of the accesstoken in the database. Table = "access_tokens" // UserTable is the table that holds the user relation/edge. UserTable = "access_tokens" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
Variables ¶
var Columns = []string{ FieldID, FieldUserID, FieldCreatedAt, }
Columns holds all SQL columns for accesstoken fields.
Functions ¶
func And ¶
func And(predicates ...predicate.AccessToken) predicate.AccessToken
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.AccessToken
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.AccessToken
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.AccessToken
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.AccessToken
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.AccessToken
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.AccessToken
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.AccessToken
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.AccessToken
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.AccessToken
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.AccessToken
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.AccessToken
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func HasUser ¶
func HasUser() predicate.AccessToken
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.AccessToken
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.AccessToken
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.AccessToken
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.AccessToken
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.AccessToken
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.AccessToken
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.AccessToken
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.AccessToken
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.AccessToken
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.AccessToken
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.AccessToken
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.AccessToken) predicate.AccessToken
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.AccessToken) predicate.AccessToken
Or groups predicates with the OR operator between them.
func UserID ¶
func UserID(v uuid.UUID) predicate.AccessToken
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v uuid.UUID) predicate.AccessToken
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...uuid.UUID) predicate.AccessToken
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v uuid.UUID) predicate.AccessToken
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...uuid.UUID) predicate.AccessToken
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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the AccessToken queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.