Documentation
¶
Index ¶
- Constants
- Variables
- func AccessToken(v string) predicate.Oauth2Token
- func AccessTokenContains(v string) predicate.Oauth2Token
- func AccessTokenContainsFold(v string) predicate.Oauth2Token
- func AccessTokenEQ(v string) predicate.Oauth2Token
- func AccessTokenEqualFold(v string) predicate.Oauth2Token
- func AccessTokenGT(v string) predicate.Oauth2Token
- func AccessTokenGTE(v string) predicate.Oauth2Token
- func AccessTokenHasPrefix(v string) predicate.Oauth2Token
- func AccessTokenHasSuffix(v string) predicate.Oauth2Token
- func AccessTokenIn(vs ...string) predicate.Oauth2Token
- func AccessTokenLT(v string) predicate.Oauth2Token
- func AccessTokenLTE(v string) predicate.Oauth2Token
- func AccessTokenNEQ(v string) predicate.Oauth2Token
- func AccessTokenNotIn(vs ...string) predicate.Oauth2Token
- func And(predicates ...predicate.Oauth2Token) predicate.Oauth2Token
- func ClientID(v string) predicate.Oauth2Token
- func ClientIDContains(v string) predicate.Oauth2Token
- func ClientIDContainsFold(v string) predicate.Oauth2Token
- func ClientIDEQ(v string) predicate.Oauth2Token
- func ClientIDEqualFold(v string) predicate.Oauth2Token
- func ClientIDGT(v string) predicate.Oauth2Token
- func ClientIDGTE(v string) predicate.Oauth2Token
- func ClientIDHasPrefix(v string) predicate.Oauth2Token
- func ClientIDHasSuffix(v string) predicate.Oauth2Token
- func ClientIDIn(vs ...string) predicate.Oauth2Token
- func ClientIDLT(v string) predicate.Oauth2Token
- func ClientIDLTE(v string) predicate.Oauth2Token
- func ClientIDNEQ(v string) predicate.Oauth2Token
- func ClientIDNotIn(vs ...string) predicate.Oauth2Token
- func CreatedAt(v time.Time) predicate.Oauth2Token
- func CreatedAtEQ(v time.Time) predicate.Oauth2Token
- func CreatedAtGT(v time.Time) predicate.Oauth2Token
- func CreatedAtGTE(v time.Time) predicate.Oauth2Token
- func CreatedAtIn(vs ...time.Time) predicate.Oauth2Token
- func CreatedAtLT(v time.Time) predicate.Oauth2Token
- func CreatedAtLTE(v time.Time) predicate.Oauth2Token
- func CreatedAtNEQ(v time.Time) predicate.Oauth2Token
- func CreatedAtNotIn(vs ...time.Time) predicate.Oauth2Token
- func DeviceInfo(v string) predicate.Oauth2Token
- func DeviceInfoContains(v string) predicate.Oauth2Token
- func DeviceInfoContainsFold(v string) predicate.Oauth2Token
- func DeviceInfoEQ(v string) predicate.Oauth2Token
- func DeviceInfoEqualFold(v string) predicate.Oauth2Token
- func DeviceInfoGT(v string) predicate.Oauth2Token
- func DeviceInfoGTE(v string) predicate.Oauth2Token
- func DeviceInfoHasPrefix(v string) predicate.Oauth2Token
- func DeviceInfoHasSuffix(v string) predicate.Oauth2Token
- func DeviceInfoIn(vs ...string) predicate.Oauth2Token
- func DeviceInfoIsNil() predicate.Oauth2Token
- func DeviceInfoLT(v string) predicate.Oauth2Token
- func DeviceInfoLTE(v string) predicate.Oauth2Token
- func DeviceInfoNEQ(v string) predicate.Oauth2Token
- func DeviceInfoNotIn(vs ...string) predicate.Oauth2Token
- func DeviceInfoNotNil() predicate.Oauth2Token
- func ExpiresAt(v time.Time) predicate.Oauth2Token
- func ExpiresAtEQ(v time.Time) predicate.Oauth2Token
- func ExpiresAtGT(v time.Time) predicate.Oauth2Token
- func ExpiresAtGTE(v time.Time) predicate.Oauth2Token
- func ExpiresAtIn(vs ...time.Time) predicate.Oauth2Token
- func ExpiresAtLT(v time.Time) predicate.Oauth2Token
- func ExpiresAtLTE(v time.Time) predicate.Oauth2Token
- func ExpiresAtNEQ(v time.Time) predicate.Oauth2Token
- func ExpiresAtNotIn(vs ...time.Time) predicate.Oauth2Token
- func HasUser() predicate.Oauth2Token
- func HasUserWith(preds ...predicate.User) predicate.Oauth2Token
- func ID(id uuid.UUID) predicate.Oauth2Token
- func IDEQ(id uuid.UUID) predicate.Oauth2Token
- func IDGT(id uuid.UUID) predicate.Oauth2Token
- func IDGTE(id uuid.UUID) predicate.Oauth2Token
- func IDIn(ids ...uuid.UUID) predicate.Oauth2Token
- func IDLT(id uuid.UUID) predicate.Oauth2Token
- func IDLTE(id uuid.UUID) predicate.Oauth2Token
- func IDNEQ(id uuid.UUID) predicate.Oauth2Token
- func IDNotIn(ids ...uuid.UUID) predicate.Oauth2Token
- func Not(p predicate.Oauth2Token) predicate.Oauth2Token
- func Or(predicates ...predicate.Oauth2Token) predicate.Oauth2Token
- func RefreshToken(v string) predicate.Oauth2Token
- func RefreshTokenContains(v string) predicate.Oauth2Token
- func RefreshTokenContainsFold(v string) predicate.Oauth2Token
- func RefreshTokenEQ(v string) predicate.Oauth2Token
- func RefreshTokenEqualFold(v string) predicate.Oauth2Token
- func RefreshTokenGT(v string) predicate.Oauth2Token
- func RefreshTokenGTE(v string) predicate.Oauth2Token
- func RefreshTokenHasPrefix(v string) predicate.Oauth2Token
- func RefreshTokenHasSuffix(v string) predicate.Oauth2Token
- func RefreshTokenIn(vs ...string) predicate.Oauth2Token
- func RefreshTokenLT(v string) predicate.Oauth2Token
- func RefreshTokenLTE(v string) predicate.Oauth2Token
- func RefreshTokenNEQ(v string) predicate.Oauth2Token
- func RefreshTokenNotIn(vs ...string) predicate.Oauth2Token
- func Revoked(v bool) predicate.Oauth2Token
- func RevokedEQ(v bool) predicate.Oauth2Token
- func RevokedNEQ(v bool) predicate.Oauth2Token
- func Scope(v string) predicate.Oauth2Token
- func ScopeContains(v string) predicate.Oauth2Token
- func ScopeContainsFold(v string) predicate.Oauth2Token
- func ScopeEQ(v string) predicate.Oauth2Token
- func ScopeEqualFold(v string) predicate.Oauth2Token
- func ScopeGT(v string) predicate.Oauth2Token
- func ScopeGTE(v string) predicate.Oauth2Token
- func ScopeHasPrefix(v string) predicate.Oauth2Token
- func ScopeHasSuffix(v string) predicate.Oauth2Token
- func ScopeIn(vs ...string) predicate.Oauth2Token
- func ScopeLT(v string) predicate.Oauth2Token
- func ScopeLTE(v string) predicate.Oauth2Token
- func ScopeNEQ(v string) predicate.Oauth2Token
- func ScopeNotIn(vs ...string) predicate.Oauth2Token
- func UpdatedAt(v time.Time) predicate.Oauth2Token
- func UpdatedAtEQ(v time.Time) predicate.Oauth2Token
- func UpdatedAtGT(v time.Time) predicate.Oauth2Token
- func UpdatedAtGTE(v time.Time) predicate.Oauth2Token
- func UpdatedAtIn(vs ...time.Time) predicate.Oauth2Token
- func UpdatedAtLT(v time.Time) predicate.Oauth2Token
- func UpdatedAtLTE(v time.Time) predicate.Oauth2Token
- func UpdatedAtNEQ(v time.Time) predicate.Oauth2Token
- func UpdatedAtNotIn(vs ...time.Time) predicate.Oauth2Token
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccessToken(opts ...sql.OrderTermOption) OrderOption
- func ByClientID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeviceInfo(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRefreshToken(opts ...sql.OrderTermOption) OrderOption
- func ByRevoked(opts ...sql.OrderTermOption) OrderOption
- func ByScope(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the oauth2token type in the database. Label = "oauth2token" // 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" // FieldAccessToken holds the string denoting the access_token field in the database. FieldAccessToken = "access_token" // FieldRefreshToken holds the string denoting the refresh_token field in the database. FieldRefreshToken = "refresh_token" // FieldClientID holds the string denoting the client_id field in the database. FieldClientID = "client_id" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldRevoked holds the string denoting the revoked field in the database. FieldRevoked = "revoked" // FieldScope holds the string denoting the scope field in the database. FieldScope = "scope" // FieldDeviceInfo holds the string denoting the device_info field in the database. FieldDeviceInfo = "device_info" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the oauth2token in the database. Table = "oauth2_tokens" // UserTable is the table that holds the user relation/edge. UserTable = "oauth2_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_oauth2_tokens" )
Variables ¶
var ( // 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 // DefaultRevoked holds the default value on creation for the "revoked" field. DefaultRevoked bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldAccessToken, FieldRefreshToken, FieldClientID, FieldExpiresAt, FieldRevoked, FieldScope, FieldDeviceInfo, }
Columns holds all SQL columns for oauth2token fields.
var ForeignKeys = []string{
"user_oauth2_tokens",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "oauth2_tokens" table and are not defined as standalone fields in the schema.
Functions ¶
func AccessToken ¶
func AccessToken(v string) predicate.Oauth2Token
AccessToken applies equality check predicate on the "access_token" field. It's identical to AccessTokenEQ.
func AccessTokenContains ¶
func AccessTokenContains(v string) predicate.Oauth2Token
AccessTokenContains applies the Contains predicate on the "access_token" field.
func AccessTokenContainsFold ¶
func AccessTokenContainsFold(v string) predicate.Oauth2Token
AccessTokenContainsFold applies the ContainsFold predicate on the "access_token" field.
func AccessTokenEQ ¶
func AccessTokenEQ(v string) predicate.Oauth2Token
AccessTokenEQ applies the EQ predicate on the "access_token" field.
func AccessTokenEqualFold ¶
func AccessTokenEqualFold(v string) predicate.Oauth2Token
AccessTokenEqualFold applies the EqualFold predicate on the "access_token" field.
func AccessTokenGT ¶
func AccessTokenGT(v string) predicate.Oauth2Token
AccessTokenGT applies the GT predicate on the "access_token" field.
func AccessTokenGTE ¶
func AccessTokenGTE(v string) predicate.Oauth2Token
AccessTokenGTE applies the GTE predicate on the "access_token" field.
func AccessTokenHasPrefix ¶
func AccessTokenHasPrefix(v string) predicate.Oauth2Token
AccessTokenHasPrefix applies the HasPrefix predicate on the "access_token" field.
func AccessTokenHasSuffix ¶
func AccessTokenHasSuffix(v string) predicate.Oauth2Token
AccessTokenHasSuffix applies the HasSuffix predicate on the "access_token" field.
func AccessTokenIn ¶
func AccessTokenIn(vs ...string) predicate.Oauth2Token
AccessTokenIn applies the In predicate on the "access_token" field.
func AccessTokenLT ¶
func AccessTokenLT(v string) predicate.Oauth2Token
AccessTokenLT applies the LT predicate on the "access_token" field.
func AccessTokenLTE ¶
func AccessTokenLTE(v string) predicate.Oauth2Token
AccessTokenLTE applies the LTE predicate on the "access_token" field.
func AccessTokenNEQ ¶
func AccessTokenNEQ(v string) predicate.Oauth2Token
AccessTokenNEQ applies the NEQ predicate on the "access_token" field.
func AccessTokenNotIn ¶
func AccessTokenNotIn(vs ...string) predicate.Oauth2Token
AccessTokenNotIn applies the NotIn predicate on the "access_token" field.
func And ¶
func And(predicates ...predicate.Oauth2Token) predicate.Oauth2Token
And groups predicates with the AND operator between them.
func ClientID ¶
func ClientID(v string) predicate.Oauth2Token
ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientIDContains ¶
func ClientIDContains(v string) predicate.Oauth2Token
ClientIDContains applies the Contains predicate on the "client_id" field.
func ClientIDContainsFold ¶
func ClientIDContainsFold(v string) predicate.Oauth2Token
ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.
func ClientIDEQ ¶
func ClientIDEQ(v string) predicate.Oauth2Token
ClientIDEQ applies the EQ predicate on the "client_id" field.
func ClientIDEqualFold ¶
func ClientIDEqualFold(v string) predicate.Oauth2Token
ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.
func ClientIDGT ¶
func ClientIDGT(v string) predicate.Oauth2Token
ClientIDGT applies the GT predicate on the "client_id" field.
func ClientIDGTE ¶
func ClientIDGTE(v string) predicate.Oauth2Token
ClientIDGTE applies the GTE predicate on the "client_id" field.
func ClientIDHasPrefix ¶
func ClientIDHasPrefix(v string) predicate.Oauth2Token
ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.
func ClientIDHasSuffix ¶
func ClientIDHasSuffix(v string) predicate.Oauth2Token
ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.
func ClientIDIn ¶
func ClientIDIn(vs ...string) predicate.Oauth2Token
ClientIDIn applies the In predicate on the "client_id" field.
func ClientIDLT ¶
func ClientIDLT(v string) predicate.Oauth2Token
ClientIDLT applies the LT predicate on the "client_id" field.
func ClientIDLTE ¶
func ClientIDLTE(v string) predicate.Oauth2Token
ClientIDLTE applies the LTE predicate on the "client_id" field.
func ClientIDNEQ ¶
func ClientIDNEQ(v string) predicate.Oauth2Token
ClientIDNEQ applies the NEQ predicate on the "client_id" field.
func ClientIDNotIn ¶
func ClientIDNotIn(vs ...string) predicate.Oauth2Token
ClientIDNotIn applies the NotIn predicate on the "client_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Oauth2Token
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Oauth2Token
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Oauth2Token
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Oauth2Token
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Oauth2Token
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Oauth2Token
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Oauth2Token
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Oauth2Token
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Oauth2Token
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeviceInfo ¶
func DeviceInfo(v string) predicate.Oauth2Token
DeviceInfo applies equality check predicate on the "device_info" field. It's identical to DeviceInfoEQ.
func DeviceInfoContains ¶
func DeviceInfoContains(v string) predicate.Oauth2Token
DeviceInfoContains applies the Contains predicate on the "device_info" field.
func DeviceInfoContainsFold ¶
func DeviceInfoContainsFold(v string) predicate.Oauth2Token
DeviceInfoContainsFold applies the ContainsFold predicate on the "device_info" field.
func DeviceInfoEQ ¶
func DeviceInfoEQ(v string) predicate.Oauth2Token
DeviceInfoEQ applies the EQ predicate on the "device_info" field.
func DeviceInfoEqualFold ¶
func DeviceInfoEqualFold(v string) predicate.Oauth2Token
DeviceInfoEqualFold applies the EqualFold predicate on the "device_info" field.
func DeviceInfoGT ¶
func DeviceInfoGT(v string) predicate.Oauth2Token
DeviceInfoGT applies the GT predicate on the "device_info" field.
func DeviceInfoGTE ¶
func DeviceInfoGTE(v string) predicate.Oauth2Token
DeviceInfoGTE applies the GTE predicate on the "device_info" field.
func DeviceInfoHasPrefix ¶
func DeviceInfoHasPrefix(v string) predicate.Oauth2Token
DeviceInfoHasPrefix applies the HasPrefix predicate on the "device_info" field.
func DeviceInfoHasSuffix ¶
func DeviceInfoHasSuffix(v string) predicate.Oauth2Token
DeviceInfoHasSuffix applies the HasSuffix predicate on the "device_info" field.
func DeviceInfoIn ¶
func DeviceInfoIn(vs ...string) predicate.Oauth2Token
DeviceInfoIn applies the In predicate on the "device_info" field.
func DeviceInfoIsNil ¶
func DeviceInfoIsNil() predicate.Oauth2Token
DeviceInfoIsNil applies the IsNil predicate on the "device_info" field.
func DeviceInfoLT ¶
func DeviceInfoLT(v string) predicate.Oauth2Token
DeviceInfoLT applies the LT predicate on the "device_info" field.
func DeviceInfoLTE ¶
func DeviceInfoLTE(v string) predicate.Oauth2Token
DeviceInfoLTE applies the LTE predicate on the "device_info" field.
func DeviceInfoNEQ ¶
func DeviceInfoNEQ(v string) predicate.Oauth2Token
DeviceInfoNEQ applies the NEQ predicate on the "device_info" field.
func DeviceInfoNotIn ¶
func DeviceInfoNotIn(vs ...string) predicate.Oauth2Token
DeviceInfoNotIn applies the NotIn predicate on the "device_info" field.
func DeviceInfoNotNil ¶
func DeviceInfoNotNil() predicate.Oauth2Token
DeviceInfoNotNil applies the NotNil predicate on the "device_info" field.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.Oauth2Token
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.Oauth2Token
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.Oauth2Token
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.Oauth2Token
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.Oauth2Token
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.Oauth2Token
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.Oauth2Token
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.Oauth2Token
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.Oauth2Token
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func HasUser ¶
func HasUser() predicate.Oauth2Token
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.Oauth2Token
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.Oauth2Token
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.Oauth2Token
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.Oauth2Token
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.Oauth2Token
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.Oauth2Token
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.Oauth2Token
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.Oauth2Token
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.Oauth2Token
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Oauth2Token) predicate.Oauth2Token
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Oauth2Token) predicate.Oauth2Token
Or groups predicates with the OR operator between them.
func RefreshToken ¶
func RefreshToken(v string) predicate.Oauth2Token
RefreshToken applies equality check predicate on the "refresh_token" field. It's identical to RefreshTokenEQ.
func RefreshTokenContains ¶
func RefreshTokenContains(v string) predicate.Oauth2Token
RefreshTokenContains applies the Contains predicate on the "refresh_token" field.
func RefreshTokenContainsFold ¶
func RefreshTokenContainsFold(v string) predicate.Oauth2Token
RefreshTokenContainsFold applies the ContainsFold predicate on the "refresh_token" field.
func RefreshTokenEQ ¶
func RefreshTokenEQ(v string) predicate.Oauth2Token
RefreshTokenEQ applies the EQ predicate on the "refresh_token" field.
func RefreshTokenEqualFold ¶
func RefreshTokenEqualFold(v string) predicate.Oauth2Token
RefreshTokenEqualFold applies the EqualFold predicate on the "refresh_token" field.
func RefreshTokenGT ¶
func RefreshTokenGT(v string) predicate.Oauth2Token
RefreshTokenGT applies the GT predicate on the "refresh_token" field.
func RefreshTokenGTE ¶
func RefreshTokenGTE(v string) predicate.Oauth2Token
RefreshTokenGTE applies the GTE predicate on the "refresh_token" field.
func RefreshTokenHasPrefix ¶
func RefreshTokenHasPrefix(v string) predicate.Oauth2Token
RefreshTokenHasPrefix applies the HasPrefix predicate on the "refresh_token" field.
func RefreshTokenHasSuffix ¶
func RefreshTokenHasSuffix(v string) predicate.Oauth2Token
RefreshTokenHasSuffix applies the HasSuffix predicate on the "refresh_token" field.
func RefreshTokenIn ¶
func RefreshTokenIn(vs ...string) predicate.Oauth2Token
RefreshTokenIn applies the In predicate on the "refresh_token" field.
func RefreshTokenLT ¶
func RefreshTokenLT(v string) predicate.Oauth2Token
RefreshTokenLT applies the LT predicate on the "refresh_token" field.
func RefreshTokenLTE ¶
func RefreshTokenLTE(v string) predicate.Oauth2Token
RefreshTokenLTE applies the LTE predicate on the "refresh_token" field.
func RefreshTokenNEQ ¶
func RefreshTokenNEQ(v string) predicate.Oauth2Token
RefreshTokenNEQ applies the NEQ predicate on the "refresh_token" field.
func RefreshTokenNotIn ¶
func RefreshTokenNotIn(vs ...string) predicate.Oauth2Token
RefreshTokenNotIn applies the NotIn predicate on the "refresh_token" field.
func Revoked ¶
func Revoked(v bool) predicate.Oauth2Token
Revoked applies equality check predicate on the "revoked" field. It's identical to RevokedEQ.
func RevokedEQ ¶
func RevokedEQ(v bool) predicate.Oauth2Token
RevokedEQ applies the EQ predicate on the "revoked" field.
func RevokedNEQ ¶
func RevokedNEQ(v bool) predicate.Oauth2Token
RevokedNEQ applies the NEQ predicate on the "revoked" field.
func Scope ¶
func Scope(v string) predicate.Oauth2Token
Scope applies equality check predicate on the "scope" field. It's identical to ScopeEQ.
func ScopeContains ¶
func ScopeContains(v string) predicate.Oauth2Token
ScopeContains applies the Contains predicate on the "scope" field.
func ScopeContainsFold ¶
func ScopeContainsFold(v string) predicate.Oauth2Token
ScopeContainsFold applies the ContainsFold predicate on the "scope" field.
func ScopeEQ ¶
func ScopeEQ(v string) predicate.Oauth2Token
ScopeEQ applies the EQ predicate on the "scope" field.
func ScopeEqualFold ¶
func ScopeEqualFold(v string) predicate.Oauth2Token
ScopeEqualFold applies the EqualFold predicate on the "scope" field.
func ScopeGT ¶
func ScopeGT(v string) predicate.Oauth2Token
ScopeGT applies the GT predicate on the "scope" field.
func ScopeGTE ¶
func ScopeGTE(v string) predicate.Oauth2Token
ScopeGTE applies the GTE predicate on the "scope" field.
func ScopeHasPrefix ¶
func ScopeHasPrefix(v string) predicate.Oauth2Token
ScopeHasPrefix applies the HasPrefix predicate on the "scope" field.
func ScopeHasSuffix ¶
func ScopeHasSuffix(v string) predicate.Oauth2Token
ScopeHasSuffix applies the HasSuffix predicate on the "scope" field.
func ScopeIn ¶
func ScopeIn(vs ...string) predicate.Oauth2Token
ScopeIn applies the In predicate on the "scope" field.
func ScopeLT ¶
func ScopeLT(v string) predicate.Oauth2Token
ScopeLT applies the LT predicate on the "scope" field.
func ScopeLTE ¶
func ScopeLTE(v string) predicate.Oauth2Token
ScopeLTE applies the LTE predicate on the "scope" field.
func ScopeNEQ ¶
func ScopeNEQ(v string) predicate.Oauth2Token
ScopeNEQ applies the NEQ predicate on the "scope" field.
func ScopeNotIn ¶
func ScopeNotIn(vs ...string) predicate.Oauth2Token
ScopeNotIn applies the NotIn predicate on the "scope" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Oauth2Token
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Oauth2Token
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Oauth2Token
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Oauth2Token
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Oauth2Token
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Oauth2Token
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Oauth2Token
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Oauth2Token
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Oauth2Token
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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the Oauth2Token queries.
func ByAccessToken ¶
func ByAccessToken(opts ...sql.OrderTermOption) OrderOption
ByAccessToken orders the results by the access_token field.
func ByClientID ¶
func ByClientID(opts ...sql.OrderTermOption) OrderOption
ByClientID orders the results by the client_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeviceInfo ¶
func ByDeviceInfo(opts ...sql.OrderTermOption) OrderOption
ByDeviceInfo orders the results by the device_info 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 ByRefreshToken ¶
func ByRefreshToken(opts ...sql.OrderTermOption) OrderOption
ByRefreshToken orders the results by the refresh_token field.
func ByRevoked ¶
func ByRevoked(opts ...sql.OrderTermOption) OrderOption
ByRevoked orders the results by the revoked field.
func ByScope ¶
func ByScope(opts ...sql.OrderTermOption) OrderOption
ByScope orders the results by the scope field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.