models

package
v0.7.42 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TriggerEnumCAN string = "CAN"
	TriggerEnumPID string = "PID"
)

Enum values for TriggerEnum

View Source
const (
	JobStatusEnumPENDING   string = "PENDING"
	JobStatusEnumRUNNING   string = "RUNNING"
	JobStatusEnumCOMPLETED string = "COMPLETED"
	JobStatusEnumFAILED    string = "FAILED"
)

Enum values for JobStatusEnum

View Source
const (
	CanProtocolTypeCAN11_500 string = "CAN11_500"
	CanProtocolTypeCAN29_500 string = "CAN29_500"
	CanProtocolTypeCAN11_250 string = "CAN11_250"
	CanProtocolTypeCAN29_250 string = "CAN29_250"
)

Enum values for CanProtocolType

Variables

View Source
var AftermarketDeviceToTemplateColumns = struct {
	AftermarketDeviceEthereumAddress string
	TemplateName                     string
	CreatedAt                        string
	UpdatedAt                        string
}{
	AftermarketDeviceEthereumAddress: "aftermarket_device_ethereum_address",
	TemplateName:                     "template_name",
	CreatedAt:                        "created_at",
	UpdatedAt:                        "updated_at",
}
View Source
var AftermarketDeviceToTemplateRels = struct {
}{}

AftermarketDeviceToTemplateRels is where relationship names are stored.

View Source
var AftermarketDeviceToTemplateTableColumns = struct {
	AftermarketDeviceEthereumAddress string
	TemplateName                     string
	CreatedAt                        string
	UpdatedAt                        string
}{
	AftermarketDeviceEthereumAddress: "aftermarket_device_to_template.aftermarket_device_ethereum_address",
	TemplateName:                     "aftermarket_device_to_template.template_name",
	CreatedAt:                        "aftermarket_device_to_template.created_at",
	UpdatedAt:                        "aftermarket_device_to_template.updated_at",
}
View Source
var AftermarketDeviceToTemplateWhere = struct {
	AftermarketDeviceEthereumAddress whereHelper__byte
	TemplateName                     whereHelperstring
	CreatedAt                        whereHelpertime_Time
	UpdatedAt                        whereHelpertime_Time
}{
	AftermarketDeviceEthereumAddress: whereHelper__byte{/* contains filtered or unexported fields */},
	TemplateName:                     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 DBCCodeColumns = struct {
	ID               string
	Name             string
	DBCContents      string
	Header           string
	Trigger          string
	RecordingEnabled string
	MaxSampleSize    string
	CreatedAt        string
	UpdatedAt        string
}{
	ID:               "id",
	Name:             "name",
	DBCContents:      "dbc_contents",
	Header:           "header",
	Trigger:          "trigger",
	RecordingEnabled: "recording_enabled",
	MaxSampleSize:    "max_sample_size",
	CreatedAt:        "created_at",
	UpdatedAt:        "updated_at",
}
View Source
var DBCCodeRels = struct {
	TestSignals string
}{
	TestSignals: "TestSignals",
}

DBCCodeRels is where relationship names are stored.

View Source
var DBCCodeTableColumns = struct {
	ID               string
	Name             string
	DBCContents      string
	Header           string
	Trigger          string
	RecordingEnabled string
	MaxSampleSize    string
	CreatedAt        string
	UpdatedAt        string
}{
	ID:               "dbc_codes.id",
	Name:             "dbc_codes.name",
	DBCContents:      "dbc_codes.dbc_contents",
	Header:           "dbc_codes.header",
	Trigger:          "dbc_codes.trigger",
	RecordingEnabled: "dbc_codes.recording_enabled",
	MaxSampleSize:    "dbc_codes.max_sample_size",
	CreatedAt:        "dbc_codes.created_at",
	UpdatedAt:        "dbc_codes.updated_at",
}
View Source
var DBCCodeWhere = struct {
	ID               whereHelperstring
	Name             whereHelperstring
	DBCContents      whereHelpernull_String
	Header           whereHelpernull_Int
	Trigger          whereHelperstring
	RecordingEnabled whereHelperbool
	MaxSampleSize    whereHelperint
	CreatedAt        whereHelpertime_Time
	UpdatedAt        whereHelpertime_Time
}{
	ID:               whereHelperstring{/* contains filtered or unexported fields */},
	Name:             whereHelperstring{/* contains filtered or unexported fields */},
	DBCContents:      whereHelpernull_String{/* contains filtered or unexported fields */},
	Header:           whereHelpernull_Int{/* contains filtered or unexported fields */},
	Trigger:          whereHelperstring{/* contains filtered or unexported fields */},
	RecordingEnabled: whereHelperbool{/* contains filtered or unexported fields */},
	MaxSampleSize:    whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var DBCFileColumns = struct {
	DBCFile      string
	TemplateName string
	CreatedAt    string
	UpdatedAt    string
}{
	DBCFile:      "dbc_file",
	TemplateName: "template_name",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
}
View Source
var DBCFileRels = struct {
	TemplateNameTemplate string
}{
	TemplateNameTemplate: "TemplateNameTemplate",
}

DBCFileRels is where relationship names are stored.

View Source
var DBCFileTableColumns = struct {
	DBCFile      string
	TemplateName string
	CreatedAt    string
	UpdatedAt    string
}{
	DBCFile:      "dbc_files.dbc_file",
	TemplateName: "dbc_files.template_name",
	CreatedAt:    "dbc_files.created_at",
	UpdatedAt:    "dbc_files.updated_at",
}
View Source
var DBCFileWhere = struct {
	DBCFile      whereHelperstring
	TemplateName whereHelperstring
	CreatedAt    whereHelpertime_Time
	UpdatedAt    whereHelpertime_Time
}{
	DBCFile:      whereHelperstring{/* contains filtered or unexported fields */},
	TemplateName: 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 DeviceSettingColumns = struct {
	TemplateName string
	CreatedAt    string
	UpdatedAt    string
	Settings     string
	Name         string
	Powertrain   string
	Version      string
}{
	TemplateName: "template_name",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
	Settings:     "settings",
	Name:         "name",
	Powertrain:   "powertrain",
	Version:      "version",
}
View Source
var DeviceSettingRels = struct {
	TemplateNameTemplate string
}{
	TemplateNameTemplate: "TemplateNameTemplate",
}

DeviceSettingRels is where relationship names are stored.

View Source
var DeviceSettingTableColumns = struct {
	TemplateName string
	CreatedAt    string
	UpdatedAt    string
	Settings     string
	Name         string
	Powertrain   string
	Version      string
}{
	TemplateName: "device_settings.template_name",
	CreatedAt:    "device_settings.created_at",
	UpdatedAt:    "device_settings.updated_at",
	Settings:     "device_settings.settings",
	Name:         "device_settings.name",
	Powertrain:   "device_settings.powertrain",
	Version:      "device_settings.version",
}
View Source
var DeviceSettingWhere = struct {
	TemplateName whereHelpernull_String
	CreatedAt    whereHelpertime_Time
	UpdatedAt    whereHelpertime_Time
	Settings     whereHelpernull_JSON
	Name         whereHelperstring
	Powertrain   whereHelperstring
	Version      whereHelperstring
}{
	TemplateName: whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	Settings:     whereHelpernull_JSON{/* contains filtered or unexported fields */},
	Name:         whereHelperstring{/* contains filtered or unexported fields */},
	Powertrain:   whereHelperstring{/* contains filtered or unexported fields */},
	Version:      whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var DeviceTemplateStatusColumns = struct {
	DeviceEthAddr       string
	TemplateDBCURL      string
	TemplatePidURL      string
	TemplateSettingsURL string
	FirmwareVersion     string
	CreatedAt           string
	UpdatedAt           string
}{
	DeviceEthAddr:       "device_eth_addr",
	TemplateDBCURL:      "template_dbc_url",
	TemplatePidURL:      "template_pid_url",
	TemplateSettingsURL: "template_settings_url",
	FirmwareVersion:     "firmware_version",
	CreatedAt:           "created_at",
	UpdatedAt:           "updated_at",
}
View Source
var DeviceTemplateStatusRels = struct {
}{}

DeviceTemplateStatusRels is where relationship names are stored.

View Source
var DeviceTemplateStatusTableColumns = struct {
	DeviceEthAddr       string
	TemplateDBCURL      string
	TemplatePidURL      string
	TemplateSettingsURL string
	FirmwareVersion     string
	CreatedAt           string
	UpdatedAt           string
}{
	DeviceEthAddr:       "device_template_status.device_eth_addr",
	TemplateDBCURL:      "device_template_status.template_dbc_url",
	TemplatePidURL:      "device_template_status.template_pid_url",
	TemplateSettingsURL: "device_template_status.template_settings_url",
	FirmwareVersion:     "device_template_status.firmware_version",
	CreatedAt:           "device_template_status.created_at",
	UpdatedAt:           "device_template_status.updated_at",
}
View Source
var DeviceTemplateStatusWhere = struct {
	DeviceEthAddr       whereHelper__byte
	TemplateDBCURL      whereHelpernull_String
	TemplatePidURL      whereHelpernull_String
	TemplateSettingsURL whereHelpernull_String
	FirmwareVersion     whereHelpernull_String
	CreatedAt           whereHelpertime_Time
	UpdatedAt           whereHelpertime_Time
}{
	DeviceEthAddr:       whereHelper__byte{/* contains filtered or unexported fields */},
	TemplateDBCURL:      whereHelpernull_String{/* contains filtered or unexported fields */},
	TemplatePidURL:      whereHelpernull_String{/* contains filtered or unexported fields */},
	TemplateSettingsURL: whereHelpernull_String{/* contains filtered or unexported fields */},
	FirmwareVersion:     whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt:           whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:           whereHelpertime_Time{/* contains filtered or unexported fields */},
}
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 JobColumns = struct {
	ID                    string
	Command               string
	Status                string
	Metadata              string
	DeviceEthereumAddress string
	LastExecution         string
	CreatedAt             string
	UpdatedAt             string
}{
	ID:                    "id",
	Command:               "command",
	Status:                "status",
	Metadata:              "metadata",
	DeviceEthereumAddress: "device_ethereum_address",
	LastExecution:         "last_execution",
	CreatedAt:             "created_at",
	UpdatedAt:             "updated_at",
}
View Source
var JobRels = struct {
}{}

JobRels is where relationship names are stored.

View Source
var JobTableColumns = struct {
	ID                    string
	Command               string
	Status                string
	Metadata              string
	DeviceEthereumAddress string
	LastExecution         string
	CreatedAt             string
	UpdatedAt             string
}{
	ID:                    "jobs.id",
	Command:               "jobs.command",
	Status:                "jobs.status",
	Metadata:              "jobs.metadata",
	DeviceEthereumAddress: "jobs.device_ethereum_address",
	LastExecution:         "jobs.last_execution",
	CreatedAt:             "jobs.created_at",
	UpdatedAt:             "jobs.updated_at",
}
View Source
var JobWhere = struct {
	ID                    whereHelperstring
	Command               whereHelperstring
	Status                whereHelperstring
	Metadata              whereHelpernull_JSON
	DeviceEthereumAddress whereHelper__byte
	LastExecution         whereHelpernull_Time
	CreatedAt             whereHelpertime_Time
	UpdatedAt             whereHelpertime_Time
}{
	ID:                    whereHelperstring{/* contains filtered or unexported fields */},
	Command:               whereHelperstring{/* contains filtered or unexported fields */},
	Status:                whereHelperstring{/* contains filtered or unexported fields */},
	Metadata:              whereHelpernull_JSON{/* contains filtered or unexported fields */},
	DeviceEthereumAddress: whereHelper__byte{/* contains filtered or unexported fields */},
	LastExecution:         whereHelpernull_Time{/* contains filtered or unexported fields */},
	CreatedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var PidConfigColumns = struct {
	ID                   string
	TemplateName         string
	Header               string
	Mode                 string
	Pid                  string
	Formula              string
	IntervalSeconds      string
	Protocol             string
	CreatedAt            string
	UpdatedAt            string
	SignalName           string
	CanFlowControlClear  string
	CanFlowControlIDPair string
}{
	ID:                   "id",
	TemplateName:         "template_name",
	Header:               "header",
	Mode:                 "mode",
	Pid:                  "pid",
	Formula:              "formula",
	IntervalSeconds:      "interval_seconds",
	Protocol:             "protocol",
	CreatedAt:            "created_at",
	UpdatedAt:            "updated_at",
	SignalName:           "signal_name",
	CanFlowControlClear:  "can_flow_control_clear",
	CanFlowControlIDPair: "can_flow_control_id_pair",
}
View Source
var PidConfigRels = struct {
	TemplateNameTemplate string
}{
	TemplateNameTemplate: "TemplateNameTemplate",
}

PidConfigRels is where relationship names are stored.

View Source
var PidConfigTableColumns = struct {
	ID                   string
	TemplateName         string
	Header               string
	Mode                 string
	Pid                  string
	Formula              string
	IntervalSeconds      string
	Protocol             string
	CreatedAt            string
	UpdatedAt            string
	SignalName           string
	CanFlowControlClear  string
	CanFlowControlIDPair string
}{
	ID:                   "pid_configs.id",
	TemplateName:         "pid_configs.template_name",
	Header:               "pid_configs.header",
	Mode:                 "pid_configs.mode",
	Pid:                  "pid_configs.pid",
	Formula:              "pid_configs.formula",
	IntervalSeconds:      "pid_configs.interval_seconds",
	Protocol:             "pid_configs.protocol",
	CreatedAt:            "pid_configs.created_at",
	UpdatedAt:            "pid_configs.updated_at",
	SignalName:           "pid_configs.signal_name",
	CanFlowControlClear:  "pid_configs.can_flow_control_clear",
	CanFlowControlIDPair: "pid_configs.can_flow_control_id_pair",
}
View Source
var PidConfigWhere = struct {
	ID                   whereHelperint64
	TemplateName         whereHelperstring
	Header               whereHelper__byte
	Mode                 whereHelper__byte
	Pid                  whereHelper__byte
	Formula              whereHelperstring
	IntervalSeconds      whereHelperint
	Protocol             whereHelpernull_String
	CreatedAt            whereHelpertime_Time
	UpdatedAt            whereHelpertime_Time
	SignalName           whereHelperstring
	CanFlowControlClear  whereHelpernull_Bool
	CanFlowControlIDPair whereHelpernull_String
}{
	ID:                   whereHelperint64{/* contains filtered or unexported fields */},
	TemplateName:         whereHelperstring{/* contains filtered or unexported fields */},
	Header:               whereHelper__byte{/* contains filtered or unexported fields */},
	Mode:                 whereHelper__byte{/* contains filtered or unexported fields */},
	Pid:                  whereHelper__byte{/* contains filtered or unexported fields */},
	Formula:              whereHelperstring{/* contains filtered or unexported fields */},
	IntervalSeconds:      whereHelperint{/* contains filtered or unexported fields */},
	Protocol:             whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt:            whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:            whereHelpertime_Time{/* contains filtered or unexported fields */},
	SignalName:           whereHelperstring{/* contains filtered or unexported fields */},
	CanFlowControlClear:  whereHelpernull_Bool{/* contains filtered or unexported fields */},
	CanFlowControlIDPair: whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	AftermarketDeviceToTemplate string
	DBCCodes                    string
	DBCFiles                    string
	DeviceSettings              string
	DeviceTemplateStatus        string
	Jobs                        string
	PidConfigs                  string
	TemplateDeviceDefinitions   string
	TemplateVehicles            string
	Templates                   string
	TestSignals                 string
}{
	AftermarketDeviceToTemplate: "aftermarket_device_to_template",
	DBCCodes:                    "dbc_codes",
	DBCFiles:                    "dbc_files",
	DeviceSettings:              "device_settings",
	DeviceTemplateStatus:        "device_template_status",
	Jobs:                        "jobs",
	PidConfigs:                  "pid_configs",
	TemplateDeviceDefinitions:   "template_device_definitions",
	TemplateVehicles:            "template_vehicles",
	Templates:                   "templates",
	TestSignals:                 "test_signals",
}
View Source
var TemplateColumns = struct {
	TemplateName       string
	ParentTemplateName string
	Version            string
	CreatedAt          string
	UpdatedAt          string
	Protocol           string
	Powertrain         string
}{
	TemplateName:       "template_name",
	ParentTemplateName: "parent_template_name",
	Version:            "version",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
	Protocol:           "protocol",
	Powertrain:         "powertrain",
}
View Source
var TemplateDeviceDefinitionColumns = struct {
	ID                 string
	DeviceDefinitionID string
	DeviceStyleID      string
	TemplateName       string
	CreatedAt          string
	UpdatedAt          string
}{
	ID:                 "id",
	DeviceDefinitionID: "device_definition_id",
	DeviceStyleID:      "device_style_id",
	TemplateName:       "template_name",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
}
View Source
var TemplateDeviceDefinitionRels = struct {
	TemplateNameTemplate string
}{
	TemplateNameTemplate: "TemplateNameTemplate",
}

TemplateDeviceDefinitionRels is where relationship names are stored.

View Source
var TemplateDeviceDefinitionTableColumns = struct {
	ID                 string
	DeviceDefinitionID string
	DeviceStyleID      string
	TemplateName       string
	CreatedAt          string
	UpdatedAt          string
}{
	ID:                 "template_device_definitions.id",
	DeviceDefinitionID: "template_device_definitions.device_definition_id",
	DeviceStyleID:      "template_device_definitions.device_style_id",
	TemplateName:       "template_device_definitions.template_name",
	CreatedAt:          "template_device_definitions.created_at",
	UpdatedAt:          "template_device_definitions.updated_at",
}
View Source
var TemplateDeviceDefinitionWhere = struct {
	ID                 whereHelperint64
	DeviceDefinitionID whereHelperstring
	DeviceStyleID      whereHelpernull_String
	TemplateName       whereHelperstring
	CreatedAt          whereHelpertime_Time
	UpdatedAt          whereHelpertime_Time
}{
	ID:                 whereHelperint64{/* contains filtered or unexported fields */},
	DeviceDefinitionID: whereHelperstring{/* contains filtered or unexported fields */},
	DeviceStyleID:      whereHelpernull_String{/* contains filtered or unexported fields */},
	TemplateName:       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 TemplateRels = struct {
	TemplateNameDBCFile                   string
	TemplateNameDeviceSettings            string
	TemplateNamePidConfigs                string
	TemplateNameTemplateDeviceDefinitions string
	TemplateNameTemplateVehicles          string
}{
	TemplateNameDBCFile:                   "TemplateNameDBCFile",
	TemplateNameDeviceSettings:            "TemplateNameDeviceSettings",
	TemplateNamePidConfigs:                "TemplateNamePidConfigs",
	TemplateNameTemplateDeviceDefinitions: "TemplateNameTemplateDeviceDefinitions",
	TemplateNameTemplateVehicles:          "TemplateNameTemplateVehicles",
}

TemplateRels is where relationship names are stored.

View Source
var TemplateTableColumns = struct {
	TemplateName       string
	ParentTemplateName string
	Version            string
	CreatedAt          string
	UpdatedAt          string
	Protocol           string
	Powertrain         string
}{
	TemplateName:       "templates.template_name",
	ParentTemplateName: "templates.parent_template_name",
	Version:            "templates.version",
	CreatedAt:          "templates.created_at",
	UpdatedAt:          "templates.updated_at",
	Protocol:           "templates.protocol",
	Powertrain:         "templates.powertrain",
}
View Source
var TemplateVehicleColumns = struct {
	MakeSlug       string
	TemplateName   string
	YearStart      string
	YearEnd        string
	ModelWhitelist string
	CreatedAt      string
	UpdatedAt      string
	ID             string
}{
	MakeSlug:       "make_slug",
	TemplateName:   "template_name",
	YearStart:      "year_start",
	YearEnd:        "year_end",
	ModelWhitelist: "model_whitelist",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	ID:             "id",
}
View Source
var TemplateVehicleRels = struct {
	TemplateNameTemplate string
}{
	TemplateNameTemplate: "TemplateNameTemplate",
}

TemplateVehicleRels is where relationship names are stored.

View Source
var TemplateVehicleTableColumns = struct {
	MakeSlug       string
	TemplateName   string
	YearStart      string
	YearEnd        string
	ModelWhitelist string
	CreatedAt      string
	UpdatedAt      string
	ID             string
}{
	MakeSlug:       "template_vehicles.make_slug",
	TemplateName:   "template_vehicles.template_name",
	YearStart:      "template_vehicles.year_start",
	YearEnd:        "template_vehicles.year_end",
	ModelWhitelist: "template_vehicles.model_whitelist",
	CreatedAt:      "template_vehicles.created_at",
	UpdatedAt:      "template_vehicles.updated_at",
	ID:             "template_vehicles.id",
}
View Source
var TemplateVehicleWhere = struct {
	MakeSlug       whereHelpernull_String
	TemplateName   whereHelperstring
	YearStart      whereHelperint
	YearEnd        whereHelperint
	ModelWhitelist whereHelpertypes_StringArray
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	ID             whereHelperint
}{
	MakeSlug:       whereHelpernull_String{/* contains filtered or unexported fields */},
	TemplateName:   whereHelperstring{/* contains filtered or unexported fields */},
	YearStart:      whereHelperint{/* contains filtered or unexported fields */},
	YearEnd:        whereHelperint{/* contains filtered or unexported fields */},
	ModelWhitelist: whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	ID:             whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var TemplateWhere = struct {
	TemplateName       whereHelperstring
	ParentTemplateName whereHelpernull_String
	Version            whereHelperstring
	CreatedAt          whereHelpertime_Time
	UpdatedAt          whereHelpertime_Time
	Protocol           whereHelperstring
	Powertrain         whereHelperstring
}{
	TemplateName:       whereHelperstring{/* contains filtered or unexported fields */},
	ParentTemplateName: whereHelpernull_String{/* contains filtered or unexported fields */},
	Version:            whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	Protocol:           whereHelperstring{/* contains filtered or unexported fields */},
	Powertrain:         whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var TestSignalColumns = struct {
	ID                 string
	DeviceDefinitionID string
	DBCCodesID         string
	UserDeviceID       string
	AutopiUnitID       string
	Value              string
	Approved           string
	VehicleTimestamp   string
	CreatedAt          string
	UpdatedAt          string
	Signals            string
}{
	ID:                 "id",
	DeviceDefinitionID: "device_definition_id",
	DBCCodesID:         "dbc_codes_id",
	UserDeviceID:       "user_device_id",
	AutopiUnitID:       "autopi_unit_id",
	Value:              "value",
	Approved:           "approved",
	VehicleTimestamp:   "vehicle_timestamp",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
	Signals:            "signals",
}
View Source
var TestSignalRels = struct {
	DBCCode string
}{
	DBCCode: "DBCCode",
}

TestSignalRels is where relationship names are stored.

View Source
var TestSignalTableColumns = struct {
	ID                 string
	DeviceDefinitionID string
	DBCCodesID         string
	UserDeviceID       string
	AutopiUnitID       string
	Value              string
	Approved           string
	VehicleTimestamp   string
	CreatedAt          string
	UpdatedAt          string
	Signals            string
}{
	ID:                 "test_signals.id",
	DeviceDefinitionID: "test_signals.device_definition_id",
	DBCCodesID:         "test_signals.dbc_codes_id",
	UserDeviceID:       "test_signals.user_device_id",
	AutopiUnitID:       "test_signals.autopi_unit_id",
	Value:              "test_signals.value",
	Approved:           "test_signals.approved",
	VehicleTimestamp:   "test_signals.vehicle_timestamp",
	CreatedAt:          "test_signals.created_at",
	UpdatedAt:          "test_signals.updated_at",
	Signals:            "test_signals.signals",
}
View Source
var TestSignalWhere = struct {
	ID                 whereHelperstring
	DeviceDefinitionID whereHelperstring
	DBCCodesID         whereHelperstring
	UserDeviceID       whereHelperstring
	AutopiUnitID       whereHelperstring
	Value              whereHelperstring
	Approved           whereHelperbool
	VehicleTimestamp   whereHelpertime_Time
	CreatedAt          whereHelpertime_Time
	UpdatedAt          whereHelpertime_Time
	Signals            whereHelpernull_JSON
}{
	ID:                 whereHelperstring{/* contains filtered or unexported fields */},
	DeviceDefinitionID: whereHelperstring{/* contains filtered or unexported fields */},
	DBCCodesID:         whereHelperstring{/* contains filtered or unexported fields */},
	UserDeviceID:       whereHelperstring{/* contains filtered or unexported fields */},
	AutopiUnitID:       whereHelperstring{/* contains filtered or unexported fields */},
	Value:              whereHelperstring{/* contains filtered or unexported fields */},
	Approved:           whereHelperbool{/* contains filtered or unexported fields */},
	VehicleTimestamp:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	Signals:            whereHelpernull_JSON{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
}{}

Functions

func AddAftermarketDeviceToTemplateHook added in v0.7.41

func AddAftermarketDeviceToTemplateHook(hookPoint boil.HookPoint, aftermarketDeviceToTemplateHook AftermarketDeviceToTemplateHook)

AddAftermarketDeviceToTemplateHook registers your hook function for all future operations.

func AddDBCCodeHook

func AddDBCCodeHook(hookPoint boil.HookPoint, dbcCodeHook DBCCodeHook)

AddDBCCodeHook registers your hook function for all future operations.

func AddDBCFileHook added in v0.2.4

func AddDBCFileHook(hookPoint boil.HookPoint, dbcFileHook DBCFileHook)

AddDBCFileHook registers your hook function for all future operations.

func AddDeviceSettingHook added in v0.2.4

func AddDeviceSettingHook(hookPoint boil.HookPoint, deviceSettingHook DeviceSettingHook)

AddDeviceSettingHook registers your hook function for all future operations.

func AddDeviceTemplateStatusHook added in v0.7.1

func AddDeviceTemplateStatusHook(hookPoint boil.HookPoint, deviceTemplateStatusHook DeviceTemplateStatusHook)

AddDeviceTemplateStatusHook registers your hook function for all future operations.

func AddJobHook added in v0.6.2

func AddJobHook(hookPoint boil.HookPoint, jobHook JobHook)

AddJobHook registers your hook function for all future operations.

func AddPidConfigHook added in v0.2.4

func AddPidConfigHook(hookPoint boil.HookPoint, pidConfigHook PidConfigHook)

AddPidConfigHook registers your hook function for all future operations.

func AddTemplateDeviceDefinitionHook added in v0.5.7

func AddTemplateDeviceDefinitionHook(hookPoint boil.HookPoint, templateDeviceDefinitionHook TemplateDeviceDefinitionHook)

AddTemplateDeviceDefinitionHook registers your hook function for all future operations.

func AddTemplateHook added in v0.2.4

func AddTemplateHook(hookPoint boil.HookPoint, templateHook TemplateHook)

AddTemplateHook registers your hook function for all future operations.

func AddTemplateVehicleHook added in v0.2.4

func AddTemplateVehicleHook(hookPoint boil.HookPoint, templateVehicleHook TemplateVehicleHook)

AddTemplateVehicleHook registers your hook function for all future operations.

func AddTestSignalHook

func AddTestSignalHook(hookPoint boil.HookPoint, testSignalHook TestSignalHook)

AddTestSignalHook registers your hook function for all future operations.

func AftermarketDeviceToTemplateExists added in v0.7.41

func AftermarketDeviceToTemplateExists(ctx context.Context, exec boil.ContextExecutor, aftermarketDeviceEthereumAddress []byte, templateName string) (bool, error)

AftermarketDeviceToTemplateExists checks if the AftermarketDeviceToTemplate row exists.

func AftermarketDeviceToTemplates added in v0.7.41

func AftermarketDeviceToTemplates(mods ...qm.QueryMod) aftermarketDeviceToTemplateQuery

AftermarketDeviceToTemplates retrieves all the records using an executor.

func AllCanProtocolType added in v0.2.6

func AllCanProtocolType() []string

func AllJobStatusEnum added in v0.6.2

func AllJobStatusEnum() []string

func AllTriggerEnum added in v0.1.3

func AllTriggerEnum() []string

func DBCCodeExists

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

DBCCodeExists checks if the DBCCode row exists.

func DBCCodes

func DBCCodes(mods ...qm.QueryMod) dbcCodeQuery

DBCCodes retrieves all the records using an executor.

func DBCFileExists added in v0.2.4

func DBCFileExists(ctx context.Context, exec boil.ContextExecutor, templateName string) (bool, error)

DBCFileExists checks if the DBCFile row exists.

func DBCFiles added in v0.2.4

func DBCFiles(mods ...qm.QueryMod) dbcFileQuery

DBCFiles retrieves all the records using an executor.

func DeviceSettingExists added in v0.2.4

func DeviceSettingExists(ctx context.Context, exec boil.ContextExecutor, name string) (bool, error)

DeviceSettingExists checks if the DeviceSetting row exists.

func DeviceSettings added in v0.2.4

func DeviceSettings(mods ...qm.QueryMod) deviceSettingQuery

DeviceSettings retrieves all the records using an executor.

func DeviceTemplateStatusExists added in v0.7.1

func DeviceTemplateStatusExists(ctx context.Context, exec boil.ContextExecutor, deviceEthAddr []byte) (bool, error)

DeviceTemplateStatusExists checks if the DeviceTemplateStatus row exists.

func DeviceTemplateStatuses added in v0.7.1

func DeviceTemplateStatuses(mods ...qm.QueryMod) deviceTemplateStatusQuery

DeviceTemplateStatuses retrieves all the records using an executor.

func JobExists added in v0.6.2

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

JobExists checks if the Job row exists.

func Jobs added in v0.6.2

func Jobs(mods ...qm.QueryMod) jobQuery

Jobs retrieves all the records using an executor.

func NewQuery

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

NewQuery initializes a new Query using the passed in QueryMods

func PidConfigExists added in v0.2.4

func PidConfigExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

PidConfigExists checks if the PidConfig row exists.

func PidConfigs added in v0.2.4

func PidConfigs(mods ...qm.QueryMod) pidConfigQuery

PidConfigs retrieves all the records using an executor.

func TemplateDeviceDefinitionExists added in v0.5.7

func TemplateDeviceDefinitionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

TemplateDeviceDefinitionExists checks if the TemplateDeviceDefinition row exists.

func TemplateDeviceDefinitions added in v0.5.7

func TemplateDeviceDefinitions(mods ...qm.QueryMod) templateDeviceDefinitionQuery

TemplateDeviceDefinitions retrieves all the records using an executor.

func TemplateExists added in v0.2.4

func TemplateExists(ctx context.Context, exec boil.ContextExecutor, templateName string) (bool, error)

TemplateExists checks if the Template row exists.

func TemplateVehicleExists added in v0.2.4

func TemplateVehicleExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

TemplateVehicleExists checks if the TemplateVehicle row exists.

func TemplateVehicles added in v0.2.4

func TemplateVehicles(mods ...qm.QueryMod) templateVehicleQuery

TemplateVehicles retrieves all the records using an executor.

func Templates added in v0.2.4

func Templates(mods ...qm.QueryMod) templateQuery

Templates retrieves all the records using an executor.

func TestSignalExists

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

TestSignalExists checks if the TestSignal row exists.

func TestSignals

func TestSignals(mods ...qm.QueryMod) testSignalQuery

TestSignals retrieves all the records using an executor.

Types

type AftermarketDeviceToTemplate added in v0.7.41

type AftermarketDeviceToTemplate struct {
	AftermarketDeviceEthereumAddress []byte    `` /* 171-byte string literal not displayed */
	TemplateName                     string    `boil:"template_name" json:"template_name" toml:"template_name" yaml:"template_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 *aftermarketDeviceToTemplateR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L aftermarketDeviceToTemplateL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AftermarketDeviceToTemplate is an object representing the database table.

func FindAftermarketDeviceToTemplate added in v0.7.41

func FindAftermarketDeviceToTemplate(ctx context.Context, exec boil.ContextExecutor, aftermarketDeviceEthereumAddress []byte, templateName string, selectCols ...string) (*AftermarketDeviceToTemplate, error)

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

func (*AftermarketDeviceToTemplate) Delete added in v0.7.41

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

func (*AftermarketDeviceToTemplate) Exists added in v0.7.41

Exists checks if the AftermarketDeviceToTemplate row exists.

func (*AftermarketDeviceToTemplate) Insert added in v0.7.41

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

func (*AftermarketDeviceToTemplate) Reload added in v0.7.41

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

func (*AftermarketDeviceToTemplate) Update added in v0.7.41

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

func (o *AftermarketDeviceToTemplate) 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 AftermarketDeviceToTemplateHook added in v0.7.41

type AftermarketDeviceToTemplateHook func(context.Context, boil.ContextExecutor, *AftermarketDeviceToTemplate) error

AftermarketDeviceToTemplateHook is the signature for custom AftermarketDeviceToTemplate hook methods

type AftermarketDeviceToTemplateSlice added in v0.7.41

type AftermarketDeviceToTemplateSlice []*AftermarketDeviceToTemplate

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

func (AftermarketDeviceToTemplateSlice) DeleteAll added in v0.7.41

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

func (*AftermarketDeviceToTemplateSlice) ReloadAll added in v0.7.41

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

func (AftermarketDeviceToTemplateSlice) UpdateAll added in v0.7.41

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

type DBCCode

type DBCCode struct {
	ID               string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name             string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	DBCContents      null.String `boil:"dbc_contents" json:"dbc_contents,omitempty" toml:"dbc_contents" yaml:"dbc_contents,omitempty"`
	Header           null.Int    `boil:"header" json:"header,omitempty" toml:"header" yaml:"header,omitempty"`
	Trigger          string      `boil:"trigger" json:"trigger" toml:"trigger" yaml:"trigger"`
	RecordingEnabled bool        `boil:"recording_enabled" json:"recording_enabled" toml:"recording_enabled" yaml:"recording_enabled"`
	MaxSampleSize    int         `boil:"max_sample_size" json:"max_sample_size" toml:"max_sample_size" yaml:"max_sample_size"`
	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 *dbcCodeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L dbcCodeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DBCCode is an object representing the database table.

func FindDBCCode

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

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

func (*DBCCode) AddTestSignals

func (o *DBCCode) AddTestSignals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*TestSignal) error

AddTestSignals adds the given related objects to the existing relationships of the dbc_code, optionally inserting them as new records. Appends related to o.R.TestSignals. Sets related.R.DBCCode appropriately.

func (*DBCCode) Delete

func (o *DBCCode) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*DBCCode) Exists added in v0.2.4

func (o *DBCCode) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the DBCCode row exists.

func (*DBCCode) Insert

func (o *DBCCode) 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 (*DBCCode) Reload

func (o *DBCCode) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*DBCCode) TestSignals

func (o *DBCCode) TestSignals(mods ...qm.QueryMod) testSignalQuery

TestSignals retrieves all the test_signal's TestSignals with an executor.

func (*DBCCode) Update

func (o *DBCCode) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the DBCCode. 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 (*DBCCode) Upsert

func (o *DBCCode) 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 DBCCodeHook

type DBCCodeHook func(context.Context, boil.ContextExecutor, *DBCCode) error

DBCCodeHook is the signature for custom DBCCode hook methods

type DBCCodeSlice

type DBCCodeSlice []*DBCCode

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

func (DBCCodeSlice) DeleteAll

func (o DBCCodeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*DBCCodeSlice) ReloadAll

func (o *DBCCodeSlice) 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 (DBCCodeSlice) UpdateAll

func (o DBCCodeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type DBCFile added in v0.2.4

type DBCFile struct {
	DBCFile      string    `boil:"dbc_file" json:"dbc_file" toml:"dbc_file" yaml:"dbc_file"`
	TemplateName string    `boil:"template_name" json:"template_name" toml:"template_name" yaml:"template_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 *dbcFileR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L dbcFileL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DBCFile is an object representing the database table.

func FindDBCFile added in v0.2.4

func FindDBCFile(ctx context.Context, exec boil.ContextExecutor, templateName string, selectCols ...string) (*DBCFile, error)

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

func (*DBCFile) Delete added in v0.2.4

func (o *DBCFile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*DBCFile) Exists added in v0.2.4

func (o *DBCFile) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the DBCFile row exists.

func (*DBCFile) Insert added in v0.2.4

func (o *DBCFile) 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 (*DBCFile) Reload added in v0.2.4

func (o *DBCFile) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*DBCFile) SetTemplateNameTemplate added in v0.2.4

func (o *DBCFile) SetTemplateNameTemplate(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Template) error

SetTemplateNameTemplate of the dbcFile to the related item. Sets o.R.TemplateNameTemplate to related. Adds o to related.R.TemplateNameDBCFile.

func (*DBCFile) TemplateNameTemplate added in v0.2.4

func (o *DBCFile) TemplateNameTemplate(mods ...qm.QueryMod) templateQuery

TemplateNameTemplate pointed to by the foreign key.

func (*DBCFile) Update added in v0.2.4

func (o *DBCFile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

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

func (o *DBCFile) 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 DBCFileHook added in v0.2.4

type DBCFileHook func(context.Context, boil.ContextExecutor, *DBCFile) error

DBCFileHook is the signature for custom DBCFile hook methods

type DBCFileSlice added in v0.2.4

type DBCFileSlice []*DBCFile

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

func (DBCFileSlice) DeleteAll added in v0.2.4

func (o DBCFileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*DBCFileSlice) ReloadAll added in v0.2.4

func (o *DBCFileSlice) 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 (DBCFileSlice) UpdateAll added in v0.2.4

func (o DBCFileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type DeviceSetting added in v0.2.4

type DeviceSetting struct {
	TemplateName null.String `boil:"template_name" json:"template_name,omitempty" toml:"template_name" yaml:"template_name,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"`
	Settings     null.JSON   `boil:"settings" json:"settings,omitempty" toml:"settings" yaml:"settings,omitempty"`
	Name         string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Powertrain   string      `boil:"powertrain" json:"powertrain" toml:"powertrain" yaml:"powertrain"`
	Version      string      `boil:"version" json:"version" toml:"version" yaml:"version"`

	R *deviceSettingR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L deviceSettingL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DeviceSetting is an object representing the database table.

func FindDeviceSetting added in v0.2.4

func FindDeviceSetting(ctx context.Context, exec boil.ContextExecutor, name string, selectCols ...string) (*DeviceSetting, error)

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

func (*DeviceSetting) Delete added in v0.2.4

func (o *DeviceSetting) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*DeviceSetting) Exists added in v0.2.4

func (o *DeviceSetting) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the DeviceSetting row exists.

func (*DeviceSetting) Insert added in v0.2.4

func (o *DeviceSetting) 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 (*DeviceSetting) Reload added in v0.2.4

func (o *DeviceSetting) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*DeviceSetting) RemoveTemplateNameTemplate added in v0.6.4

func (o *DeviceSetting) RemoveTemplateNameTemplate(ctx context.Context, exec boil.ContextExecutor, related *Template) error

RemoveTemplateNameTemplate relationship. Sets o.R.TemplateNameTemplate to nil. Removes o from all passed in related items' relationships struct.

func (*DeviceSetting) SetTemplateNameTemplate added in v0.2.4

func (o *DeviceSetting) SetTemplateNameTemplate(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Template) error

SetTemplateNameTemplate of the deviceSetting to the related item. Sets o.R.TemplateNameTemplate to related. Adds o to related.R.TemplateNameDeviceSettings.

func (*DeviceSetting) TemplateNameTemplate added in v0.2.4

func (o *DeviceSetting) TemplateNameTemplate(mods ...qm.QueryMod) templateQuery

TemplateNameTemplate pointed to by the foreign key.

func (*DeviceSetting) Update added in v0.2.4

func (o *DeviceSetting) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

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

func (o *DeviceSetting) 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 DeviceSettingHook added in v0.2.4

type DeviceSettingHook func(context.Context, boil.ContextExecutor, *DeviceSetting) error

DeviceSettingHook is the signature for custom DeviceSetting hook methods

type DeviceSettingSlice added in v0.2.4

type DeviceSettingSlice []*DeviceSetting

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

func (DeviceSettingSlice) DeleteAll added in v0.2.4

func (o DeviceSettingSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*DeviceSettingSlice) ReloadAll added in v0.2.4

func (o *DeviceSettingSlice) 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 (DeviceSettingSlice) UpdateAll added in v0.2.4

func (o DeviceSettingSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type DeviceTemplateStatus added in v0.7.1

type DeviceTemplateStatus struct {
	DeviceEthAddr       []byte      `boil:"device_eth_addr" json:"device_eth_addr" toml:"device_eth_addr" yaml:"device_eth_addr"`
	TemplateDBCURL      null.String `boil:"template_dbc_url" json:"template_dbc_url,omitempty" toml:"template_dbc_url" yaml:"template_dbc_url,omitempty"`
	TemplatePidURL      null.String `boil:"template_pid_url" json:"template_pid_url,omitempty" toml:"template_pid_url" yaml:"template_pid_url,omitempty"`
	TemplateSettingsURL null.String `` /* 135-byte string literal not displayed */
	FirmwareVersion     null.String `boil:"firmware_version" json:"firmware_version,omitempty" toml:"firmware_version" yaml:"firmware_version,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 *deviceTemplateStatusR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L deviceTemplateStatusL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DeviceTemplateStatus is an object representing the database table.

func FindDeviceTemplateStatus added in v0.7.1

func FindDeviceTemplateStatus(ctx context.Context, exec boil.ContextExecutor, deviceEthAddr []byte, selectCols ...string) (*DeviceTemplateStatus, error)

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

func (*DeviceTemplateStatus) Delete added in v0.7.1

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

func (*DeviceTemplateStatus) Exists added in v0.7.1

Exists checks if the DeviceTemplateStatus row exists.

func (*DeviceTemplateStatus) Insert added in v0.7.1

func (o *DeviceTemplateStatus) 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 (*DeviceTemplateStatus) Reload added in v0.7.1

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

func (*DeviceTemplateStatus) Update added in v0.7.1

func (o *DeviceTemplateStatus) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

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

func (o *DeviceTemplateStatus) 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 DeviceTemplateStatusHook added in v0.7.1

type DeviceTemplateStatusHook func(context.Context, boil.ContextExecutor, *DeviceTemplateStatus) error

DeviceTemplateStatusHook is the signature for custom DeviceTemplateStatus hook methods

type DeviceTemplateStatusSlice added in v0.7.1

type DeviceTemplateStatusSlice []*DeviceTemplateStatus

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

func (DeviceTemplateStatusSlice) DeleteAll added in v0.7.1

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

func (*DeviceTemplateStatusSlice) ReloadAll added in v0.7.1

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

func (DeviceTemplateStatusSlice) UpdateAll added in v0.7.1

func (o DeviceTemplateStatusSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type Job added in v0.6.2

type Job struct {
	ID                    string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Command               string    `boil:"command" json:"command" toml:"command" yaml:"command"`
	Status                string    `boil:"status" json:"status" toml:"status" yaml:"status"`
	Metadata              null.JSON `boil:"metadata" json:"metadata,omitempty" toml:"metadata" yaml:"metadata,omitempty"`
	DeviceEthereumAddress []byte    `boil:"device_ethereum_address" json:"device_ethereum_address" toml:"device_ethereum_address" yaml:"device_ethereum_address"`
	LastExecution         null.Time `boil:"last_execution" json:"last_execution,omitempty" toml:"last_execution" yaml:"last_execution,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 *jobR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L jobL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Job is an object representing the database table.

func FindJob added in v0.6.2

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

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

func (*Job) Delete added in v0.6.2

func (o *Job) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*Job) Exists added in v0.6.4

func (o *Job) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Job row exists.

func (*Job) Insert added in v0.6.2

func (o *Job) 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 (*Job) Reload added in v0.6.2

func (o *Job) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*Job) Update added in v0.6.2

func (o *Job) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

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

func (o *Job) 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 JobHook added in v0.6.2

type JobHook func(context.Context, boil.ContextExecutor, *Job) error

JobHook is the signature for custom Job hook methods

type JobSlice added in v0.6.2

type JobSlice []*Job

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

func (JobSlice) DeleteAll added in v0.6.2

func (o JobSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*JobSlice) ReloadAll added in v0.6.2

func (o *JobSlice) 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 (JobSlice) UpdateAll added in v0.6.2

func (o JobSlice) 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 PidConfig added in v0.2.4

type PidConfig struct {
	ID                   int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	TemplateName         string      `boil:"template_name" json:"template_name" toml:"template_name" yaml:"template_name"`
	Header               []byte      `boil:"header" json:"header" toml:"header" yaml:"header"`
	Mode                 []byte      `boil:"mode" json:"mode" toml:"mode" yaml:"mode"`
	Pid                  []byte      `boil:"pid" json:"pid" toml:"pid" yaml:"pid"`
	Formula              string      `boil:"formula" json:"formula" toml:"formula" yaml:"formula"`
	IntervalSeconds      int         `boil:"interval_seconds" json:"interval_seconds" toml:"interval_seconds" yaml:"interval_seconds"`
	Protocol             null.String `boil:"protocol" json:"protocol,omitempty" toml:"protocol" yaml:"protocol,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"`
	SignalName           string      `boil:"signal_name" json:"signal_name" toml:"signal_name" yaml:"signal_name"`
	CanFlowControlClear  null.Bool   `` /* 139-byte string literal not displayed */
	CanFlowControlIDPair null.String `` /* 147-byte string literal not displayed */

	R *pidConfigR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L pidConfigL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PidConfig is an object representing the database table.

func FindPidConfig added in v0.2.4

func FindPidConfig(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*PidConfig, error)

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

func (*PidConfig) Delete added in v0.2.4

func (o *PidConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*PidConfig) Exists added in v0.2.4

func (o *PidConfig) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the PidConfig row exists.

func (*PidConfig) Insert added in v0.2.4

func (o *PidConfig) 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 (*PidConfig) Reload added in v0.2.4

func (o *PidConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*PidConfig) SetTemplateNameTemplate added in v0.2.4

func (o *PidConfig) SetTemplateNameTemplate(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Template) error

SetTemplateNameTemplate of the pidConfig to the related item. Sets o.R.TemplateNameTemplate to related. Adds o to related.R.TemplateNamePidConfigs.

func (*PidConfig) TemplateNameTemplate added in v0.2.4

func (o *PidConfig) TemplateNameTemplate(mods ...qm.QueryMod) templateQuery

TemplateNameTemplate pointed to by the foreign key.

func (*PidConfig) Update added in v0.2.4

func (o *PidConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

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

func (o *PidConfig) 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 PidConfigHook added in v0.2.4

type PidConfigHook func(context.Context, boil.ContextExecutor, *PidConfig) error

PidConfigHook is the signature for custom PidConfig hook methods

type PidConfigSlice added in v0.2.4

type PidConfigSlice []*PidConfig

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

func (PidConfigSlice) DeleteAll added in v0.2.4

func (o PidConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*PidConfigSlice) ReloadAll added in v0.2.4

func (o *PidConfigSlice) 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 (PidConfigSlice) UpdateAll added in v0.2.4

func (o PidConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type Template added in v0.2.4

type Template struct {
	TemplateName       string      `boil:"template_name" json:"template_name" toml:"template_name" yaml:"template_name"`
	ParentTemplateName null.String `` /* 131-byte string literal not displayed */
	Version            string      `boil:"version" json:"version" toml:"version" yaml:"version"`
	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"`
	Protocol           string      `boil:"protocol" json:"protocol" toml:"protocol" yaml:"protocol"`
	Powertrain         string      `boil:"powertrain" json:"powertrain" toml:"powertrain" yaml:"powertrain"`

	R *templateR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L templateL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Template is an object representing the database table.

func FindTemplate added in v0.2.4

func FindTemplate(ctx context.Context, exec boil.ContextExecutor, templateName string, selectCols ...string) (*Template, error)

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

func (*Template) AddTemplateNameDeviceSettings added in v0.6.4

func (o *Template) AddTemplateNameDeviceSettings(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DeviceSetting) error

AddTemplateNameDeviceSettings adds the given related objects to the existing relationships of the template, optionally inserting them as new records. Appends related to o.R.TemplateNameDeviceSettings. Sets related.R.TemplateNameTemplate appropriately.

func (*Template) AddTemplateNamePidConfigs added in v0.2.4

func (o *Template) AddTemplateNamePidConfigs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PidConfig) error

AddTemplateNamePidConfigs adds the given related objects to the existing relationships of the template, optionally inserting them as new records. Appends related to o.R.TemplateNamePidConfigs. Sets related.R.TemplateNameTemplate appropriately.

func (*Template) AddTemplateNameTemplateDeviceDefinitions added in v0.5.7

func (o *Template) AddTemplateNameTemplateDeviceDefinitions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*TemplateDeviceDefinition) error

AddTemplateNameTemplateDeviceDefinitions adds the given related objects to the existing relationships of the template, optionally inserting them as new records. Appends related to o.R.TemplateNameTemplateDeviceDefinitions. Sets related.R.TemplateNameTemplate appropriately.

func (*Template) AddTemplateNameTemplateVehicles added in v0.2.4

func (o *Template) AddTemplateNameTemplateVehicles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*TemplateVehicle) error

AddTemplateNameTemplateVehicles adds the given related objects to the existing relationships of the template, optionally inserting them as new records. Appends related to o.R.TemplateNameTemplateVehicles. Sets related.R.TemplateNameTemplate appropriately.

func (*Template) Delete added in v0.2.4

func (o *Template) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*Template) Exists added in v0.2.4

func (o *Template) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Template row exists.

func (*Template) Insert added in v0.2.4

func (o *Template) 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 (*Template) Reload added in v0.2.4

func (o *Template) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*Template) RemoveTemplateNameDeviceSettings added in v0.6.4

func (o *Template) RemoveTemplateNameDeviceSettings(ctx context.Context, exec boil.ContextExecutor, related ...*DeviceSetting) error

RemoveTemplateNameDeviceSettings relationships from objects passed in. Removes related items from R.TemplateNameDeviceSettings (uses pointer comparison, removal does not keep order) Sets related.R.TemplateNameTemplate.

func (*Template) SetTemplateNameDBCFile added in v0.2.4

func (o *Template) SetTemplateNameDBCFile(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DBCFile) error

SetTemplateNameDBCFile of the template to the related item. Sets o.R.TemplateNameDBCFile to related. Adds o to related.R.TemplateNameTemplate.

func (*Template) SetTemplateNameDeviceSettings added in v0.6.4

func (o *Template) SetTemplateNameDeviceSettings(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DeviceSetting) error

SetTemplateNameDeviceSettings removes all previously related items of the template replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.TemplateNameTemplate's TemplateNameDeviceSettings accordingly. Replaces o.R.TemplateNameDeviceSettings with related. Sets related.R.TemplateNameTemplate's TemplateNameDeviceSettings accordingly.

func (*Template) TemplateNameDBCFile added in v0.2.4

func (o *Template) TemplateNameDBCFile(mods ...qm.QueryMod) dbcFileQuery

TemplateNameDBCFile pointed to by the foreign key.

func (*Template) TemplateNameDeviceSettings added in v0.6.4

func (o *Template) TemplateNameDeviceSettings(mods ...qm.QueryMod) deviceSettingQuery

TemplateNameDeviceSettings retrieves all the device_setting's DeviceSettings with an executor via template_name column.

func (*Template) TemplateNamePidConfigs added in v0.2.4

func (o *Template) TemplateNamePidConfigs(mods ...qm.QueryMod) pidConfigQuery

TemplateNamePidConfigs retrieves all the pid_config's PidConfigs with an executor via template_name column.

func (*Template) TemplateNameTemplateDeviceDefinitions added in v0.5.7

func (o *Template) TemplateNameTemplateDeviceDefinitions(mods ...qm.QueryMod) templateDeviceDefinitionQuery

TemplateNameTemplateDeviceDefinitions retrieves all the template_device_definition's TemplateDeviceDefinitions with an executor via template_name column.

func (*Template) TemplateNameTemplateVehicles added in v0.2.4

func (o *Template) TemplateNameTemplateVehicles(mods ...qm.QueryMod) templateVehicleQuery

TemplateNameTemplateVehicles retrieves all the template_vehicle's TemplateVehicles with an executor via template_name column.

func (*Template) Update added in v0.2.4

func (o *Template) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

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

func (o *Template) 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 TemplateDeviceDefinition added in v0.5.7

type TemplateDeviceDefinition struct {
	ID                 int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	DeviceDefinitionID string      `boil:"device_definition_id" json:"device_definition_id" toml:"device_definition_id" yaml:"device_definition_id"`
	DeviceStyleID      null.String `boil:"device_style_id" json:"device_style_id,omitempty" toml:"device_style_id" yaml:"device_style_id,omitempty"`
	TemplateName       string      `boil:"template_name" json:"template_name" toml:"template_name" yaml:"template_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 *templateDeviceDefinitionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L templateDeviceDefinitionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

TemplateDeviceDefinition is an object representing the database table.

func FindTemplateDeviceDefinition added in v0.5.7

func FindTemplateDeviceDefinition(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*TemplateDeviceDefinition, error)

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

func (*TemplateDeviceDefinition) Delete added in v0.5.7

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

func (*TemplateDeviceDefinition) Exists added in v0.5.7

Exists checks if the TemplateDeviceDefinition row exists.

func (*TemplateDeviceDefinition) Insert added in v0.5.7

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

func (*TemplateDeviceDefinition) Reload added in v0.5.7

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

func (*TemplateDeviceDefinition) SetTemplateNameTemplate added in v0.5.7

func (o *TemplateDeviceDefinition) SetTemplateNameTemplate(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Template) error

SetTemplateNameTemplate of the templateDeviceDefinition to the related item. Sets o.R.TemplateNameTemplate to related. Adds o to related.R.TemplateNameTemplateDeviceDefinitions.

func (*TemplateDeviceDefinition) TemplateNameTemplate added in v0.5.7

func (o *TemplateDeviceDefinition) TemplateNameTemplate(mods ...qm.QueryMod) templateQuery

TemplateNameTemplate pointed to by the foreign key.

func (*TemplateDeviceDefinition) Update added in v0.5.7

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

func (o *TemplateDeviceDefinition) 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 TemplateDeviceDefinitionHook added in v0.5.7

type TemplateDeviceDefinitionHook func(context.Context, boil.ContextExecutor, *TemplateDeviceDefinition) error

TemplateDeviceDefinitionHook is the signature for custom TemplateDeviceDefinition hook methods

type TemplateDeviceDefinitionSlice added in v0.5.7

type TemplateDeviceDefinitionSlice []*TemplateDeviceDefinition

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

func (TemplateDeviceDefinitionSlice) DeleteAll added in v0.5.7

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

func (*TemplateDeviceDefinitionSlice) ReloadAll added in v0.5.7

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

func (TemplateDeviceDefinitionSlice) UpdateAll added in v0.5.7

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

type TemplateHook added in v0.2.4

type TemplateHook func(context.Context, boil.ContextExecutor, *Template) error

TemplateHook is the signature for custom Template hook methods

type TemplateSlice added in v0.2.4

type TemplateSlice []*Template

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

func (TemplateSlice) DeleteAll added in v0.2.4

func (o TemplateSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*TemplateSlice) ReloadAll added in v0.2.4

func (o *TemplateSlice) 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 (TemplateSlice) UpdateAll added in v0.2.4

func (o TemplateSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type TemplateVehicle added in v0.2.4

type TemplateVehicle struct {
	MakeSlug       null.String       `boil:"make_slug" json:"make_slug,omitempty" toml:"make_slug" yaml:"make_slug,omitempty"`
	TemplateName   string            `boil:"template_name" json:"template_name" toml:"template_name" yaml:"template_name"`
	YearStart      int               `boil:"year_start" json:"year_start" toml:"year_start" yaml:"year_start"`
	YearEnd        int               `boil:"year_end" json:"year_end" toml:"year_end" yaml:"year_end"`
	ModelWhitelist types.StringArray `boil:"model_whitelist" json:"model_whitelist,omitempty" toml:"model_whitelist" yaml:"model_whitelist,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"`
	ID             int               `boil:"id" json:"id" toml:"id" yaml:"id"`

	R *templateVehicleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L templateVehicleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

TemplateVehicle is an object representing the database table.

func FindTemplateVehicle added in v0.2.4

func FindTemplateVehicle(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*TemplateVehicle, error)

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

func (*TemplateVehicle) Delete added in v0.2.4

func (o *TemplateVehicle) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*TemplateVehicle) Exists added in v0.2.4

func (o *TemplateVehicle) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the TemplateVehicle row exists.

func (*TemplateVehicle) Insert added in v0.2.4

func (o *TemplateVehicle) 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 (*TemplateVehicle) Reload added in v0.2.4

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

func (*TemplateVehicle) SetTemplateNameTemplate added in v0.2.4

func (o *TemplateVehicle) SetTemplateNameTemplate(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Template) error

SetTemplateNameTemplate of the templateVehicle to the related item. Sets o.R.TemplateNameTemplate to related. Adds o to related.R.TemplateNameTemplateVehicles.

func (*TemplateVehicle) TemplateNameTemplate added in v0.2.4

func (o *TemplateVehicle) TemplateNameTemplate(mods ...qm.QueryMod) templateQuery

TemplateNameTemplate pointed to by the foreign key.

func (*TemplateVehicle) Update added in v0.2.4

func (o *TemplateVehicle) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

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

func (o *TemplateVehicle) 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 TemplateVehicleHook added in v0.2.4

type TemplateVehicleHook func(context.Context, boil.ContextExecutor, *TemplateVehicle) error

TemplateVehicleHook is the signature for custom TemplateVehicle hook methods

type TemplateVehicleSlice added in v0.2.4

type TemplateVehicleSlice []*TemplateVehicle

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

func (TemplateVehicleSlice) DeleteAll added in v0.2.4

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

func (*TemplateVehicleSlice) ReloadAll added in v0.2.4

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

func (TemplateVehicleSlice) UpdateAll added in v0.2.4

func (o TemplateVehicleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type TestSignal

type TestSignal struct {
	ID                 string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	DeviceDefinitionID string    `boil:"device_definition_id" json:"device_definition_id" toml:"device_definition_id" yaml:"device_definition_id"`
	DBCCodesID         string    `boil:"dbc_codes_id" json:"dbc_codes_id" toml:"dbc_codes_id" yaml:"dbc_codes_id"`
	UserDeviceID       string    `boil:"user_device_id" json:"user_device_id" toml:"user_device_id" yaml:"user_device_id"`
	AutopiUnitID       string    `boil:"autopi_unit_id" json:"autopi_unit_id" toml:"autopi_unit_id" yaml:"autopi_unit_id"`
	Value              string    `boil:"value" json:"value" toml:"value" yaml:"value"`
	Approved           bool      `boil:"approved" json:"approved" toml:"approved" yaml:"approved"`
	VehicleTimestamp   time.Time `boil:"vehicle_timestamp" json:"vehicle_timestamp" toml:"vehicle_timestamp" yaml:"vehicle_timestamp"`
	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"`
	Signals            null.JSON `boil:"signals" json:"signals,omitempty" toml:"signals" yaml:"signals,omitempty"`

	R *testSignalR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L testSignalL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

TestSignal is an object representing the database table.

func FindTestSignal

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

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

func (*TestSignal) DBCCode

func (o *TestSignal) DBCCode(mods ...qm.QueryMod) dbcCodeQuery

DBCCode pointed to by the foreign key.

func (*TestSignal) Delete

func (o *TestSignal) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*TestSignal) Exists added in v0.2.4

func (o *TestSignal) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the TestSignal row exists.

func (*TestSignal) Insert

func (o *TestSignal) 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 (*TestSignal) Reload

func (o *TestSignal) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*TestSignal) SetDBCCode

func (o *TestSignal) SetDBCCode(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DBCCode) error

SetDBCCode of the testSignal to the related item. Sets o.R.DBCCode to related. Adds o to related.R.TestSignals.

func (*TestSignal) Update

func (o *TestSignal) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the TestSignal. 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 (*TestSignal) Upsert

func (o *TestSignal) 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 TestSignalHook

type TestSignalHook func(context.Context, boil.ContextExecutor, *TestSignal) error

TestSignalHook is the signature for custom TestSignal hook methods

type TestSignalSlice

type TestSignalSlice []*TestSignal

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

func (TestSignalSlice) DeleteAll

func (o TestSignalSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*TestSignalSlice) ReloadAll

func (o *TestSignalSlice) 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 (TestSignalSlice) UpdateAll

func (o TestSignalSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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