Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Account) predicate.Account
- func AvatarURL(v string) predicate.Account
- func AvatarURLContains(v string) predicate.Account
- func AvatarURLContainsFold(v string) predicate.Account
- func AvatarURLEQ(v string) predicate.Account
- func AvatarURLEqualFold(v string) predicate.Account
- func AvatarURLGT(v string) predicate.Account
- func AvatarURLGTE(v string) predicate.Account
- func AvatarURLHasPrefix(v string) predicate.Account
- func AvatarURLHasSuffix(v string) predicate.Account
- func AvatarURLIn(vs ...string) predicate.Account
- func AvatarURLLT(v string) predicate.Account
- func AvatarURLLTE(v string) predicate.Account
- func AvatarURLNEQ(v string) predicate.Account
- func AvatarURLNotIn(vs ...string) 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 HasBindUser() predicate.Account
- func HasBindUserWith(preds ...predicate.User) predicate.Account
- func HasPurchasedApp() predicate.Account
- func HasPurchasedAppWith(preds ...predicate.AppInfo) predicate.Account
- func ID(id model.InternalID) predicate.Account
- func IDEQ(id model.InternalID) predicate.Account
- func IDGT(id model.InternalID) predicate.Account
- func IDGTE(id model.InternalID) predicate.Account
- func IDIn(ids ...model.InternalID) predicate.Account
- func IDLT(id model.InternalID) predicate.Account
- func IDLTE(id model.InternalID) predicate.Account
- func IDNEQ(id model.InternalID) predicate.Account
- func IDNotIn(ids ...model.InternalID) 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 Platform(v string) predicate.Account
- func PlatformAccountID(v string) predicate.Account
- func PlatformAccountIDContains(v string) predicate.Account
- func PlatformAccountIDContainsFold(v string) predicate.Account
- func PlatformAccountIDEQ(v string) predicate.Account
- func PlatformAccountIDEqualFold(v string) predicate.Account
- func PlatformAccountIDGT(v string) predicate.Account
- func PlatformAccountIDGTE(v string) predicate.Account
- func PlatformAccountIDHasPrefix(v string) predicate.Account
- func PlatformAccountIDHasSuffix(v string) predicate.Account
- func PlatformAccountIDIn(vs ...string) predicate.Account
- func PlatformAccountIDLT(v string) predicate.Account
- func PlatformAccountIDLTE(v string) predicate.Account
- func PlatformAccountIDNEQ(v string) predicate.Account
- func PlatformAccountIDNotIn(vs ...string) predicate.Account
- func PlatformContains(v string) predicate.Account
- func PlatformContainsFold(v string) predicate.Account
- func PlatformEQ(v string) predicate.Account
- func PlatformEqualFold(v string) predicate.Account
- func PlatformGT(v string) predicate.Account
- func PlatformGTE(v string) predicate.Account
- func PlatformHasPrefix(v string) predicate.Account
- func PlatformHasSuffix(v string) predicate.Account
- func PlatformIn(vs ...string) predicate.Account
- func PlatformLT(v string) predicate.Account
- func PlatformLTE(v string) predicate.Account
- func PlatformNEQ(v string) predicate.Account
- func PlatformNotIn(vs ...string) predicate.Account
- func ProfileURL(v string) predicate.Account
- func ProfileURLContains(v string) predicate.Account
- func ProfileURLContainsFold(v string) predicate.Account
- func ProfileURLEQ(v string) predicate.Account
- func ProfileURLEqualFold(v string) predicate.Account
- func ProfileURLGT(v string) predicate.Account
- func ProfileURLGTE(v string) predicate.Account
- func ProfileURLHasPrefix(v string) predicate.Account
- func ProfileURLHasSuffix(v string) predicate.Account
- func ProfileURLIn(vs ...string) predicate.Account
- func ProfileURLLT(v string) predicate.Account
- func ProfileURLLTE(v string) predicate.Account
- func ProfileURLNEQ(v string) predicate.Account
- func ProfileURLNotIn(vs ...string) 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
- type OrderOption
- func ByAvatarURL(opts ...sql.OrderTermOption) OrderOption
- func ByBindUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPlatform(opts ...sql.OrderTermOption) OrderOption
- func ByPlatformAccountID(opts ...sql.OrderTermOption) OrderOption
- func ByProfileURL(opts ...sql.OrderTermOption) OrderOption
- func ByPurchasedApp(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPurchasedAppCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
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" // FieldPlatform holds the string denoting the platform field in the database. FieldPlatform = "platform" // FieldPlatformAccountID holds the string denoting the platform_account_id field in the database. FieldPlatformAccountID = "platform_account_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldProfileURL holds the string denoting the profile_url field in the database. FieldProfileURL = "profile_url" // FieldAvatarURL holds the string denoting the avatar_url field in the database. FieldAvatarURL = "avatar_url" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgePurchasedApp holds the string denoting the purchased_app edge name in mutations. EdgePurchasedApp = "purchased_app" // EdgeBindUser holds the string denoting the bind_user edge name in mutations. EdgeBindUser = "bind_user" // Table holds the table name of the account in the database. Table = "accounts" // PurchasedAppTable is the table that holds the purchased_app relation/edge. The primary key declared below. PurchasedAppTable = "account_purchased_app" // PurchasedAppInverseTable is the table name for the AppInfo entity. // It exists in this package in order to avoid circular dependency with the "appinfo" package. PurchasedAppInverseTable = "app_infos" // BindUserTable is the table that holds the bind_user relation/edge. BindUserTable = "accounts" // BindUserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. BindUserInverseTable = "users" // BindUserColumn is the table column denoting the bind_user relation/edge. BindUserColumn = "user_bind_account" )
Variables ¶
var ( // 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 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldPlatform, FieldPlatformAccountID, FieldName, FieldProfileURL, FieldAvatarURL, FieldUpdatedAt, FieldCreatedAt, }
Columns holds all SQL columns for account fields.
var ForeignKeys = []string{
"user_bind_account",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "accounts" table and are not defined as standalone fields in the schema.
var ( // PurchasedAppPrimaryKey and PurchasedAppColumn2 are the table columns denoting the // primary key for the purchased_app relation (M2M). PurchasedAppPrimaryKey = []string{"account_id", "app_info_id"} )
Functions ¶
func AvatarURL ¶
AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.
func AvatarURLContains ¶
AvatarURLContains applies the Contains predicate on the "avatar_url" field.
func AvatarURLContainsFold ¶
AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.
func AvatarURLEQ ¶
AvatarURLEQ applies the EQ predicate on the "avatar_url" field.
func AvatarURLEqualFold ¶
AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.
func AvatarURLGT ¶
AvatarURLGT applies the GT predicate on the "avatar_url" field.
func AvatarURLGTE ¶
AvatarURLGTE applies the GTE predicate on the "avatar_url" field.
func AvatarURLHasPrefix ¶
AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.
func AvatarURLHasSuffix ¶
AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.
func AvatarURLIn ¶
AvatarURLIn applies the In predicate on the "avatar_url" field.
func AvatarURLLT ¶
AvatarURLLT applies the LT predicate on the "avatar_url" field.
func AvatarURLLTE ¶
AvatarURLLTE applies the LTE predicate on the "avatar_url" field.
func AvatarURLNEQ ¶
AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.
func AvatarURLNotIn ¶
AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.
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 HasBindUser ¶
HasBindUser applies the HasEdge predicate on the "bind_user" edge.
func HasBindUserWith ¶
HasBindUserWith applies the HasEdge predicate on the "bind_user" edge with a given conditions (other predicates).
func HasPurchasedApp ¶ added in v0.1.7
HasPurchasedApp applies the HasEdge predicate on the "purchased_app" edge.
func HasPurchasedAppWith ¶ added in v0.1.7
HasPurchasedAppWith applies the HasEdge predicate on the "purchased_app" edge with a given conditions (other predicates).
func ID ¶
func ID(id model.InternalID) predicate.Account
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id model.InternalID) predicate.Account
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id model.InternalID) predicate.Account
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id model.InternalID) predicate.Account
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...model.InternalID) predicate.Account
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id model.InternalID) predicate.Account
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id model.InternalID) predicate.Account
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id model.InternalID) predicate.Account
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...model.InternalID) predicate.Account
IDNotIn applies the NotIn predicate on the ID field.
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 Platform ¶
Platform applies equality check predicate on the "platform" field. It's identical to PlatformEQ.
func PlatformAccountID ¶
PlatformAccountID applies equality check predicate on the "platform_account_id" field. It's identical to PlatformAccountIDEQ.
func PlatformAccountIDContains ¶
PlatformAccountIDContains applies the Contains predicate on the "platform_account_id" field.
func PlatformAccountIDContainsFold ¶
PlatformAccountIDContainsFold applies the ContainsFold predicate on the "platform_account_id" field.
func PlatformAccountIDEQ ¶
PlatformAccountIDEQ applies the EQ predicate on the "platform_account_id" field.
func PlatformAccountIDEqualFold ¶
PlatformAccountIDEqualFold applies the EqualFold predicate on the "platform_account_id" field.
func PlatformAccountIDGT ¶
PlatformAccountIDGT applies the GT predicate on the "platform_account_id" field.
func PlatformAccountIDGTE ¶
PlatformAccountIDGTE applies the GTE predicate on the "platform_account_id" field.
func PlatformAccountIDHasPrefix ¶
PlatformAccountIDHasPrefix applies the HasPrefix predicate on the "platform_account_id" field.
func PlatformAccountIDHasSuffix ¶
PlatformAccountIDHasSuffix applies the HasSuffix predicate on the "platform_account_id" field.
func PlatformAccountIDIn ¶
PlatformAccountIDIn applies the In predicate on the "platform_account_id" field.
func PlatformAccountIDLT ¶
PlatformAccountIDLT applies the LT predicate on the "platform_account_id" field.
func PlatformAccountIDLTE ¶
PlatformAccountIDLTE applies the LTE predicate on the "platform_account_id" field.
func PlatformAccountIDNEQ ¶
PlatformAccountIDNEQ applies the NEQ predicate on the "platform_account_id" field.
func PlatformAccountIDNotIn ¶
PlatformAccountIDNotIn applies the NotIn predicate on the "platform_account_id" field.
func PlatformContains ¶ added in v0.2.0
PlatformContains applies the Contains predicate on the "platform" field.
func PlatformContainsFold ¶ added in v0.2.0
PlatformContainsFold applies the ContainsFold predicate on the "platform" field.
func PlatformEQ ¶
PlatformEQ applies the EQ predicate on the "platform" field.
func PlatformEqualFold ¶ added in v0.2.0
PlatformEqualFold applies the EqualFold predicate on the "platform" field.
func PlatformGT ¶ added in v0.2.0
PlatformGT applies the GT predicate on the "platform" field.
func PlatformGTE ¶ added in v0.2.0
PlatformGTE applies the GTE predicate on the "platform" field.
func PlatformHasPrefix ¶ added in v0.2.0
PlatformHasPrefix applies the HasPrefix predicate on the "platform" field.
func PlatformHasSuffix ¶ added in v0.2.0
PlatformHasSuffix applies the HasSuffix predicate on the "platform" field.
func PlatformIn ¶
PlatformIn applies the In predicate on the "platform" field.
func PlatformLT ¶ added in v0.2.0
PlatformLT applies the LT predicate on the "platform" field.
func PlatformLTE ¶ added in v0.2.0
PlatformLTE applies the LTE predicate on the "platform" field.
func PlatformNEQ ¶
PlatformNEQ applies the NEQ predicate on the "platform" field.
func PlatformNotIn ¶
PlatformNotIn applies the NotIn predicate on the "platform" field.
func ProfileURL ¶
ProfileURL applies equality check predicate on the "profile_url" field. It's identical to ProfileURLEQ.
func ProfileURLContains ¶
ProfileURLContains applies the Contains predicate on the "profile_url" field.
func ProfileURLContainsFold ¶
ProfileURLContainsFold applies the ContainsFold predicate on the "profile_url" field.
func ProfileURLEQ ¶
ProfileURLEQ applies the EQ predicate on the "profile_url" field.
func ProfileURLEqualFold ¶
ProfileURLEqualFold applies the EqualFold predicate on the "profile_url" field.
func ProfileURLGT ¶
ProfileURLGT applies the GT predicate on the "profile_url" field.
func ProfileURLGTE ¶
ProfileURLGTE applies the GTE predicate on the "profile_url" field.
func ProfileURLHasPrefix ¶
ProfileURLHasPrefix applies the HasPrefix predicate on the "profile_url" field.
func ProfileURLHasSuffix ¶
ProfileURLHasSuffix applies the HasSuffix predicate on the "profile_url" field.
func ProfileURLIn ¶
ProfileURLIn applies the In predicate on the "profile_url" field.
func ProfileURLLT ¶
ProfileURLLT applies the LT predicate on the "profile_url" field.
func ProfileURLLTE ¶
ProfileURLLTE applies the LTE predicate on the "profile_url" field.
func ProfileURLNEQ ¶
ProfileURLNEQ applies the NEQ predicate on the "profile_url" field.
func ProfileURLNotIn ¶
ProfileURLNotIn applies the NotIn predicate on the "profile_url" 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 ¶
type OrderOption ¶ added in v0.1.4
OrderOption defines the ordering options for the Account queries.
func ByAvatarURL ¶ added in v0.1.4
func ByAvatarURL(opts ...sql.OrderTermOption) OrderOption
ByAvatarURL orders the results by the avatar_url field.
func ByBindUserField ¶ added in v0.1.4
func ByBindUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByBindUserField orders the results by bind_user field.
func ByCreatedAt ¶ added in v0.1.4
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶ added in v0.1.4
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶ added in v0.1.4
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPlatform ¶ added in v0.1.4
func ByPlatform(opts ...sql.OrderTermOption) OrderOption
ByPlatform orders the results by the platform field.
func ByPlatformAccountID ¶ added in v0.1.4
func ByPlatformAccountID(opts ...sql.OrderTermOption) OrderOption
ByPlatformAccountID orders the results by the platform_account_id field.
func ByProfileURL ¶ added in v0.1.4
func ByProfileURL(opts ...sql.OrderTermOption) OrderOption
ByProfileURL orders the results by the profile_url field.
func ByPurchasedApp ¶ added in v0.1.7
func ByPurchasedApp(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPurchasedApp orders the results by purchased_app terms.
func ByPurchasedAppCount ¶ added in v0.1.7
func ByPurchasedAppCount(opts ...sql.OrderTermOption) OrderOption
ByPurchasedAppCount orders the results by purchased_app count.
func ByUpdatedAt ¶ added in v0.1.4
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.