Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func Displayname(v string) predicate.User
- func DisplaynameContains(v string) predicate.User
- func DisplaynameContainsFold(v string) predicate.User
- func DisplaynameEQ(v string) predicate.User
- func DisplaynameEqualFold(v string) predicate.User
- func DisplaynameGT(v string) predicate.User
- func DisplaynameGTE(v string) predicate.User
- func DisplaynameHasPrefix(v string) predicate.User
- func DisplaynameHasSuffix(v string) predicate.User
- func DisplaynameIn(vs ...string) predicate.User
- func DisplaynameIsNil() predicate.User
- func DisplaynameLT(v string) predicate.User
- func DisplaynameLTE(v string) predicate.User
- func DisplaynameNEQ(v string) predicate.User
- func DisplaynameNotIn(vs ...string) predicate.User
- func DisplaynameNotNil() predicate.User
- func HasAuthncredentials() predicate.User
- func HasAuthncredentialsWith(preds ...predicate.WebauthnCredential) predicate.User
- func HasCredentials() predicate.User
- func HasCredentialsWith(preds ...predicate.Credential) predicate.User
- func HasDids() predicate.User
- func HasDidsWith(preds ...predicate.DID) predicate.User
- func ID(id string) predicate.User
- func IDEQ(id string) predicate.User
- func IDGT(id string) predicate.User
- func IDGTE(id string) predicate.User
- func IDIn(ids ...string) predicate.User
- func IDLT(id string) predicate.User
- func IDLTE(id string) predicate.User
- func IDNEQ(id string) predicate.User
- func IDNotIn(ids ...string) predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Password(v []byte) predicate.User
- func PasswordEQ(v []byte) predicate.User
- func PasswordGT(v []byte) predicate.User
- func PasswordGTE(v []byte) predicate.User
- func PasswordIn(vs ...[]byte) predicate.User
- func PasswordLT(v []byte) predicate.User
- func PasswordLTE(v []byte) predicate.User
- func PasswordNEQ(v []byte) predicate.User
- func PasswordNotIn(vs ...[]byte) predicate.User
- func Type(v string) predicate.User
- func TypeContains(v string) predicate.User
- func TypeContainsFold(v string) predicate.User
- func TypeEQ(v string) predicate.User
- func TypeEqualFold(v string) predicate.User
- func TypeGT(v string) predicate.User
- func TypeGTE(v string) predicate.User
- func TypeHasPrefix(v string) predicate.User
- func TypeHasSuffix(v string) predicate.User
- func TypeIn(vs ...string) predicate.User
- func TypeLT(v string) predicate.User
- func TypeLTE(v string) predicate.User
- func TypeNEQ(v string) predicate.User
- func TypeNotIn(vs ...string) predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDisplayname holds the string denoting the displayname field in the database. FieldDisplayname = "displayname" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // 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" // EdgeDids holds the string denoting the dids edge name in mutations. EdgeDids = "dids" // EdgeCredentials holds the string denoting the credentials edge name in mutations. EdgeCredentials = "credentials" // EdgeAuthncredentials holds the string denoting the authncredentials edge name in mutations. EdgeAuthncredentials = "authncredentials" // Table holds the table name of the user in the database. Table = "users" // DidsTable is the table that holds the dids relation/edge. DidsTable = "di_ds" // DidsInverseTable is the table name for the DID entity. // It exists in this package in order to avoid circular dependency with the "did" package. DidsInverseTable = "di_ds" // DidsColumn is the table column denoting the dids relation/edge. DidsColumn = "user_dids" // CredentialsTable is the table that holds the credentials relation/edge. CredentialsTable = "credentials" // CredentialsInverseTable is the table name for the Credential entity. // It exists in this package in order to avoid circular dependency with the "credential" package. CredentialsInverseTable = "credentials" // CredentialsColumn is the table column denoting the credentials relation/edge. CredentialsColumn = "user_credentials" // AuthncredentialsTable is the table that holds the authncredentials relation/edge. AuthncredentialsTable = "webauthn_credentials" // AuthncredentialsInverseTable is the table name for the WebauthnCredential entity. // It exists in this package in order to avoid circular dependency with the "webauthncredential" package. AuthncredentialsInverseTable = "webauthn_credentials" // AuthncredentialsColumn is the table column denoting the authncredentials relation/edge. AuthncredentialsColumn = "user_authncredentials" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // PasswordValidator is a validator for the "password" field. It is called by the builders before save. PasswordValidator func([]byte) error // 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 // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldDisplayname, FieldType, FieldPassword, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for user 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 Displayname ¶
Displayname applies equality check predicate on the "displayname" field. It's identical to DisplaynameEQ.
func DisplaynameContains ¶
DisplaynameContains applies the Contains predicate on the "displayname" field.
func DisplaynameContainsFold ¶
DisplaynameContainsFold applies the ContainsFold predicate on the "displayname" field.
func DisplaynameEQ ¶
DisplaynameEQ applies the EQ predicate on the "displayname" field.
func DisplaynameEqualFold ¶
DisplaynameEqualFold applies the EqualFold predicate on the "displayname" field.
func DisplaynameGT ¶
DisplaynameGT applies the GT predicate on the "displayname" field.
func DisplaynameGTE ¶
DisplaynameGTE applies the GTE predicate on the "displayname" field.
func DisplaynameHasPrefix ¶
DisplaynameHasPrefix applies the HasPrefix predicate on the "displayname" field.
func DisplaynameHasSuffix ¶
DisplaynameHasSuffix applies the HasSuffix predicate on the "displayname" field.
func DisplaynameIn ¶
DisplaynameIn applies the In predicate on the "displayname" field.
func DisplaynameIsNil ¶
DisplaynameIsNil applies the IsNil predicate on the "displayname" field.
func DisplaynameLT ¶
DisplaynameLT applies the LT predicate on the "displayname" field.
func DisplaynameLTE ¶
DisplaynameLTE applies the LTE predicate on the "displayname" field.
func DisplaynameNEQ ¶
DisplaynameNEQ applies the NEQ predicate on the "displayname" field.
func DisplaynameNotIn ¶
DisplaynameNotIn applies the NotIn predicate on the "displayname" field.
func DisplaynameNotNil ¶
DisplaynameNotNil applies the NotNil predicate on the "displayname" field.
func HasAuthncredentials ¶
HasAuthncredentials applies the HasEdge predicate on the "authncredentials" edge.
func HasAuthncredentialsWith ¶
func HasAuthncredentialsWith(preds ...predicate.WebauthnCredential) predicate.User
HasAuthncredentialsWith applies the HasEdge predicate on the "authncredentials" edge with a given conditions (other predicates).
func HasCredentials ¶
HasCredentials applies the HasEdge predicate on the "credentials" edge.
func HasCredentialsWith ¶
func HasCredentialsWith(preds ...predicate.Credential) predicate.User
HasCredentialsWith applies the HasEdge predicate on the "credentials" edge with a given conditions (other predicates).
func HasDidsWith ¶
HasDidsWith applies the HasEdge predicate on the "dids" 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 Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.