Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Oauth2Code) predicate.Oauth2Code
- func AuthCode(v string) predicate.Oauth2Code
- func AuthCodeContains(v string) predicate.Oauth2Code
- func AuthCodeContainsFold(v string) predicate.Oauth2Code
- func AuthCodeEQ(v string) predicate.Oauth2Code
- func AuthCodeEqualFold(v string) predicate.Oauth2Code
- func AuthCodeGT(v string) predicate.Oauth2Code
- func AuthCodeGTE(v string) predicate.Oauth2Code
- func AuthCodeHasPrefix(v string) predicate.Oauth2Code
- func AuthCodeHasSuffix(v string) predicate.Oauth2Code
- func AuthCodeIn(vs ...string) predicate.Oauth2Code
- func AuthCodeLT(v string) predicate.Oauth2Code
- func AuthCodeLTE(v string) predicate.Oauth2Code
- func AuthCodeNEQ(v string) predicate.Oauth2Code
- func AuthCodeNotIn(vs ...string) predicate.Oauth2Code
- func ClientID(v string) predicate.Oauth2Code
- func ClientIDContains(v string) predicate.Oauth2Code
- func ClientIDContainsFold(v string) predicate.Oauth2Code
- func ClientIDEQ(v string) predicate.Oauth2Code
- func ClientIDEqualFold(v string) predicate.Oauth2Code
- func ClientIDGT(v string) predicate.Oauth2Code
- func ClientIDGTE(v string) predicate.Oauth2Code
- func ClientIDHasPrefix(v string) predicate.Oauth2Code
- func ClientIDHasSuffix(v string) predicate.Oauth2Code
- func ClientIDIn(vs ...string) predicate.Oauth2Code
- func ClientIDLT(v string) predicate.Oauth2Code
- func ClientIDLTE(v string) predicate.Oauth2Code
- func ClientIDNEQ(v string) predicate.Oauth2Code
- func ClientIDNotIn(vs ...string) predicate.Oauth2Code
- func CreatedAt(v time.Time) predicate.Oauth2Code
- func CreatedAtEQ(v time.Time) predicate.Oauth2Code
- func CreatedAtGT(v time.Time) predicate.Oauth2Code
- func CreatedAtGTE(v time.Time) predicate.Oauth2Code
- func CreatedAtIn(vs ...time.Time) predicate.Oauth2Code
- func CreatedAtLT(v time.Time) predicate.Oauth2Code
- func CreatedAtLTE(v time.Time) predicate.Oauth2Code
- func CreatedAtNEQ(v time.Time) predicate.Oauth2Code
- func CreatedAtNotIn(vs ...time.Time) predicate.Oauth2Code
- func ExpiresAt(v time.Time) predicate.Oauth2Code
- func ExpiresAtEQ(v time.Time) predicate.Oauth2Code
- func ExpiresAtGT(v time.Time) predicate.Oauth2Code
- func ExpiresAtGTE(v time.Time) predicate.Oauth2Code
- func ExpiresAtIn(vs ...time.Time) predicate.Oauth2Code
- func ExpiresAtLT(v time.Time) predicate.Oauth2Code
- func ExpiresAtLTE(v time.Time) predicate.Oauth2Code
- func ExpiresAtNEQ(v time.Time) predicate.Oauth2Code
- func ExpiresAtNotIn(vs ...time.Time) predicate.Oauth2Code
- func HasUser() predicate.Oauth2Code
- func HasUserWith(preds ...predicate.User) predicate.Oauth2Code
- func ID(id uuid.UUID) predicate.Oauth2Code
- func IDEQ(id uuid.UUID) predicate.Oauth2Code
- func IDGT(id uuid.UUID) predicate.Oauth2Code
- func IDGTE(id uuid.UUID) predicate.Oauth2Code
- func IDIn(ids ...uuid.UUID) predicate.Oauth2Code
- func IDLT(id uuid.UUID) predicate.Oauth2Code
- func IDLTE(id uuid.UUID) predicate.Oauth2Code
- func IDNEQ(id uuid.UUID) predicate.Oauth2Code
- func IDNotIn(ids ...uuid.UUID) predicate.Oauth2Code
- func Not(p predicate.Oauth2Code) predicate.Oauth2Code
- func Or(predicates ...predicate.Oauth2Code) predicate.Oauth2Code
- func Revoked(v bool) predicate.Oauth2Code
- func RevokedEQ(v bool) predicate.Oauth2Code
- func RevokedNEQ(v bool) predicate.Oauth2Code
- func Scope(v string) predicate.Oauth2Code
- func ScopeContains(v string) predicate.Oauth2Code
- func ScopeContainsFold(v string) predicate.Oauth2Code
- func ScopeEQ(v string) predicate.Oauth2Code
- func ScopeEqualFold(v string) predicate.Oauth2Code
- func ScopeGT(v string) predicate.Oauth2Code
- func ScopeGTE(v string) predicate.Oauth2Code
- func ScopeHasPrefix(v string) predicate.Oauth2Code
- func ScopeHasSuffix(v string) predicate.Oauth2Code
- func ScopeIn(vs ...string) predicate.Oauth2Code
- func ScopeLT(v string) predicate.Oauth2Code
- func ScopeLTE(v string) predicate.Oauth2Code
- func ScopeNEQ(v string) predicate.Oauth2Code
- func ScopeNotIn(vs ...string) predicate.Oauth2Code
- func UpdatedAt(v time.Time) predicate.Oauth2Code
- func UpdatedAtEQ(v time.Time) predicate.Oauth2Code
- func UpdatedAtGT(v time.Time) predicate.Oauth2Code
- func UpdatedAtGTE(v time.Time) predicate.Oauth2Code
- func UpdatedAtIn(vs ...time.Time) predicate.Oauth2Code
- func UpdatedAtLT(v time.Time) predicate.Oauth2Code
- func UpdatedAtLTE(v time.Time) predicate.Oauth2Code
- func UpdatedAtNEQ(v time.Time) predicate.Oauth2Code
- func UpdatedAtNotIn(vs ...time.Time) predicate.Oauth2Code
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthCode(opts ...sql.OrderTermOption) OrderOption
- func ByClientID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(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 oauth2code type in the database. Label = "oauth2code" // 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" // FieldAuthCode holds the string denoting the auth_code field in the database. FieldAuthCode = "auth_code" // FieldClientID holds the string denoting the client_id field in the database. FieldClientID = "client_id" // FieldScope holds the string denoting the scope field in the database. FieldScope = "scope" // 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" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the oauth2code in the database. Table = "oauth2_codes" // UserTable is the table that holds the user relation/edge. UserTable = "oauth2_codes" // 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_codes" )
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, FieldAuthCode, FieldClientID, FieldScope, FieldExpiresAt, FieldRevoked, }
Columns holds all SQL columns for oauth2code fields.
var ForeignKeys = []string{
"user_oauth2_codes",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "oauth2_codes" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Oauth2Code) predicate.Oauth2Code
And groups predicates with the AND operator between them.
func AuthCode ¶
func AuthCode(v string) predicate.Oauth2Code
AuthCode applies equality check predicate on the "auth_code" field. It's identical to AuthCodeEQ.
func AuthCodeContains ¶
func AuthCodeContains(v string) predicate.Oauth2Code
AuthCodeContains applies the Contains predicate on the "auth_code" field.
func AuthCodeContainsFold ¶
func AuthCodeContainsFold(v string) predicate.Oauth2Code
AuthCodeContainsFold applies the ContainsFold predicate on the "auth_code" field.
func AuthCodeEQ ¶
func AuthCodeEQ(v string) predicate.Oauth2Code
AuthCodeEQ applies the EQ predicate on the "auth_code" field.
func AuthCodeEqualFold ¶
func AuthCodeEqualFold(v string) predicate.Oauth2Code
AuthCodeEqualFold applies the EqualFold predicate on the "auth_code" field.
func AuthCodeGT ¶
func AuthCodeGT(v string) predicate.Oauth2Code
AuthCodeGT applies the GT predicate on the "auth_code" field.
func AuthCodeGTE ¶
func AuthCodeGTE(v string) predicate.Oauth2Code
AuthCodeGTE applies the GTE predicate on the "auth_code" field.
func AuthCodeHasPrefix ¶
func AuthCodeHasPrefix(v string) predicate.Oauth2Code
AuthCodeHasPrefix applies the HasPrefix predicate on the "auth_code" field.
func AuthCodeHasSuffix ¶
func AuthCodeHasSuffix(v string) predicate.Oauth2Code
AuthCodeHasSuffix applies the HasSuffix predicate on the "auth_code" field.
func AuthCodeIn ¶
func AuthCodeIn(vs ...string) predicate.Oauth2Code
AuthCodeIn applies the In predicate on the "auth_code" field.
func AuthCodeLT ¶
func AuthCodeLT(v string) predicate.Oauth2Code
AuthCodeLT applies the LT predicate on the "auth_code" field.
func AuthCodeLTE ¶
func AuthCodeLTE(v string) predicate.Oauth2Code
AuthCodeLTE applies the LTE predicate on the "auth_code" field.
func AuthCodeNEQ ¶
func AuthCodeNEQ(v string) predicate.Oauth2Code
AuthCodeNEQ applies the NEQ predicate on the "auth_code" field.
func AuthCodeNotIn ¶
func AuthCodeNotIn(vs ...string) predicate.Oauth2Code
AuthCodeNotIn applies the NotIn predicate on the "auth_code" field.
func ClientID ¶
func ClientID(v string) predicate.Oauth2Code
ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientIDContains ¶
func ClientIDContains(v string) predicate.Oauth2Code
ClientIDContains applies the Contains predicate on the "client_id" field.
func ClientIDContainsFold ¶
func ClientIDContainsFold(v string) predicate.Oauth2Code
ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.
func ClientIDEQ ¶
func ClientIDEQ(v string) predicate.Oauth2Code
ClientIDEQ applies the EQ predicate on the "client_id" field.
func ClientIDEqualFold ¶
func ClientIDEqualFold(v string) predicate.Oauth2Code
ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.
func ClientIDGT ¶
func ClientIDGT(v string) predicate.Oauth2Code
ClientIDGT applies the GT predicate on the "client_id" field.
func ClientIDGTE ¶
func ClientIDGTE(v string) predicate.Oauth2Code
ClientIDGTE applies the GTE predicate on the "client_id" field.
func ClientIDHasPrefix ¶
func ClientIDHasPrefix(v string) predicate.Oauth2Code
ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.
func ClientIDHasSuffix ¶
func ClientIDHasSuffix(v string) predicate.Oauth2Code
ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.
func ClientIDIn ¶
func ClientIDIn(vs ...string) predicate.Oauth2Code
ClientIDIn applies the In predicate on the "client_id" field.
func ClientIDLT ¶
func ClientIDLT(v string) predicate.Oauth2Code
ClientIDLT applies the LT predicate on the "client_id" field.
func ClientIDLTE ¶
func ClientIDLTE(v string) predicate.Oauth2Code
ClientIDLTE applies the LTE predicate on the "client_id" field.
func ClientIDNEQ ¶
func ClientIDNEQ(v string) predicate.Oauth2Code
ClientIDNEQ applies the NEQ predicate on the "client_id" field.
func ClientIDNotIn ¶
func ClientIDNotIn(vs ...string) predicate.Oauth2Code
ClientIDNotIn applies the NotIn predicate on the "client_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Oauth2Code
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Oauth2Code
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Oauth2Code
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Oauth2Code
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Oauth2Code
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Oauth2Code
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Oauth2Code
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Oauth2Code
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Oauth2Code
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.Oauth2Code
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.Oauth2Code
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.Oauth2Code
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.Oauth2Code
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.Oauth2Code
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.Oauth2Code
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.Oauth2Code
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.Oauth2Code
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.Oauth2Code
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func HasUser ¶
func HasUser() predicate.Oauth2Code
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.Oauth2Code
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.Oauth2Code
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.Oauth2Code
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.Oauth2Code
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.Oauth2Code
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.Oauth2Code
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.Oauth2Code
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.Oauth2Code
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.Oauth2Code
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Oauth2Code) predicate.Oauth2Code
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Oauth2Code) predicate.Oauth2Code
Or groups predicates with the OR operator between them.
func Revoked ¶
func Revoked(v bool) predicate.Oauth2Code
Revoked applies equality check predicate on the "revoked" field. It's identical to RevokedEQ.
func RevokedEQ ¶
func RevokedEQ(v bool) predicate.Oauth2Code
RevokedEQ applies the EQ predicate on the "revoked" field.
func RevokedNEQ ¶
func RevokedNEQ(v bool) predicate.Oauth2Code
RevokedNEQ applies the NEQ predicate on the "revoked" field.
func Scope ¶
func Scope(v string) predicate.Oauth2Code
Scope applies equality check predicate on the "scope" field. It's identical to ScopeEQ.
func ScopeContains ¶
func ScopeContains(v string) predicate.Oauth2Code
ScopeContains applies the Contains predicate on the "scope" field.
func ScopeContainsFold ¶
func ScopeContainsFold(v string) predicate.Oauth2Code
ScopeContainsFold applies the ContainsFold predicate on the "scope" field.
func ScopeEQ ¶
func ScopeEQ(v string) predicate.Oauth2Code
ScopeEQ applies the EQ predicate on the "scope" field.
func ScopeEqualFold ¶
func ScopeEqualFold(v string) predicate.Oauth2Code
ScopeEqualFold applies the EqualFold predicate on the "scope" field.
func ScopeGT ¶
func ScopeGT(v string) predicate.Oauth2Code
ScopeGT applies the GT predicate on the "scope" field.
func ScopeGTE ¶
func ScopeGTE(v string) predicate.Oauth2Code
ScopeGTE applies the GTE predicate on the "scope" field.
func ScopeHasPrefix ¶
func ScopeHasPrefix(v string) predicate.Oauth2Code
ScopeHasPrefix applies the HasPrefix predicate on the "scope" field.
func ScopeHasSuffix ¶
func ScopeHasSuffix(v string) predicate.Oauth2Code
ScopeHasSuffix applies the HasSuffix predicate on the "scope" field.
func ScopeIn ¶
func ScopeIn(vs ...string) predicate.Oauth2Code
ScopeIn applies the In predicate on the "scope" field.
func ScopeLT ¶
func ScopeLT(v string) predicate.Oauth2Code
ScopeLT applies the LT predicate on the "scope" field.
func ScopeLTE ¶
func ScopeLTE(v string) predicate.Oauth2Code
ScopeLTE applies the LTE predicate on the "scope" field.
func ScopeNEQ ¶
func ScopeNEQ(v string) predicate.Oauth2Code
ScopeNEQ applies the NEQ predicate on the "scope" field.
func ScopeNotIn ¶
func ScopeNotIn(vs ...string) predicate.Oauth2Code
ScopeNotIn applies the NotIn predicate on the "scope" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Oauth2Code
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Oauth2Code
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Oauth2Code
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Oauth2Code
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Oauth2Code
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Oauth2Code
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Oauth2Code
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Oauth2Code
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Oauth2Code
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 Oauth2Code queries.
func ByAuthCode ¶
func ByAuthCode(opts ...sql.OrderTermOption) OrderOption
ByAuthCode orders the results by the auth_code 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 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 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.