models

package
v0.4.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var ReportVehicleSignalsEventColumns = struct {
	DateID             string
	IntegrationID      string
	DeviceMakeID       string
	PropertyID         string
	Model              string
	Year               string
	DeviceDefinitionID string
	DeviceMake         string
	Count              string
	CreatedAt          string
}{
	DateID:             "date_id",
	IntegrationID:      "integration_id",
	DeviceMakeID:       "device_make_id",
	PropertyID:         "property_id",
	Model:              "model",
	Year:               "year",
	DeviceDefinitionID: "device_definition_id",
	DeviceMake:         "device_make",
	Count:              "count",
	CreatedAt:          "created_at",
}
View Source
var ReportVehicleSignalsEventRels = struct {
}{}

ReportVehicleSignalsEventRels is where relationship names are stored.

View Source
var ReportVehicleSignalsEventTableColumns = struct {
	DateID             string
	IntegrationID      string
	DeviceMakeID       string
	PropertyID         string
	Model              string
	Year               string
	DeviceDefinitionID string
	DeviceMake         string
	Count              string
	CreatedAt          string
}{
	DateID:             "report_vehicle_signals_events.date_id",
	IntegrationID:      "report_vehicle_signals_events.integration_id",
	DeviceMakeID:       "report_vehicle_signals_events.device_make_id",
	PropertyID:         "report_vehicle_signals_events.property_id",
	Model:              "report_vehicle_signals_events.model",
	Year:               "report_vehicle_signals_events.year",
	DeviceDefinitionID: "report_vehicle_signals_events.device_definition_id",
	DeviceMake:         "report_vehicle_signals_events.device_make",
	Count:              "report_vehicle_signals_events.count",
	CreatedAt:          "report_vehicle_signals_events.created_at",
}
View Source
var ReportVehicleSignalsEventWhere = struct {
	DateID             whereHelperstring
	IntegrationID      whereHelperstring
	DeviceMakeID       whereHelperstring
	PropertyID         whereHelperstring
	Model              whereHelperstring
	Year               whereHelperint
	DeviceDefinitionID whereHelperstring
	DeviceMake         whereHelperstring
	Count              whereHelperint
	CreatedAt          whereHelpertime_Time
}{
	DateID:             whereHelperstring{/* contains filtered or unexported fields */},
	IntegrationID:      whereHelperstring{/* contains filtered or unexported fields */},
	DeviceMakeID:       whereHelperstring{/* contains filtered or unexported fields */},
	PropertyID:         whereHelperstring{/* contains filtered or unexported fields */},
	Model:              whereHelperstring{/* contains filtered or unexported fields */},
	Year:               whereHelperint{/* contains filtered or unexported fields */},
	DeviceDefinitionID: whereHelperstring{/* contains filtered or unexported fields */},
	DeviceMake:         whereHelperstring{/* contains filtered or unexported fields */},
	Count:              whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ReportVehicleSignalsEventsPropertyColumns = struct {
	DateID             string
	IntegrationID      string
	DeviceMakeID       string
	PropertyID         string
	Model              string
	Year               string
	DeviceDefinitionID string
	DeviceMake         string
	Count              string
	CreatedAt          string
}{
	DateID:             "date_id",
	IntegrationID:      "integration_id",
	DeviceMakeID:       "device_make_id",
	PropertyID:         "property_id",
	Model:              "model",
	Year:               "year",
	DeviceDefinitionID: "device_definition_id",
	DeviceMake:         "device_make",
	Count:              "count",
	CreatedAt:          "created_at",
}
View Source
var ReportVehicleSignalsEventsPropertyRels = struct {
}{}

ReportVehicleSignalsEventsPropertyRels is where relationship names are stored.

View Source
var ReportVehicleSignalsEventsPropertyTableColumns = struct {
	DateID             string
	IntegrationID      string
	DeviceMakeID       string
	PropertyID         string
	Model              string
	Year               string
	DeviceDefinitionID string
	DeviceMake         string
	Count              string
	CreatedAt          string
}{
	DateID:             "report_vehicle_signals_events_properties.date_id",
	IntegrationID:      "report_vehicle_signals_events_properties.integration_id",
	DeviceMakeID:       "report_vehicle_signals_events_properties.device_make_id",
	PropertyID:         "report_vehicle_signals_events_properties.property_id",
	Model:              "report_vehicle_signals_events_properties.model",
	Year:               "report_vehicle_signals_events_properties.year",
	DeviceDefinitionID: "report_vehicle_signals_events_properties.device_definition_id",
	DeviceMake:         "report_vehicle_signals_events_properties.device_make",
	Count:              "report_vehicle_signals_events_properties.count",
	CreatedAt:          "report_vehicle_signals_events_properties.created_at",
}
View Source
var ReportVehicleSignalsEventsPropertyWhere = struct {
	DateID             whereHelperstring
	IntegrationID      whereHelperstring
	DeviceMakeID       whereHelperstring
	PropertyID         whereHelperstring
	Model              whereHelperstring
	Year               whereHelperint
	DeviceDefinitionID whereHelperstring
	DeviceMake         whereHelperstring
	Count              whereHelperint
	CreatedAt          whereHelpertime_Time
}{
	DateID:             whereHelperstring{/* contains filtered or unexported fields */},
	IntegrationID:      whereHelperstring{/* contains filtered or unexported fields */},
	DeviceMakeID:       whereHelperstring{/* contains filtered or unexported fields */},
	PropertyID:         whereHelperstring{/* contains filtered or unexported fields */},
	Model:              whereHelperstring{/* contains filtered or unexported fields */},
	Year:               whereHelperint{/* contains filtered or unexported fields */},
	DeviceDefinitionID: whereHelperstring{/* contains filtered or unexported fields */},
	DeviceMake:         whereHelperstring{/* contains filtered or unexported fields */},
	Count:              whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	ReportVehicleSignalsEvents           string
	ReportVehicleSignalsEventsProperties string
	UserDeviceData                       string
	VehicleSignalsAvailableProperties    string
}{
	ReportVehicleSignalsEvents:           "report_vehicle_signals_events",
	ReportVehicleSignalsEventsProperties: "report_vehicle_signals_events_properties",
	UserDeviceData:                       "user_device_data",
	VehicleSignalsAvailableProperties:    "vehicle_signals_available_properties",
}
View Source
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",
}
View Source
var UserDeviceDatumRels = struct {
}{}

UserDeviceDatumRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
var VehicleSignalsAvailablePropertyColumns = struct {
	ID        string
	Name      string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Name:      "name",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var VehicleSignalsAvailablePropertyRels = struct {
}{}

VehicleSignalsAvailablePropertyRels is where relationship names are stored.

View Source
var VehicleSignalsAvailablePropertyTableColumns = struct {
	ID        string
	Name      string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "vehicle_signals_available_properties.id",
	Name:      "vehicle_signals_available_properties.name",
	CreatedAt: "vehicle_signals_available_properties.created_at",
	UpdatedAt: "vehicle_signals_available_properties.updated_at",
}
View Source
var VehicleSignalsAvailablePropertyWhere = struct {
	ID        whereHelperstring
	Name      whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
}{}

Functions

func AddReportVehicleSignalsEventHook added in v0.4.13

func AddReportVehicleSignalsEventHook(hookPoint boil.HookPoint, reportVehicleSignalsEventHook ReportVehicleSignalsEventHook)

AddReportVehicleSignalsEventHook registers your hook function for all future operations.

func AddReportVehicleSignalsEventsPropertyHook added in v0.4.13

func AddReportVehicleSignalsEventsPropertyHook(hookPoint boil.HookPoint, reportVehicleSignalsEventsPropertyHook ReportVehicleSignalsEventsPropertyHook)

AddReportVehicleSignalsEventsPropertyHook registers your hook function for all future operations.

func AddUserDeviceDatumHook

func AddUserDeviceDatumHook(hookPoint boil.HookPoint, userDeviceDatumHook UserDeviceDatumHook)

AddUserDeviceDatumHook registers your hook function for all future operations.

func AddVehicleSignalsAvailablePropertyHook added in v0.4.13

func AddVehicleSignalsAvailablePropertyHook(hookPoint boil.HookPoint, vehicleSignalsAvailablePropertyHook VehicleSignalsAvailablePropertyHook)

AddVehicleSignalsAvailablePropertyHook registers your hook function for all future operations.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func ReportVehicleSignalsEventExists added in v0.4.13

func ReportVehicleSignalsEventExists(ctx context.Context, exec boil.ContextExecutor, dateID string, integrationID string, deviceMakeID string, propertyID string, model string, year int) (bool, error)

ReportVehicleSignalsEventExists checks if the ReportVehicleSignalsEvent row exists.

func ReportVehicleSignalsEvents added in v0.4.13

func ReportVehicleSignalsEvents(mods ...qm.QueryMod) reportVehicleSignalsEventQuery

ReportVehicleSignalsEvents retrieves all the records using an executor.

func ReportVehicleSignalsEventsProperties added in v0.4.13

func ReportVehicleSignalsEventsProperties(mods ...qm.QueryMod) reportVehicleSignalsEventsPropertyQuery

ReportVehicleSignalsEventsProperties retrieves all the records using an executor.

func ReportVehicleSignalsEventsPropertyExists added in v0.4.13

func ReportVehicleSignalsEventsPropertyExists(ctx context.Context, exec boil.ContextExecutor, dateID string, integrationID string, deviceMakeID string, propertyID string, model string, year int) (bool, error)

ReportVehicleSignalsEventsPropertyExists checks if the ReportVehicleSignalsEventsProperty row exists.

func UserDeviceData

func UserDeviceData(mods ...qm.QueryMod) userDeviceDatumQuery

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.

func VehicleSignalsAvailableProperties added in v0.4.13

func VehicleSignalsAvailableProperties(mods ...qm.QueryMod) vehicleSignalsAvailablePropertyQuery

VehicleSignalsAvailableProperties retrieves all the records using an executor.

func VehicleSignalsAvailablePropertyExists added in v0.4.13

func VehicleSignalsAvailablePropertyExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

VehicleSignalsAvailablePropertyExists checks if the VehicleSignalsAvailableProperty row exists.

Types

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type ReportVehicleSignalsEvent added in v0.4.13

type ReportVehicleSignalsEvent struct {
	DateID             string    `boil:"date_id" json:"date_id" toml:"date_id" yaml:"date_id"`
	IntegrationID      string    `boil:"integration_id" json:"integration_id" toml:"integration_id" yaml:"integration_id"`
	DeviceMakeID       string    `boil:"device_make_id" json:"device_make_id" toml:"device_make_id" yaml:"device_make_id"`
	PropertyID         string    `boil:"property_id" json:"property_id" toml:"property_id" yaml:"property_id"`
	Model              string    `boil:"model" json:"model" toml:"model" yaml:"model"`
	Year               int       `boil:"year" json:"year" toml:"year" yaml:"year"`
	DeviceDefinitionID string    `boil:"device_definition_id" json:"device_definition_id" toml:"device_definition_id" yaml:"device_definition_id"`
	DeviceMake         string    `boil:"device_make" json:"device_make" toml:"device_make" yaml:"device_make"`
	Count              int       `boil:"count" json:"count" toml:"count" yaml:"count"`
	CreatedAt          time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *reportVehicleSignalsEventR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L reportVehicleSignalsEventL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ReportVehicleSignalsEvent is an object representing the database table.

func FindReportVehicleSignalsEvent added in v0.4.13

func FindReportVehicleSignalsEvent(ctx context.Context, exec boil.ContextExecutor, dateID string, integrationID string, deviceMakeID string, propertyID string, model string, year int, selectCols ...string) (*ReportVehicleSignalsEvent, error)

FindReportVehicleSignalsEvent retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*ReportVehicleSignalsEvent) Delete added in v0.4.13

Delete deletes a single ReportVehicleSignalsEvent record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ReportVehicleSignalsEvent) Insert added in v0.4.13

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*ReportVehicleSignalsEvent) Reload added in v0.4.13

Reload refetches the object from the database using the primary keys with an executor.

func (*ReportVehicleSignalsEvent) Update added in v0.4.13

Update uses an executor to update the ReportVehicleSignalsEvent. 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 (*ReportVehicleSignalsEvent) Upsert added in v0.4.13

func (o *ReportVehicleSignalsEvent) 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 ReportVehicleSignalsEventHook added in v0.4.13

type ReportVehicleSignalsEventHook func(context.Context, boil.ContextExecutor, *ReportVehicleSignalsEvent) error

ReportVehicleSignalsEventHook is the signature for custom ReportVehicleSignalsEvent hook methods

type ReportVehicleSignalsEventSlice added in v0.4.13

type ReportVehicleSignalsEventSlice []*ReportVehicleSignalsEvent

ReportVehicleSignalsEventSlice is an alias for a slice of pointers to ReportVehicleSignalsEvent. This should almost always be used instead of []ReportVehicleSignalsEvent.

func (ReportVehicleSignalsEventSlice) DeleteAll added in v0.4.13

DeleteAll deletes all rows in the slice, using an executor.

func (*ReportVehicleSignalsEventSlice) ReloadAll added in v0.4.13

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ReportVehicleSignalsEventSlice) UpdateAll added in v0.4.13

UpdateAll updates all rows with the specified column values, using an executor.

type ReportVehicleSignalsEventsProperty added in v0.4.13

type ReportVehicleSignalsEventsProperty struct {
	DateID             string    `boil:"date_id" json:"date_id" toml:"date_id" yaml:"date_id"`
	IntegrationID      string    `boil:"integration_id" json:"integration_id" toml:"integration_id" yaml:"integration_id"`
	DeviceMakeID       string    `boil:"device_make_id" json:"device_make_id" toml:"device_make_id" yaml:"device_make_id"`
	PropertyID         string    `boil:"property_id" json:"property_id" toml:"property_id" yaml:"property_id"`
	Model              string    `boil:"model" json:"model" toml:"model" yaml:"model"`
	Year               int       `boil:"year" json:"year" toml:"year" yaml:"year"`
	DeviceDefinitionID string    `boil:"device_definition_id" json:"device_definition_id" toml:"device_definition_id" yaml:"device_definition_id"`
	DeviceMake         string    `boil:"device_make" json:"device_make" toml:"device_make" yaml:"device_make"`
	Count              int       `boil:"count" json:"count" toml:"count" yaml:"count"`
	CreatedAt          time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *reportVehicleSignalsEventsPropertyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L reportVehicleSignalsEventsPropertyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ReportVehicleSignalsEventsProperty is an object representing the database table.

func FindReportVehicleSignalsEventsProperty added in v0.4.13

func FindReportVehicleSignalsEventsProperty(ctx context.Context, exec boil.ContextExecutor, dateID string, integrationID string, deviceMakeID string, propertyID string, model string, year int, selectCols ...string) (*ReportVehicleSignalsEventsProperty, error)

FindReportVehicleSignalsEventsProperty retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*ReportVehicleSignalsEventsProperty) Delete added in v0.4.13

Delete deletes a single ReportVehicleSignalsEventsProperty record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ReportVehicleSignalsEventsProperty) Insert added in v0.4.13

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*ReportVehicleSignalsEventsProperty) Reload added in v0.4.13

Reload refetches the object from the database using the primary keys with an executor.

func (*ReportVehicleSignalsEventsProperty) Update added in v0.4.13

Update uses an executor to update the ReportVehicleSignalsEventsProperty. 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 (*ReportVehicleSignalsEventsProperty) Upsert added in v0.4.13

func (o *ReportVehicleSignalsEventsProperty) 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 ReportVehicleSignalsEventsPropertyHook added in v0.4.13

type ReportVehicleSignalsEventsPropertyHook func(context.Context, boil.ContextExecutor, *ReportVehicleSignalsEventsProperty) error

ReportVehicleSignalsEventsPropertyHook is the signature for custom ReportVehicleSignalsEventsProperty hook methods

type ReportVehicleSignalsEventsPropertySlice added in v0.4.13

type ReportVehicleSignalsEventsPropertySlice []*ReportVehicleSignalsEventsProperty

ReportVehicleSignalsEventsPropertySlice is an alias for a slice of pointers to ReportVehicleSignalsEventsProperty. This should almost always be used instead of []ReportVehicleSignalsEventsProperty.

func (ReportVehicleSignalsEventsPropertySlice) DeleteAll added in v0.4.13

DeleteAll deletes all rows in the slice, using an executor.

func (*ReportVehicleSignalsEventsPropertySlice) ReloadAll added in v0.4.13

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ReportVehicleSignalsEventsPropertySlice) UpdateAll added in v0.4.13

UpdateAll updates all rows with the specified column values, using an executor.

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

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

DeleteAll deletes all rows in the slice, using an executor.

func (*UserDeviceDatumSlice) ReloadAll

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.

type VehicleSignalsAvailableProperty added in v0.4.13

type VehicleSignalsAvailableProperty struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	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 *vehicleSignalsAvailablePropertyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L vehicleSignalsAvailablePropertyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

VehicleSignalsAvailableProperty is an object representing the database table.

func FindVehicleSignalsAvailableProperty added in v0.4.13

func FindVehicleSignalsAvailableProperty(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*VehicleSignalsAvailableProperty, error)

FindVehicleSignalsAvailableProperty retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*VehicleSignalsAvailableProperty) Delete added in v0.4.13

Delete deletes a single VehicleSignalsAvailableProperty record with an executor. Delete will match against the primary key column to find the record to delete.

func (*VehicleSignalsAvailableProperty) Insert added in v0.4.13

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*VehicleSignalsAvailableProperty) Reload added in v0.4.13

Reload refetches the object from the database using the primary keys with an executor.

func (*VehicleSignalsAvailableProperty) Update added in v0.4.13

Update uses an executor to update the VehicleSignalsAvailableProperty. 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 (*VehicleSignalsAvailableProperty) Upsert added in v0.4.13

func (o *VehicleSignalsAvailableProperty) 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 VehicleSignalsAvailablePropertyHook added in v0.4.13

type VehicleSignalsAvailablePropertyHook func(context.Context, boil.ContextExecutor, *VehicleSignalsAvailableProperty) error

VehicleSignalsAvailablePropertyHook is the signature for custom VehicleSignalsAvailableProperty hook methods

type VehicleSignalsAvailablePropertySlice added in v0.4.13

type VehicleSignalsAvailablePropertySlice []*VehicleSignalsAvailableProperty

VehicleSignalsAvailablePropertySlice is an alias for a slice of pointers to VehicleSignalsAvailableProperty. This should almost always be used instead of []VehicleSignalsAvailableProperty.

func (VehicleSignalsAvailablePropertySlice) DeleteAll added in v0.4.13

DeleteAll deletes all rows in the slice, using an executor.

func (*VehicleSignalsAvailablePropertySlice) ReloadAll added in v0.4.13

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (VehicleSignalsAvailablePropertySlice) UpdateAll added in v0.4.13

UpdateAll updates all rows with the specified column values, using an executor.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL