Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Account) predicate.Account
- func CreatedAt(v time.Time) predicate.Account
- func CreatedAtEQ(v time.Time) predicate.Account
- func CreatedAtGT(v time.Time) predicate.Account
- func CreatedAtGTE(v time.Time) predicate.Account
- func CreatedAtIn(vs ...time.Time) predicate.Account
- func CreatedAtLT(v time.Time) predicate.Account
- func CreatedAtLTE(v time.Time) predicate.Account
- func CreatedAtNEQ(v time.Time) predicate.Account
- func CreatedAtNotIn(vs ...time.Time) predicate.Account
- func HasCredentials() predicate.Account
- func HasCredentialsWith(preds ...predicate.Credential) predicate.Account
- func HasKeys() predicate.Account
- func HasKeysWith(preds ...predicate.PrivateKey) predicate.Account
- func ID(id int) predicate.Account
- func IDEQ(id int) predicate.Account
- func IDGT(id int) predicate.Account
- func IDGTE(id int) predicate.Account
- func IDIn(ids ...int) predicate.Account
- func IDLT(id int) predicate.Account
- func IDLTE(id int) predicate.Account
- func IDNEQ(id int) predicate.Account
- func IDNotIn(ids ...int) predicate.Account
- func Name(v string) predicate.Account
- func NameContains(v string) predicate.Account
- func NameContainsFold(v string) predicate.Account
- func NameEQ(v string) predicate.Account
- func NameEqualFold(v string) predicate.Account
- func NameGT(v string) predicate.Account
- func NameGTE(v string) predicate.Account
- func NameHasPrefix(v string) predicate.Account
- func NameHasSuffix(v string) predicate.Account
- func NameIn(vs ...string) predicate.Account
- func NameLT(v string) predicate.Account
- func NameLTE(v string) predicate.Account
- func NameNEQ(v string) predicate.Account
- func NameNotIn(vs ...string) predicate.Account
- func Not(p predicate.Account) predicate.Account
- func Or(predicates ...predicate.Account) predicate.Account
- func UpdatedAt(v time.Time) predicate.Account
- func UpdatedAtEQ(v time.Time) predicate.Account
- func UpdatedAtGT(v time.Time) predicate.Account
- func UpdatedAtGTE(v time.Time) predicate.Account
- func UpdatedAtIn(vs ...time.Time) predicate.Account
- func UpdatedAtLT(v time.Time) predicate.Account
- func UpdatedAtLTE(v time.Time) predicate.Account
- func UpdatedAtNEQ(v time.Time) predicate.Account
- func UpdatedAtNotIn(vs ...time.Time) predicate.Account
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the account type in the database. Label = "account" // 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" // 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" // EdgeKeys holds the string denoting the keys edge name in mutations. EdgeKeys = "keys" // EdgeCredentials holds the string denoting the credentials edge name in mutations. EdgeCredentials = "credentials" // Table holds the table name of the account in the database. Table = "accounts" // KeysTable is the table that holds the keys relation/edge. KeysTable = "private_keys" // KeysInverseTable is the table name for the PrivateKey entity. // It exists in this package in order to avoid circular dependency with the "privatekey" package. KeysInverseTable = "private_keys" // KeysColumn is the table column denoting the keys relation/edge. KeysColumn = "account_keys" // 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 = "account_credentials" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) 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 )
var Columns = []string{ FieldID, FieldName, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for account 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 HasCredentials ¶
HasCredentials applies the HasEdge predicate on the "credentials" edge.
func HasCredentialsWith ¶
func HasCredentialsWith(preds ...predicate.Credential) predicate.Account
HasCredentialsWith applies the HasEdge predicate on the "credentials" edge with a given conditions (other predicates).
func HasKeysWith ¶
func HasKeysWith(preds ...predicate.PrivateKey) predicate.Account
HasKeysWith applies the HasEdge predicate on the "keys" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.