Documentation
¶
Index ¶
- Variables
- func AddApplicationHook(hookPoint boil.HookPoint, applicationHook ApplicationHook)
- func AddDeviceAppHook(hookPoint boil.HookPoint, deviceAppHook DeviceAppHook)
- func AddHistoryOperationHook(hookPoint boil.HookPoint, historyOperationHook HistoryOperationHook)
- func AddRefreshTokenHook(hookPoint boil.HookPoint, refreshTokenHook RefreshTokenHook)
- func AddSaltHook(hookPoint boil.HookPoint, saltHook SaltHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func ApplicationExists(exec boil.Executor, iD uint) (bool, error)
- func Applications(mods ...qm.QueryMod) applicationQuery
- func DeviceAppExists(exec boil.Executor, iD uint) (bool, error)
- func DeviceApps(mods ...qm.QueryMod) deviceAppQuery
- func HistoryOperationExists(exec boil.Executor, iD uint) (bool, error)
- func HistoryOperations(mods ...qm.QueryMod) historyOperationQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func RefreshTokenExists(exec boil.Executor, iD uint) (bool, error)
- func RefreshTokens(mods ...qm.QueryMod) refreshTokenQuery
- func SaltExists(exec boil.Executor, iD uint) (bool, error)
- func Salts(mods ...qm.QueryMod) saltQuery
- func UserExists(exec boil.Executor, iD uint) (bool, error)
- func Users(mods ...qm.QueryMod) userQuery
- type Application
- func (o *Application) Delete(exec boil.Executor) (int64, error)
- func (o *Application) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *Application) Reload(exec boil.Executor) error
- func (o *Application) Update(exec boil.Executor, columns boil.Columns) (int64, error)
- func (o *Application) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error
- type ApplicationHook
- type ApplicationSlice
- type DeviceApp
- func (o *DeviceApp) Delete(exec boil.Executor) (int64, error)
- func (o *DeviceApp) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *DeviceApp) Reload(exec boil.Executor) error
- func (o *DeviceApp) Update(exec boil.Executor, columns boil.Columns) (int64, error)
- func (o *DeviceApp) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error
- type DeviceAppHook
- type DeviceAppSlice
- type HistoryOperation
- func (o *HistoryOperation) Delete(exec boil.Executor) (int64, error)
- func (o *HistoryOperation) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *HistoryOperation) Reload(exec boil.Executor) error
- func (o *HistoryOperation) Update(exec boil.Executor, columns boil.Columns) (int64, error)
- func (o *HistoryOperation) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error
- type HistoryOperationHook
- type HistoryOperationSlice
- type M
- type RefreshToken
- func (o *RefreshToken) Delete(exec boil.Executor) (int64, error)
- func (o *RefreshToken) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *RefreshToken) Reload(exec boil.Executor) error
- func (o *RefreshToken) Update(exec boil.Executor, columns boil.Columns) (int64, error)
- func (o *RefreshToken) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error
- type RefreshTokenHook
- type RefreshTokenSlice
- type Salt
- func (o *Salt) Delete(exec boil.Executor) (int64, error)
- func (o *Salt) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *Salt) Reload(exec boil.Executor) error
- func (o *Salt) Update(exec boil.Executor, columns boil.Columns) (int64, error)
- func (o *Salt) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error
- type SaltHook
- type SaltSlice
- type User
- func (o *User) Delete(exec boil.Executor) (int64, error)
- func (o *User) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *User) Reload(exec boil.Executor) error
- func (o *User) Update(exec boil.Executor, columns boil.Columns) (int64, error)
- func (o *User) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error
- type UserHook
- type UserSlice
Constants ¶
This section is empty.
Variables ¶
var ApplicationColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string Name string Webhook string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", Name: "name", Webhook: "webhook", }
var ApplicationRels = struct {
}{}
ApplicationRels is where relationship names are stored.
var ApplicationWhere = struct { ID whereHelperuint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time DeletedAt whereHelpernull_Time Name whereHelperstring Webhook whereHelperstring }{ ID: whereHelperuint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Webhook: whereHelperstring{/* contains filtered or unexported fields */}, }
var DeviceAppColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string DeviceID string AppID string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", DeviceID: "device_id", AppID: "app_id", }
var DeviceAppRels = struct {
}{}
DeviceAppRels is where relationship names are stored.
var DeviceAppWhere = struct { ID whereHelperuint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time DeletedAt whereHelpernull_Time DeviceID whereHelperstring AppID whereHelperstring }{ ID: whereHelperuint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DeviceID: whereHelperstring{/* contains filtered or unexported fields */}, AppID: whereHelperstring{/* 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 HistoryOperationColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string UserID string Type string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", UserID: "user_id", Type: "type", }
var HistoryOperationRels = struct {
}{}
HistoryOperationRels is where relationship names are stored.
var HistoryOperationWhere = struct { ID whereHelperuint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time DeletedAt whereHelpernull_Time UserID whereHelperuint Type whereHelperstring }{ ID: whereHelperuint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UserID: whereHelperuint{/* contains filtered or unexported fields */}, Type: whereHelperstring{/* contains filtered or unexported fields */}, }
var RefreshTokenColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string UserID string RefreshToken string DeviceAppID string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", UserID: "user_id", RefreshToken: "refresh_token", DeviceAppID: "device_app_id", }
var RefreshTokenRels = struct {
}{}
RefreshTokenRels is where relationship names are stored.
var RefreshTokenWhere = struct { ID whereHelperuint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time DeletedAt whereHelpernull_Time UserID whereHelperuint RefreshToken whereHelperstring DeviceAppID whereHelperuint }{ ID: whereHelperuint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UserID: whereHelperuint{/* contains filtered or unexported fields */}, RefreshToken: whereHelperstring{/* contains filtered or unexported fields */}, DeviceAppID: whereHelperuint{/* contains filtered or unexported fields */}, }
var SaltColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string UserID string Salt string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", UserID: "user_id", Salt: "salt", }
var SaltRels = struct {
}{}
SaltRels is where relationship names are stored.
var SaltWhere = struct { ID whereHelperuint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time DeletedAt whereHelpernull_Time UserID whereHelperuint Salt whereHelperstring }{ ID: whereHelperuint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UserID: whereHelperuint{/* contains filtered or unexported fields */}, Salt: whereHelperstring{/* contains filtered or unexported fields */}, }
var TableNames = struct { Applications string DeviceApps string HistoryOperations string RefreshTokens string Salts string Users string }{ Applications: "applications", DeviceApps: "device_apps", HistoryOperations: "history_operations", RefreshTokens: "refresh_tokens", Salts: "salts", Users: "users", }
var UserColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string Mail string Name string Gender string Password string Birthday string Avatar string Verified string LoginType string IdentifyToken string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", Mail: "mail", Name: "name", Gender: "gender", Password: "password", Birthday: "birthday", Avatar: "avatar", Verified: "verified", LoginType: "login_type", IdentifyToken: "identify_token", }
var UserRels = struct {
}{}
UserRels is where relationship names are stored.
var UserWhere = struct { ID whereHelperuint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time DeletedAt whereHelpernull_Time Mail whereHelpernull_String Name whereHelperstring Gender whereHelpernull_String Password whereHelpernull_String Birthday whereHelpernull_Time Avatar whereHelpernull_String Verified whereHelpernull_Bool LoginType whereHelperstring IdentifyToken whereHelperstring }{ ID: whereHelperuint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Mail: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Gender: whereHelpernull_String{/* contains filtered or unexported fields */}, Password: whereHelpernull_String{/* contains filtered or unexported fields */}, Birthday: whereHelpernull_Time{/* contains filtered or unexported fields */}, Avatar: whereHelpernull_String{/* contains filtered or unexported fields */}, Verified: whereHelpernull_Bool{/* contains filtered or unexported fields */}, LoginType: whereHelperstring{/* contains filtered or unexported fields */}, IdentifyToken: whereHelperstring{/* contains filtered or unexported fields */}, }
Functions ¶
func AddApplicationHook ¶ added in v0.2.0
func AddApplicationHook(hookPoint boil.HookPoint, applicationHook ApplicationHook)
AddApplicationHook registers your hook function for all future operations.
func AddDeviceAppHook ¶ added in v0.2.0
func AddDeviceAppHook(hookPoint boil.HookPoint, deviceAppHook DeviceAppHook)
AddDeviceAppHook registers your hook function for all future operations.
func AddHistoryOperationHook ¶ added in v0.2.0
func AddHistoryOperationHook(hookPoint boil.HookPoint, historyOperationHook HistoryOperationHook)
AddHistoryOperationHook registers your hook function for all future operations.
func AddRefreshTokenHook ¶ added in v0.2.0
func AddRefreshTokenHook(hookPoint boil.HookPoint, refreshTokenHook RefreshTokenHook)
AddRefreshTokenHook registers your hook function for all future operations.
func AddSaltHook ¶ added in v0.2.0
AddSaltHook registers your hook function for all future operations.
func AddUserHook ¶ added in v0.2.0
AddUserHook registers your hook function for all future operations.
func ApplicationExists ¶ added in v0.2.0
ApplicationExists checks if the Application row exists.
func Applications ¶ added in v0.2.0
Applications retrieves all the records using an executor.
func DeviceAppExists ¶ added in v0.2.0
DeviceAppExists checks if the DeviceApp row exists.
func DeviceApps ¶ added in v0.2.0
DeviceApps retrieves all the records using an executor.
func HistoryOperationExists ¶ added in v0.2.0
HistoryOperationExists checks if the HistoryOperation row exists.
func HistoryOperations ¶ added in v0.2.0
HistoryOperations retrieves all the records using an executor.
func RefreshTokenExists ¶ added in v0.2.0
RefreshTokenExists checks if the RefreshToken row exists.
func RefreshTokens ¶ added in v0.2.0
RefreshTokens retrieves all the records using an executor.
func SaltExists ¶ added in v0.2.0
SaltExists checks if the Salt row exists.
func UserExists ¶ added in v0.2.0
UserExists checks if the User row exists.
Types ¶
type Application ¶ added in v0.2.0
type Application struct { ID uint `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Webhook string `boil:"webhook" json:"webhook" toml:"webhook" yaml:"webhook"` R *applicationR `boil:"-" json:"-" toml:"-" yaml:"-"` L applicationL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Application is an object representing the database table.
func FindApplication ¶ added in v0.2.0
FindApplication retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Application) Delete ¶ added in v0.2.0
func (o *Application) Delete(exec boil.Executor) (int64, error)
Delete deletes a single Application record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Application) Insert ¶ added in v0.2.0
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Application) Reload ¶ added in v0.2.0
func (o *Application) Reload(exec boil.Executor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*Application) Update ¶ added in v0.2.0
Update uses an executor to update the Application. 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.
type ApplicationHook ¶ added in v0.2.0
type ApplicationHook func(boil.Executor, *Application) error
ApplicationHook is the signature for custom Application hook methods
type ApplicationSlice ¶ added in v0.2.0
type ApplicationSlice []*Application
ApplicationSlice is an alias for a slice of pointers to Application. This should generally be used opposed to []Application.
func (ApplicationSlice) DeleteAll ¶ added in v0.2.0
func (o ApplicationSlice) DeleteAll(exec boil.Executor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
type DeviceApp ¶ added in v0.2.0
type DeviceApp struct { ID uint `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` DeviceID string `boil:"device_id" json:"device_id" toml:"device_id" yaml:"device_id"` AppID string `boil:"app_id" json:"app_id" toml:"app_id" yaml:"app_id"` R *deviceAppR `boil:"-" json:"-" toml:"-" yaml:"-"` L deviceAppL `boil:"-" json:"-" toml:"-" yaml:"-"` }
DeviceApp is an object representing the database table.
func FindDeviceApp ¶ added in v0.2.0
FindDeviceApp retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*DeviceApp) Delete ¶ added in v0.2.0
Delete deletes a single DeviceApp record with an executor. Delete will match against the primary key column to find the record to delete.
func (*DeviceApp) Insert ¶ added in v0.2.0
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*DeviceApp) Reload ¶ added in v0.2.0
Reload refetches the object from the database using the primary keys with an executor.
func (*DeviceApp) Update ¶ added in v0.2.0
Update uses an executor to update the DeviceApp. 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.
type DeviceAppHook ¶ added in v0.2.0
DeviceAppHook is the signature for custom DeviceApp hook methods
type DeviceAppSlice ¶ added in v0.2.0
type DeviceAppSlice []*DeviceApp
DeviceAppSlice is an alias for a slice of pointers to DeviceApp. This should generally be used opposed to []DeviceApp.
func (DeviceAppSlice) DeleteAll ¶ added in v0.2.0
func (o DeviceAppSlice) DeleteAll(exec boil.Executor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
type HistoryOperation ¶
type HistoryOperation struct { ID uint `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` UserID uint `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Type string `boil:"type" json:"type" toml:"type" yaml:"type"` R *historyOperationR `boil:"-" json:"-" toml:"-" yaml:"-"` L historyOperationL `boil:"-" json:"-" toml:"-" yaml:"-"` }
HistoryOperation is an object representing the database table.
func FindHistoryOperation ¶ added in v0.2.0
func FindHistoryOperation(exec boil.Executor, iD uint, selectCols ...string) (*HistoryOperation, error)
FindHistoryOperation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*HistoryOperation) Delete ¶ added in v0.2.0
func (o *HistoryOperation) Delete(exec boil.Executor) (int64, error)
Delete deletes a single HistoryOperation record with an executor. Delete will match against the primary key column to find the record to delete.
func (*HistoryOperation) Insert ¶ added in v0.2.0
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*HistoryOperation) Reload ¶ added in v0.2.0
func (o *HistoryOperation) Reload(exec boil.Executor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*HistoryOperation) Update ¶ added in v0.2.0
Update uses an executor to update the HistoryOperation. 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 (*HistoryOperation) Upsert ¶ added in v0.2.0
func (o *HistoryOperation) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) 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 HistoryOperationHook ¶ added in v0.2.0
type HistoryOperationHook func(boil.Executor, *HistoryOperation) error
HistoryOperationHook is the signature for custom HistoryOperation hook methods
type HistoryOperationSlice ¶ added in v0.2.0
type HistoryOperationSlice []*HistoryOperation
HistoryOperationSlice is an alias for a slice of pointers to HistoryOperation. This should generally be used opposed to []HistoryOperation.
func (HistoryOperationSlice) DeleteAll ¶ added in v0.2.0
func (o HistoryOperationSlice) DeleteAll(exec boil.Executor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
type M ¶ added in v0.2.0
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type RefreshToken ¶
type RefreshToken struct { ID uint `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` UserID uint `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` RefreshToken string `boil:"refresh_token" json:"refresh_token" toml:"refresh_token" yaml:"refresh_token"` DeviceAppID uint `boil:"device_app_id" json:"device_app_id" toml:"device_app_id" yaml:"device_app_id"` R *refreshTokenR `boil:"-" json:"-" toml:"-" yaml:"-"` L refreshTokenL `boil:"-" json:"-" toml:"-" yaml:"-"` }
RefreshToken is an object representing the database table.
func FindRefreshToken ¶ added in v0.2.0
FindRefreshToken retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*RefreshToken) Delete ¶ added in v0.2.0
func (o *RefreshToken) Delete(exec boil.Executor) (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) Insert ¶ added in v0.2.0
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*RefreshToken) Reload ¶ added in v0.2.0
func (o *RefreshToken) Reload(exec boil.Executor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*RefreshToken) Update ¶ added in v0.2.0
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.
type RefreshTokenHook ¶ added in v0.2.0
type RefreshTokenHook func(boil.Executor, *RefreshToken) error
RefreshTokenHook is the signature for custom RefreshToken hook methods
type RefreshTokenSlice ¶ added in v0.2.0
type RefreshTokenSlice []*RefreshToken
RefreshTokenSlice is an alias for a slice of pointers to RefreshToken. This should generally be used opposed to []RefreshToken.
func (RefreshTokenSlice) DeleteAll ¶ added in v0.2.0
func (o RefreshTokenSlice) DeleteAll(exec boil.Executor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
type Salt ¶
type Salt struct { ID uint `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` UserID uint `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Salt string `boil:"salt" json:"salt" toml:"salt" yaml:"salt"` R *saltR `boil:"-" json:"-" toml:"-" yaml:"-"` L saltL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Salt is an object representing the database table.
func FindSalt ¶ added in v0.2.0
FindSalt retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Salt) Delete ¶ added in v0.2.0
Delete deletes a single Salt record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Salt) Insert ¶ added in v0.2.0
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Salt) Reload ¶ added in v0.2.0
Reload refetches the object from the database using the primary keys with an executor.
func (*Salt) Update ¶ added in v0.2.0
Update uses an executor to update the Salt. 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.
type SaltSlice ¶ added in v0.2.0
type SaltSlice []*Salt
SaltSlice is an alias for a slice of pointers to Salt. This should generally be used opposed to []Salt.
func (SaltSlice) DeleteAll ¶ added in v0.2.0
DeleteAll deletes all rows in the slice, using an executor.
type User ¶
type User struct { ID uint `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` Mail null.String `boil:"mail" json:"mail,omitempty" toml:"mail" yaml:"mail,omitempty"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Gender null.String `boil:"gender" json:"gender,omitempty" toml:"gender" yaml:"gender,omitempty"` Password null.String `boil:"password" json:"password,omitempty" toml:"password" yaml:"password,omitempty"` Birthday null.Time `boil:"birthday" json:"birthday,omitempty" toml:"birthday" yaml:"birthday,omitempty"` Avatar null.String `boil:"avatar" json:"avatar,omitempty" toml:"avatar" yaml:"avatar,omitempty"` Verified null.Bool `boil:"verified" json:"verified,omitempty" toml:"verified" yaml:"verified,omitempty"` LoginType string `boil:"login_type" json:"login_type" toml:"login_type" yaml:"login_type"` IdentifyToken string `boil:"identify_token" json:"identify_token" toml:"identify_token" yaml:"identify_token"` R *userR `boil:"-" json:"-" toml:"-" yaml:"-"` L userL `boil:"-" json:"-" toml:"-" yaml:"-"` }
User is an object representing the database table.
func FindUser ¶ added in v0.2.0
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*User) Delete ¶ added in v0.2.0
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 ¶ added in v0.2.0
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) Reload ¶ added in v0.2.0
Reload refetches the object from the database using the primary keys with an executor.
func (*User) Update ¶ added in v0.2.0
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.
type UserSlice ¶ added in v0.2.0
type UserSlice []*User
UserSlice is an alias for a slice of pointers to User. This should generally be used opposed to []User.
func (UserSlice) DeleteAll ¶ added in v0.2.0
DeleteAll deletes all rows in the slice, using an executor.