Documentation ¶
Index ¶
- Constants
- Variables
- func AccessTokenExists(ctx context.Context, exec boil.ContextExecutor, token string) (bool, error)
- func AccessTokens(mods ...qm.QueryMod) accessTokenQuery
- func AllProviderType() []string
- func AppUserProfileExists(ctx context.Context, exec boil.ContextExecutor, userID string) (bool, error)
- func AppUserProfiles(mods ...qm.QueryMod) appUserProfileQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func PasswordResetTokenExists(ctx context.Context, exec boil.ContextExecutor, token string) (bool, error)
- func PasswordResetTokens(mods ...qm.QueryMod) passwordResetTokenQuery
- func PushTokenExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func PushTokens(mods ...qm.QueryMod) pushTokenQuery
- func RefreshTokenExists(ctx context.Context, exec boil.ContextExecutor, token string) (bool, error)
- func RefreshTokens(mods ...qm.QueryMod) refreshTokenQuery
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Users(mods ...qm.QueryMod) userQuery
- type AccessToken
- func (o *AccessToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AccessToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *AccessToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *AccessToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AccessToken) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *AccessToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *AccessToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *AccessToken) User(mods ...qm.QueryMod) userQuery
- type AccessTokenSlice
- type AppUserProfile
- func (o *AppUserProfile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AppUserProfile) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *AppUserProfile) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *AppUserProfile) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AppUserProfile) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *AppUserProfile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *AppUserProfile) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *AppUserProfile) User(mods ...qm.QueryMod) userQuery
- type AppUserProfileSlice
- func (o AppUserProfileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AppUserProfileSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o AppUserProfileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type M
- type PasswordResetToken
- func (o *PasswordResetToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PasswordResetToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *PasswordResetToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PasswordResetToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PasswordResetToken) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *PasswordResetToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PasswordResetToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *PasswordResetToken) User(mods ...qm.QueryMod) userQuery
- type PasswordResetTokenSlice
- func (o PasswordResetTokenSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PasswordResetTokenSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o PasswordResetTokenSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type PushToken
- func (o *PushToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PushToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *PushToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PushToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PushToken) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *PushToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PushToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *PushToken) User(mods ...qm.QueryMod) userQuery
- type PushTokenSlice
- type RefreshToken
- func (o *RefreshToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RefreshToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *RefreshToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RefreshToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RefreshToken) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *RefreshToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RefreshToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *RefreshToken) User(mods ...qm.QueryMod) userQuery
- type RefreshTokenSlice
- type UpsertOptionFunc
- type UpsertOptions
- type User
- func (o *User) AccessTokens(mods ...qm.QueryMod) accessTokenQuery
- func (o *User) AddAccessTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddPasswordResetTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddPushTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddRefreshTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AppUserProfile(mods ...qm.QueryMod) appUserProfileQuery
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *User) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *User) PasswordResetTokens(mods ...qm.QueryMod) passwordResetTokenQuery
- func (o *User) PushTokens(mods ...qm.QueryMod) pushTokenQuery
- func (o *User) RefreshTokens(mods ...qm.QueryMod) refreshTokenQuery
- func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *User) SetAppUserProfile(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type UserSlice
Constants ¶
const ( ProviderTypeFCM string = "fcm" ProviderTypeApn string = "apn" )
Enum values for ProviderType
Variables ¶
var AccessTokenColumns = struct { Token string ValidUntil string UserID string CreatedAt string UpdatedAt string }{ Token: "token", ValidUntil: "valid_until", UserID: "user_id", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var AccessTokenRels = struct { User string }{ User: "User", }
AccessTokenRels is where relationship names are stored.
var AccessTokenTableColumns = struct { Token string ValidUntil string UserID string CreatedAt string UpdatedAt string }{ Token: "access_tokens.token", ValidUntil: "access_tokens.valid_until", UserID: "access_tokens.user_id", CreatedAt: "access_tokens.created_at", UpdatedAt: "access_tokens.updated_at", }
var AccessTokenWhere = struct { Token whereHelperstring ValidUntil whereHelpertime_Time UserID whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ Token: whereHelperstring{/* contains filtered or unexported fields */}, ValidUntil: whereHelpertime_Time{/* contains filtered or unexported fields */}, UserID: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var AppUserProfileColumns = struct { UserID string LegalAcceptedAt string CreatedAt string UpdatedAt string }{ UserID: "user_id", LegalAcceptedAt: "legal_accepted_at", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var AppUserProfileRels = struct { User string }{ User: "User", }
AppUserProfileRels is where relationship names are stored.
var AppUserProfileTableColumns = struct { UserID string LegalAcceptedAt string CreatedAt string UpdatedAt string }{ UserID: "app_user_profiles.user_id", LegalAcceptedAt: "app_user_profiles.legal_accepted_at", CreatedAt: "app_user_profiles.created_at", UpdatedAt: "app_user_profiles.updated_at", }
var AppUserProfileWhere = struct { UserID whereHelperstring LegalAcceptedAt whereHelpernull_Time CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ UserID: whereHelperstring{/* contains filtered or unexported fields */}, LegalAcceptedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var PasswordResetTokenColumns = struct { Token string ValidUntil string UserID string CreatedAt string UpdatedAt string }{ Token: "token", ValidUntil: "valid_until", UserID: "user_id", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var PasswordResetTokenRels = struct { User string }{ User: "User", }
PasswordResetTokenRels is where relationship names are stored.
var PasswordResetTokenTableColumns = struct { Token string ValidUntil string UserID string CreatedAt string UpdatedAt string }{ Token: "password_reset_tokens.token", ValidUntil: "password_reset_tokens.valid_until", UserID: "password_reset_tokens.user_id", CreatedAt: "password_reset_tokens.created_at", UpdatedAt: "password_reset_tokens.updated_at", }
var PasswordResetTokenWhere = struct { Token whereHelperstring ValidUntil whereHelpertime_Time UserID whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ Token: whereHelperstring{/* contains filtered or unexported fields */}, ValidUntil: whereHelpertime_Time{/* contains filtered or unexported fields */}, UserID: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var PushTokenColumns = struct { ID string Token string Provider string UserID string CreatedAt string UpdatedAt string }{ ID: "id", Token: "token", Provider: "provider", UserID: "user_id", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var PushTokenRels = struct { User string }{ User: "User", }
PushTokenRels is where relationship names are stored.
var PushTokenTableColumns = struct { ID string Token string Provider string UserID string CreatedAt string UpdatedAt string }{ ID: "push_tokens.id", Token: "push_tokens.token", Provider: "push_tokens.provider", UserID: "push_tokens.user_id", CreatedAt: "push_tokens.created_at", UpdatedAt: "push_tokens.updated_at", }
var PushTokenWhere = struct { ID whereHelperstring Token whereHelperstring Provider whereHelperstring UserID whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Token: whereHelperstring{/* contains filtered or unexported fields */}, Provider: whereHelperstring{/* contains filtered or unexported fields */}, UserID: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var RefreshTokenColumns = struct { Token string UserID string CreatedAt string UpdatedAt string }{ Token: "token", UserID: "user_id", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var RefreshTokenRels = struct { User string }{ User: "User", }
RefreshTokenRels is where relationship names are stored.
var RefreshTokenTableColumns = struct { Token string UserID string CreatedAt string UpdatedAt string }{ Token: "refresh_tokens.token", UserID: "refresh_tokens.user_id", CreatedAt: "refresh_tokens.created_at", UpdatedAt: "refresh_tokens.updated_at", }
var RefreshTokenWhere = struct { Token whereHelperstring UserID whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ Token: whereHelperstring{/* contains filtered or unexported fields */}, UserID: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { AccessTokens string AppUserProfiles string PasswordResetTokens string PushTokens string RefreshTokens string Users string }{ AccessTokens: "access_tokens", AppUserProfiles: "app_user_profiles", PasswordResetTokens: "password_reset_tokens", PushTokens: "push_tokens", RefreshTokens: "refresh_tokens", Users: "users", }
var UserColumns = struct { ID string Username string Password string IsActive string Scopes string LastAuthenticatedAt string CreatedAt string UpdatedAt string }{ ID: "id", Username: "username", Password: "password", IsActive: "is_active", Scopes: "scopes", LastAuthenticatedAt: "last_authenticated_at", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserRels = struct { AppUserProfile string AccessTokens string PasswordResetTokens string PushTokens string RefreshTokens string }{ AppUserProfile: "AppUserProfile", AccessTokens: "AccessTokens", PasswordResetTokens: "PasswordResetTokens", PushTokens: "PushTokens", RefreshTokens: "RefreshTokens", }
UserRels is where relationship names are stored.
var UserTableColumns = struct { ID string Username string Password string IsActive string Scopes string LastAuthenticatedAt string CreatedAt string UpdatedAt string }{ ID: "users.id", Username: "users.username", Password: "users.password", IsActive: "users.is_active", Scopes: "users.scopes", LastAuthenticatedAt: "users.last_authenticated_at", CreatedAt: "users.created_at", UpdatedAt: "users.updated_at", }
var UserWhere = struct { ID whereHelperstring Username whereHelpernull_String Password whereHelpernull_String IsActive whereHelperbool Scopes whereHelpertypes_StringArray LastAuthenticatedAt whereHelpernull_Time CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Username: whereHelpernull_String{/* contains filtered or unexported fields */}, Password: whereHelpernull_String{/* contains filtered or unexported fields */}, IsActive: whereHelperbool{/* contains filtered or unexported fields */}, Scopes: whereHelpertypes_StringArray{/* contains filtered or unexported fields */}, LastAuthenticatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var ViewNames = struct {
}{}
Functions ¶
func AccessTokenExists ¶
AccessTokenExists checks if the AccessToken row exists.
func AccessTokens ¶
AccessTokens retrieves all the records using an executor.
func AllProviderType ¶
func AllProviderType() []string
func AppUserProfileExists ¶
func AppUserProfileExists(ctx context.Context, exec boil.ContextExecutor, userID string) (bool, error)
AppUserProfileExists checks if the AppUserProfile row exists.
func AppUserProfiles ¶
AppUserProfiles retrieves all the records using an executor.
func PasswordResetTokenExists ¶
func PasswordResetTokenExists(ctx context.Context, exec boil.ContextExecutor, token string) (bool, error)
PasswordResetTokenExists checks if the PasswordResetToken row exists.
func PasswordResetTokens ¶
PasswordResetTokens retrieves all the records using an executor.
func PushTokenExists ¶
PushTokenExists checks if the PushToken row exists.
func PushTokens ¶
PushTokens retrieves all the records using an executor.
func RefreshTokenExists ¶
RefreshTokenExists checks if the RefreshToken row exists.
func RefreshTokens ¶
RefreshTokens retrieves all the records using an executor.
func UserExists ¶
UserExists checks if the User row exists.
Types ¶
type AccessToken ¶
type AccessToken struct { Token string `boil:"token" json:"token" toml:"token" yaml:"token"` ValidUntil time.Time `boil:"valid_until" json:"valid_until" toml:"valid_until" yaml:"valid_until"` UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *accessTokenR `boil:"-" json:"-" toml:"-" yaml:"-"` L accessTokenL `boil:"-" json:"-" toml:"-" yaml:"-"` }
AccessToken is an object representing the database table.
func FindAccessToken ¶
func FindAccessToken(ctx context.Context, exec boil.ContextExecutor, token string, selectCols ...string) (*AccessToken, error)
FindAccessToken retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*AccessToken) Delete ¶
func (o *AccessToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single AccessToken record with an executor. Delete will match against the primary key column to find the record to delete.
func (*AccessToken) Exists ¶
func (o *AccessToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the AccessToken row exists.
func (*AccessToken) Insert ¶
func (o *AccessToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*AccessToken) Reload ¶
func (o *AccessToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*AccessToken) SetUser ¶
func (o *AccessToken) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the accessToken to the related item. Sets o.R.User to related. Adds o to related.R.AccessTokens.
func (*AccessToken) Update ¶
func (o *AccessToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the AccessToken. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*AccessToken) Upsert ¶
func (o *AccessToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*AccessToken) User ¶
func (o *AccessToken) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
type AccessTokenSlice ¶
type AccessTokenSlice []*AccessToken
AccessTokenSlice is an alias for a slice of pointers to AccessToken. This should almost always be used instead of []AccessToken.
func (AccessTokenSlice) DeleteAll ¶
func (o AccessTokenSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*AccessTokenSlice) ReloadAll ¶
func (o *AccessTokenSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (AccessTokenSlice) UpdateAll ¶
func (o AccessTokenSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type AppUserProfile ¶
type AppUserProfile struct { UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` LegalAcceptedAt null.Time `boil:"legal_accepted_at" json:"legal_accepted_at,omitempty" toml:"legal_accepted_at" yaml:"legal_accepted_at,omitempty"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *appUserProfileR `boil:"-" json:"-" toml:"-" yaml:"-"` L appUserProfileL `boil:"-" json:"-" toml:"-" yaml:"-"` }
AppUserProfile is an object representing the database table.
func FindAppUserProfile ¶
func FindAppUserProfile(ctx context.Context, exec boil.ContextExecutor, userID string, selectCols ...string) (*AppUserProfile, error)
FindAppUserProfile retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*AppUserProfile) Delete ¶
func (o *AppUserProfile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single AppUserProfile record with an executor. Delete will match against the primary key column to find the record to delete.
func (*AppUserProfile) Exists ¶
func (o *AppUserProfile) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the AppUserProfile row exists.
func (*AppUserProfile) Insert ¶
func (o *AppUserProfile) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*AppUserProfile) Reload ¶
func (o *AppUserProfile) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*AppUserProfile) SetUser ¶
func (o *AppUserProfile) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the appUserProfile to the related item. Sets o.R.User to related. Adds o to related.R.AppUserProfile.
func (*AppUserProfile) Update ¶
func (o *AppUserProfile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the AppUserProfile. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*AppUserProfile) Upsert ¶
func (o *AppUserProfile) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*AppUserProfile) User ¶
func (o *AppUserProfile) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
type AppUserProfileSlice ¶
type AppUserProfileSlice []*AppUserProfile
AppUserProfileSlice is an alias for a slice of pointers to AppUserProfile. This should almost always be used instead of []AppUserProfile.
func (AppUserProfileSlice) DeleteAll ¶
func (o AppUserProfileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*AppUserProfileSlice) ReloadAll ¶
func (o *AppUserProfileSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (AppUserProfileSlice) UpdateAll ¶
func (o AppUserProfileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type PasswordResetToken ¶
type PasswordResetToken struct { Token string `boil:"token" json:"token" toml:"token" yaml:"token"` ValidUntil time.Time `boil:"valid_until" json:"valid_until" toml:"valid_until" yaml:"valid_until"` UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *passwordResetTokenR `boil:"-" json:"-" toml:"-" yaml:"-"` L passwordResetTokenL `boil:"-" json:"-" toml:"-" yaml:"-"` }
PasswordResetToken is an object representing the database table.
func FindPasswordResetToken ¶
func FindPasswordResetToken(ctx context.Context, exec boil.ContextExecutor, token string, selectCols ...string) (*PasswordResetToken, error)
FindPasswordResetToken retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*PasswordResetToken) Delete ¶
func (o *PasswordResetToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single PasswordResetToken record with an executor. Delete will match against the primary key column to find the record to delete.
func (*PasswordResetToken) Exists ¶
func (o *PasswordResetToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the PasswordResetToken row exists.
func (*PasswordResetToken) Insert ¶
func (o *PasswordResetToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*PasswordResetToken) Reload ¶
func (o *PasswordResetToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*PasswordResetToken) SetUser ¶
func (o *PasswordResetToken) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the passwordResetToken to the related item. Sets o.R.User to related. Adds o to related.R.PasswordResetTokens.
func (*PasswordResetToken) Update ¶
func (o *PasswordResetToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the PasswordResetToken. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*PasswordResetToken) Upsert ¶
func (o *PasswordResetToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*PasswordResetToken) User ¶
func (o *PasswordResetToken) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
type PasswordResetTokenSlice ¶
type PasswordResetTokenSlice []*PasswordResetToken
PasswordResetTokenSlice is an alias for a slice of pointers to PasswordResetToken. This should almost always be used instead of []PasswordResetToken.
func (PasswordResetTokenSlice) DeleteAll ¶
func (o PasswordResetTokenSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*PasswordResetTokenSlice) ReloadAll ¶
func (o *PasswordResetTokenSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (PasswordResetTokenSlice) UpdateAll ¶
func (o PasswordResetTokenSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type PushToken ¶
type PushToken struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Token string `boil:"token" json:"token" toml:"token" yaml:"token"` Provider string `boil:"provider" json:"provider" toml:"provider" yaml:"provider"` UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *pushTokenR `boil:"-" json:"-" toml:"-" yaml:"-"` L pushTokenL `boil:"-" json:"-" toml:"-" yaml:"-"` }
PushToken is an object representing the database table.
func FindPushToken ¶
func FindPushToken(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*PushToken, error)
FindPushToken retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*PushToken) Delete ¶
Delete deletes a single PushToken record with an executor. Delete will match against the primary key column to find the record to delete.
func (*PushToken) Insert ¶
func (o *PushToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*PushToken) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*PushToken) SetUser ¶
func (o *PushToken) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the pushToken to the related item. Sets o.R.User to related. Adds o to related.R.PushTokens.
func (*PushToken) Update ¶
func (o *PushToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the PushToken. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*PushToken) Upsert ¶
func (o *PushToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type PushTokenSlice ¶
type PushTokenSlice []*PushToken
PushTokenSlice is an alias for a slice of pointers to PushToken. This should almost always be used instead of []PushToken.
func (PushTokenSlice) DeleteAll ¶
func (o PushTokenSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*PushTokenSlice) ReloadAll ¶
func (o *PushTokenSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (PushTokenSlice) UpdateAll ¶
func (o PushTokenSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type RefreshToken ¶
type RefreshToken struct { Token string `boil:"token" json:"token" toml:"token" yaml:"token"` UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *refreshTokenR `boil:"-" json:"-" toml:"-" yaml:"-"` L refreshTokenL `boil:"-" json:"-" toml:"-" yaml:"-"` }
RefreshToken is an object representing the database table.
func FindRefreshToken ¶
func FindRefreshToken(ctx context.Context, exec boil.ContextExecutor, token string, selectCols ...string) (*RefreshToken, error)
FindRefreshToken retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*RefreshToken) Delete ¶
func (o *RefreshToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single RefreshToken record with an executor. Delete will match against the primary key column to find the record to delete.
func (*RefreshToken) Exists ¶
func (o *RefreshToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the RefreshToken row exists.
func (*RefreshToken) Insert ¶
func (o *RefreshToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*RefreshToken) Reload ¶
func (o *RefreshToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*RefreshToken) SetUser ¶
func (o *RefreshToken) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the refreshToken to the related item. Sets o.R.User to related. Adds o to related.R.RefreshTokens.
func (*RefreshToken) Update ¶
func (o *RefreshToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the RefreshToken. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*RefreshToken) Upsert ¶
func (o *RefreshToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*RefreshToken) User ¶
func (o *RefreshToken) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
type RefreshTokenSlice ¶
type RefreshTokenSlice []*RefreshToken
RefreshTokenSlice is an alias for a slice of pointers to RefreshToken. This should almost always be used instead of []RefreshToken.
func (RefreshTokenSlice) DeleteAll ¶
func (o RefreshTokenSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*RefreshTokenSlice) ReloadAll ¶
func (o *RefreshTokenSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (RefreshTokenSlice) UpdateAll ¶
func (o RefreshTokenSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type UpsertOptionFunc ¶
type UpsertOptionFunc func(o *UpsertOptions)
func UpsertConflictTarget ¶
func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc
func UpsertUpdateSet ¶
func UpsertUpdateSet(updateSet string) UpsertOptionFunc
type UpsertOptions ¶
type UpsertOptions struct {
// contains filtered or unexported fields
}
type User ¶
type User struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Username null.String `boil:"username" json:"username,omitempty" toml:"username" yaml:"username,omitempty"` Password null.String `boil:"password" json:"password,omitempty" toml:"password" yaml:"password,omitempty"` IsActive bool `boil:"is_active" json:"is_active" toml:"is_active" yaml:"is_active"` Scopes types.StringArray `boil:"scopes" json:"scopes" toml:"scopes" yaml:"scopes"` LastAuthenticatedAt null.Time `` /* 135-byte string literal not displayed */ CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *userR `boil:"-" json:"-" toml:"-" yaml:"-"` L userL `boil:"-" json:"-" toml:"-" yaml:"-"` }
User is an object representing the database table.
func FindUser ¶
func FindUser(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*User, error)
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*User) AccessTokens ¶
AccessTokens retrieves all the access_token's AccessTokens with an executor.
func (*User) AddAccessTokens ¶
func (o *User) AddAccessTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AccessToken) error
AddAccessTokens adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.AccessTokens. Sets related.R.User appropriately.
func (*User) AddPasswordResetTokens ¶
func (o *User) AddPasswordResetTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PasswordResetToken) error
AddPasswordResetTokens adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PasswordResetTokens. Sets related.R.User appropriately.
func (*User) AddPushTokens ¶
func (o *User) AddPushTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PushToken) error
AddPushTokens adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PushTokens. Sets related.R.User appropriately.
func (*User) AddRefreshTokens ¶
func (o *User) AddRefreshTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RefreshToken) error
AddRefreshTokens adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.RefreshTokens. Sets related.R.User appropriately.
func (*User) AppUserProfile ¶
AppUserProfile pointed to by the foreign key.
func (*User) Delete ¶
Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.
func (*User) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) PasswordResetTokens ¶
PasswordResetTokens retrieves all the password_reset_token's PasswordResetTokens with an executor.
func (*User) PushTokens ¶
PushTokens retrieves all the push_token's PushTokens with an executor.
func (*User) RefreshTokens ¶
RefreshTokens retrieves all the refresh_token's RefreshTokens with an executor.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*User) SetAppUserProfile ¶
func (o *User) SetAppUserProfile(ctx context.Context, exec boil.ContextExecutor, insert bool, related *AppUserProfile) error
SetAppUserProfile of the user to the related item. Sets o.R.AppUserProfile to related. Adds o to related.R.User.
func (*User) Update ¶
func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*User) Upsert ¶
func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type UserSlice ¶
type UserSlice []*User
UserSlice is an alias for a slice of pointers to User. This should almost always be used instead of []User.