Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Passkey) predicate.Passkey
- func CreatedAt(v time.Time) predicate.Passkey
- func CreatedAtEQ(v time.Time) predicate.Passkey
- func CreatedAtGT(v time.Time) predicate.Passkey
- func CreatedAtGTE(v time.Time) predicate.Passkey
- func CreatedAtIn(vs ...time.Time) predicate.Passkey
- func CreatedAtLT(v time.Time) predicate.Passkey
- func CreatedAtLTE(v time.Time) predicate.Passkey
- func CreatedAtNEQ(v time.Time) predicate.Passkey
- func CreatedAtNotIn(vs ...time.Time) predicate.Passkey
- func CredentialID(v string) predicate.Passkey
- func CredentialIDContains(v string) predicate.Passkey
- func CredentialIDContainsFold(v string) predicate.Passkey
- func CredentialIDEQ(v string) predicate.Passkey
- func CredentialIDEqualFold(v string) predicate.Passkey
- func CredentialIDGT(v string) predicate.Passkey
- func CredentialIDGTE(v string) predicate.Passkey
- func CredentialIDHasPrefix(v string) predicate.Passkey
- func CredentialIDHasSuffix(v string) predicate.Passkey
- func CredentialIDIn(vs ...string) predicate.Passkey
- func CredentialIDLT(v string) predicate.Passkey
- func CredentialIDLTE(v string) predicate.Passkey
- func CredentialIDNEQ(v string) predicate.Passkey
- func CredentialIDNotIn(vs ...string) predicate.Passkey
- func DeletedAt(v time.Time) predicate.Passkey
- func DeletedAtEQ(v time.Time) predicate.Passkey
- func DeletedAtGT(v time.Time) predicate.Passkey
- func DeletedAtGTE(v time.Time) predicate.Passkey
- func DeletedAtIn(vs ...time.Time) predicate.Passkey
- func DeletedAtIsNil() predicate.Passkey
- func DeletedAtLT(v time.Time) predicate.Passkey
- func DeletedAtLTE(v time.Time) predicate.Passkey
- func DeletedAtNEQ(v time.Time) predicate.Passkey
- func DeletedAtNotIn(vs ...time.Time) predicate.Passkey
- func DeletedAtNotNil() predicate.Passkey
- func HasUser() predicate.Passkey
- func HasUserWith(preds ...predicate.User) predicate.Passkey
- func ID(id int) predicate.Passkey
- func IDEQ(id int) predicate.Passkey
- func IDGT(id int) predicate.Passkey
- func IDGTE(id int) predicate.Passkey
- func IDIn(ids ...int) predicate.Passkey
- func IDLT(id int) predicate.Passkey
- func IDLTE(id int) predicate.Passkey
- func IDNEQ(id int) predicate.Passkey
- func IDNotIn(ids ...int) predicate.Passkey
- func Name(v string) predicate.Passkey
- func NameContains(v string) predicate.Passkey
- func NameContainsFold(v string) predicate.Passkey
- func NameEQ(v string) predicate.Passkey
- func NameEqualFold(v string) predicate.Passkey
- func NameGT(v string) predicate.Passkey
- func NameGTE(v string) predicate.Passkey
- func NameHasPrefix(v string) predicate.Passkey
- func NameHasSuffix(v string) predicate.Passkey
- func NameIn(vs ...string) predicate.Passkey
- func NameLT(v string) predicate.Passkey
- func NameLTE(v string) predicate.Passkey
- func NameNEQ(v string) predicate.Passkey
- func NameNotIn(vs ...string) predicate.Passkey
- func Not(p predicate.Passkey) predicate.Passkey
- func Or(predicates ...predicate.Passkey) predicate.Passkey
- func UpdatedAt(v time.Time) predicate.Passkey
- func UpdatedAtEQ(v time.Time) predicate.Passkey
- func UpdatedAtGT(v time.Time) predicate.Passkey
- func UpdatedAtGTE(v time.Time) predicate.Passkey
- func UpdatedAtIn(vs ...time.Time) predicate.Passkey
- func UpdatedAtLT(v time.Time) predicate.Passkey
- func UpdatedAtLTE(v time.Time) predicate.Passkey
- func UpdatedAtNEQ(v time.Time) predicate.Passkey
- func UpdatedAtNotIn(vs ...time.Time) predicate.Passkey
- func UsedAt(v time.Time) predicate.Passkey
- func UsedAtEQ(v time.Time) predicate.Passkey
- func UsedAtGT(v time.Time) predicate.Passkey
- func UsedAtGTE(v time.Time) predicate.Passkey
- func UsedAtIn(vs ...time.Time) predicate.Passkey
- func UsedAtIsNil() predicate.Passkey
- func UsedAtLT(v time.Time) predicate.Passkey
- func UsedAtLTE(v time.Time) predicate.Passkey
- func UsedAtNEQ(v time.Time) predicate.Passkey
- func UsedAtNotIn(vs ...time.Time) predicate.Passkey
- func UsedAtNotNil() predicate.Passkey
- func UserID(v int) predicate.Passkey
- func UserIDEQ(v int) predicate.Passkey
- func UserIDIn(vs ...int) predicate.Passkey
- func UserIDNEQ(v int) predicate.Passkey
- func UserIDNotIn(vs ...int) predicate.Passkey
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCredentialID(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the passkey type in the database. Label = "passkey" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldCredentialID holds the string denoting the credential_id field in the database. FieldCredentialID = "credential_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCredential holds the string denoting the credential field in the database. FieldCredential = "credential" // FieldUsedAt holds the string denoting the used_at field in the database. FieldUsedAt = "used_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the passkey in the database. Table = "passkeys" // UserTable is the table that holds the user relation/edge. UserTable = "passkeys" // 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 ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // 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 )
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/cloudreve/Cloudreve/v4/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldUserID, FieldCredentialID, FieldName, FieldCredential, FieldUsedAt, }
Columns holds all SQL columns for passkey 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 CredentialID ¶
CredentialID applies equality check predicate on the "credential_id" field. It's identical to CredentialIDEQ.
func CredentialIDContains ¶
CredentialIDContains applies the Contains predicate on the "credential_id" field.
func CredentialIDContainsFold ¶
CredentialIDContainsFold applies the ContainsFold predicate on the "credential_id" field.
func CredentialIDEQ ¶
CredentialIDEQ applies the EQ predicate on the "credential_id" field.
func CredentialIDEqualFold ¶
CredentialIDEqualFold applies the EqualFold predicate on the "credential_id" field.
func CredentialIDGT ¶
CredentialIDGT applies the GT predicate on the "credential_id" field.
func CredentialIDGTE ¶
CredentialIDGTE applies the GTE predicate on the "credential_id" field.
func CredentialIDHasPrefix ¶
CredentialIDHasPrefix applies the HasPrefix predicate on the "credential_id" field.
func CredentialIDHasSuffix ¶
CredentialIDHasSuffix applies the HasSuffix predicate on the "credential_id" field.
func CredentialIDIn ¶
CredentialIDIn applies the In predicate on the "credential_id" field.
func CredentialIDLT ¶
CredentialIDLT applies the LT predicate on the "credential_id" field.
func CredentialIDLTE ¶
CredentialIDLTE applies the LTE predicate on the "credential_id" field.
func CredentialIDNEQ ¶
CredentialIDNEQ applies the NEQ predicate on the "credential_id" field.
func CredentialIDNotIn ¶
CredentialIDNotIn applies the NotIn predicate on the "credential_id" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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 UsedAt ¶
UsedAt applies equality check predicate on the "used_at" field. It's identical to UsedAtEQ.
func UsedAtIsNil ¶
UsedAtIsNil applies the IsNil predicate on the "used_at" field.
func UsedAtNotIn ¶
UsedAtNotIn applies the NotIn predicate on the "used_at" field.
func UsedAtNotNil ¶
UsedAtNotNil applies the NotNil predicate on the "used_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
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 Passkey queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCredentialID ¶
func ByCredentialID(opts ...sql.OrderTermOption) OrderOption
ByCredentialID orders the results by the credential_id field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsedAt ¶
func ByUsedAt(opts ...sql.OrderTermOption) OrderOption
ByUsedAt orders the results by the used_at 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.