Documentation
¶
Index ¶
- Variables
- func AddUserDeviceDatumHook(hookPoint boil.HookPoint, userDeviceDatumHook UserDeviceDatumHook)
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func UserDeviceData(mods ...qm.QueryMod) userDeviceDatumQuery
- func UserDeviceDatumExists(ctx context.Context, exec boil.ContextExecutor, userDeviceID string) (bool, error)
- type M
- type UserDeviceDatum
- func (o *UserDeviceDatum) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserDeviceDatum) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UserDeviceDatum) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserDeviceDatum) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *UserDeviceDatum) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type UserDeviceDatumHook
- type UserDeviceDatumSlice
- func (o UserDeviceDatumSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserDeviceDatumSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o UserDeviceDatumSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
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 TableNames = struct { UserDeviceData string }{ UserDeviceData: "user_device_data", }
var UserDeviceDatumColumns = struct { UserDeviceID string ErrorData string LastOdometerEventAt string IntegrationID string RealLastOdometerEventAt string Signals string CreatedAt string UpdatedAt string }{ UserDeviceID: "user_device_id", ErrorData: "error_data", LastOdometerEventAt: "last_odometer_event_at", IntegrationID: "integration_id", RealLastOdometerEventAt: "real_last_odometer_event_at", Signals: "signals", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserDeviceDatumRels = struct {
}{}
UserDeviceDatumRels is where relationship names are stored.
var UserDeviceDatumTableColumns = struct { UserDeviceID string ErrorData string LastOdometerEventAt string IntegrationID string RealLastOdometerEventAt string Signals string CreatedAt string UpdatedAt string }{ UserDeviceID: "user_device_data.user_device_id", ErrorData: "user_device_data.error_data", LastOdometerEventAt: "user_device_data.last_odometer_event_at", IntegrationID: "user_device_data.integration_id", RealLastOdometerEventAt: "user_device_data.real_last_odometer_event_at", Signals: "user_device_data.signals", CreatedAt: "user_device_data.created_at", UpdatedAt: "user_device_data.updated_at", }
var UserDeviceDatumWhere = struct { UserDeviceID whereHelperstring ErrorData whereHelpernull_JSON LastOdometerEventAt whereHelpernull_Time IntegrationID whereHelpernull_String RealLastOdometerEventAt whereHelpernull_Time Signals whereHelpernull_JSON CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ UserDeviceID: whereHelperstring{/* contains filtered or unexported fields */}, ErrorData: whereHelpernull_JSON{/* contains filtered or unexported fields */}, LastOdometerEventAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, IntegrationID: whereHelpernull_String{/* contains filtered or unexported fields */}, RealLastOdometerEventAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Signals: whereHelpernull_JSON{/* 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 AddUserDeviceDatumHook ¶
func AddUserDeviceDatumHook(hookPoint boil.HookPoint, userDeviceDatumHook UserDeviceDatumHook)
AddUserDeviceDatumHook registers your hook function for all future operations.
func UserDeviceData ¶
UserDeviceData retrieves all the records using an executor.
func UserDeviceDatumExists ¶
func UserDeviceDatumExists(ctx context.Context, exec boil.ContextExecutor, userDeviceID string) (bool, error)
UserDeviceDatumExists checks if the UserDeviceDatum row exists.
Types ¶
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type UserDeviceDatum ¶
type UserDeviceDatum struct {
UserDeviceID string `boil:"user_device_id" json:"user_device_id" toml:"user_device_id" yaml:"user_device_id"`
ErrorData null.JSON `boil:"error_data" json:"error_data,omitempty" toml:"error_data" yaml:"error_data,omitempty"`
LastOdometerEventAt null.Time `` /* 139-byte string literal not displayed */
IntegrationID null.String `boil:"integration_id" json:"integration_id,omitempty" toml:"integration_id" yaml:"integration_id,omitempty"`
RealLastOdometerEventAt null.Time `` /* 159-byte string literal not displayed */
Signals null.JSON `boil:"signals" json:"signals,omitempty" toml:"signals" yaml:"signals,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 *userDeviceDatumR `boil:"-" json:"-" toml:"-" yaml:"-"`
L userDeviceDatumL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
UserDeviceDatum is an object representing the database table.
func FindUserDeviceDatum ¶
func FindUserDeviceDatum(ctx context.Context, exec boil.ContextExecutor, userDeviceID string, selectCols ...string) (*UserDeviceDatum, error)
FindUserDeviceDatum retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*UserDeviceDatum) Delete ¶
func (o *UserDeviceDatum) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single UserDeviceDatum record with an executor. Delete will match against the primary key column to find the record to delete.
func (*UserDeviceDatum) Insert ¶
func (o *UserDeviceDatum) 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 (*UserDeviceDatum) Reload ¶
func (o *UserDeviceDatum) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*UserDeviceDatum) Update ¶
func (o *UserDeviceDatum) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the UserDeviceDatum. 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 (*UserDeviceDatum) Upsert ¶
func (o *UserDeviceDatum) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 UserDeviceDatumHook ¶
type UserDeviceDatumHook func(context.Context, boil.ContextExecutor, *UserDeviceDatum) error
UserDeviceDatumHook is the signature for custom UserDeviceDatum hook methods
type UserDeviceDatumSlice ¶
type UserDeviceDatumSlice []*UserDeviceDatum
UserDeviceDatumSlice is an alias for a slice of pointers to UserDeviceDatum. This should almost always be used instead of []UserDeviceDatum.
func (UserDeviceDatumSlice) DeleteAll ¶
func (o UserDeviceDatumSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*UserDeviceDatumSlice) ReloadAll ¶
func (o *UserDeviceDatumSlice) 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 (UserDeviceDatumSlice) UpdateAll ¶
func (o UserDeviceDatumSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.