Documentation ¶
Index ¶
- Constants
- Variables
- func AddDBCCodeHook(hookPoint boil.HookPoint, dbcCodeHook DBCCodeHook)
- func AddDBCFileHook(hookPoint boil.HookPoint, dbcFileHook DBCFileHook)
- func AddDeviceSettingHook(hookPoint boil.HookPoint, deviceSettingHook DeviceSettingHook)
- func AddPidConfigHook(hookPoint boil.HookPoint, pidConfigHook PidConfigHook)
- func AddSerialToTemplateOverrideHook(hookPoint boil.HookPoint, ...)
- func AddTemplateDeviceDefinitionHook(hookPoint boil.HookPoint, ...)
- func AddTemplateHook(hookPoint boil.HookPoint, templateHook TemplateHook)
- func AddTemplateTypeHook(hookPoint boil.HookPoint, templateTypeHook TemplateTypeHook)
- func AddTemplateVehicleHook(hookPoint boil.HookPoint, templateVehicleHook TemplateVehicleHook)
- func AddTestSignalHook(hookPoint boil.HookPoint, testSignalHook TestSignalHook)
- func AllCanProtocolType() []string
- func AllTriggerEnum() []string
- func DBCCodeExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func DBCCodes(mods ...qm.QueryMod) dbcCodeQuery
- func DBCFileExists(ctx context.Context, exec boil.ContextExecutor, templateName string) (bool, error)
- func DBCFiles(mods ...qm.QueryMod) dbcFileQuery
- func DeviceSettingExists(ctx context.Context, exec boil.ContextExecutor, templateName string) (bool, error)
- func DeviceSettings(mods ...qm.QueryMod) deviceSettingQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func PidConfigExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func PidConfigs(mods ...qm.QueryMod) pidConfigQuery
- func SerialToTemplateOverrideExists(ctx context.Context, exec boil.ContextExecutor, serial string, ...) (bool, error)
- func SerialToTemplateOverrides(mods ...qm.QueryMod) serialToTemplateOverrideQuery
- func TemplateDeviceDefinitionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func TemplateDeviceDefinitions(mods ...qm.QueryMod) templateDeviceDefinitionQuery
- func TemplateExists(ctx context.Context, exec boil.ContextExecutor, templateName string) (bool, error)
- func TemplateTypeExists(ctx context.Context, exec boil.ContextExecutor, typeName string) (bool, error)
- func TemplateTypes(mods ...qm.QueryMod) templateTypeQuery
- func TemplateVehicleExists(ctx context.Context, exec boil.ContextExecutor, makeSlug string, yearStart int, ...) (bool, error)
- func TemplateVehicles(mods ...qm.QueryMod) templateVehicleQuery
- func Templates(mods ...qm.QueryMod) templateQuery
- func TestSignalExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func TestSignals(mods ...qm.QueryMod) testSignalQuery
- type DBCCode
- func (o *DBCCode) AddTestSignals(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *DBCCode) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DBCCode) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *DBCCode) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *DBCCode) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *DBCCode) TestSignals(mods ...qm.QueryMod) testSignalQuery
- func (o *DBCCode) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *DBCCode) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type DBCCodeHook
- type DBCCodeSlice
- type DBCFile
- func (o *DBCFile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DBCFile) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *DBCFile) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *DBCFile) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *DBCFile) SetTemplateNameTemplate(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Template) error
- func (o *DBCFile) TemplateNameTemplate(mods ...qm.QueryMod) templateQuery
- func (o *DBCFile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *DBCFile) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type DBCFileHook
- type DBCFileSlice
- type DeviceSetting
- func (o *DeviceSetting) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DeviceSetting) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *DeviceSetting) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *DeviceSetting) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *DeviceSetting) SetTemplateNameTemplate(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Template) error
- func (o *DeviceSetting) TemplateNameTemplate(mods ...qm.QueryMod) templateQuery
- func (o *DeviceSetting) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *DeviceSetting) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type DeviceSettingHook
- type DeviceSettingSlice
- func (o DeviceSettingSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DeviceSettingSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o DeviceSettingSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type M
- type PidConfig
- func (o *PidConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PidConfig) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *PidConfig) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PidConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PidConfig) SetTemplateNameTemplate(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Template) error
- func (o *PidConfig) TemplateNameTemplate(mods ...qm.QueryMod) templateQuery
- func (o *PidConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PidConfig) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type PidConfigHook
- type PidConfigSlice
- type SerialToTemplateOverride
- func (o *SerialToTemplateOverride) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SerialToTemplateOverride) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *SerialToTemplateOverride) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *SerialToTemplateOverride) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *SerialToTemplateOverride) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *SerialToTemplateOverride) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type SerialToTemplateOverrideHook
- type SerialToTemplateOverrideSlice
- func (o SerialToTemplateOverrideSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SerialToTemplateOverrideSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o SerialToTemplateOverrideSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Template
- func (o *Template) AddTemplateNamePidConfigs(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Template) AddTemplateNameTemplateDeviceDefinitions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Template) AddTemplateNameTemplateVehicles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Template) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Template) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Template) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Template) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Template) RemoveTemplateTemplateType(ctx context.Context, exec boil.ContextExecutor, related *TemplateType) error
- func (o *Template) SetTemplateNameDBCFile(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DBCFile) error
- func (o *Template) SetTemplateNameDeviceSetting(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Template) SetTemplateTemplateType(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Template) TemplateNameDBCFile(mods ...qm.QueryMod) dbcFileQuery
- func (o *Template) TemplateNameDeviceSetting(mods ...qm.QueryMod) deviceSettingQuery
- func (o *Template) TemplateNamePidConfigs(mods ...qm.QueryMod) pidConfigQuery
- func (o *Template) TemplateNameTemplateDeviceDefinitions(mods ...qm.QueryMod) templateDeviceDefinitionQuery
- func (o *Template) TemplateNameTemplateVehicles(mods ...qm.QueryMod) templateVehicleQuery
- func (o *Template) TemplateTemplateType(mods ...qm.QueryMod) templateTypeQuery
- func (o *Template) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Template) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type TemplateDeviceDefinition
- func (o *TemplateDeviceDefinition) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TemplateDeviceDefinition) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *TemplateDeviceDefinition) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TemplateDeviceDefinition) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TemplateDeviceDefinition) SetTemplateNameTemplate(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Template) error
- func (o *TemplateDeviceDefinition) TemplateNameTemplate(mods ...qm.QueryMod) templateQuery
- func (o *TemplateDeviceDefinition) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TemplateDeviceDefinition) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type TemplateDeviceDefinitionHook
- type TemplateDeviceDefinitionSlice
- func (o TemplateDeviceDefinitionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TemplateDeviceDefinitionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o TemplateDeviceDefinitionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type TemplateHook
- type TemplateSlice
- type TemplateType
- func (o *TemplateType) AddTemplates(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *TemplateType) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TemplateType) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *TemplateType) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TemplateType) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TemplateType) RemoveTemplates(ctx context.Context, exec boil.ContextExecutor, related ...*Template) error
- func (o *TemplateType) SetTemplates(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *TemplateType) Templates(mods ...qm.QueryMod) templateQuery
- func (o *TemplateType) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TemplateType) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type TemplateTypeHook
- type TemplateTypeSlice
- type TemplateVehicle
- func (o *TemplateVehicle) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TemplateVehicle) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *TemplateVehicle) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TemplateVehicle) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TemplateVehicle) SetTemplateNameTemplate(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Template) error
- func (o *TemplateVehicle) TemplateNameTemplate(mods ...qm.QueryMod) templateQuery
- func (o *TemplateVehicle) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TemplateVehicle) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type TemplateVehicleHook
- type TemplateVehicleSlice
- func (o TemplateVehicleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TemplateVehicleSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o TemplateVehicleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type TestSignal
- func (o *TestSignal) DBCCode(mods ...qm.QueryMod) dbcCodeQuery
- func (o *TestSignal) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TestSignal) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *TestSignal) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TestSignal) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TestSignal) SetDBCCode(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DBCCode) error
- func (o *TestSignal) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TestSignal) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type TestSignalHook
- type TestSignalSlice
Constants ¶
const ( TriggerEnumCAN string = "CAN" TriggerEnumPID string = "PID" )
Enum values for TriggerEnum
const ( CanProtocolTypeCAN11_500 string = "CAN11_500" CanProtocolTypeCAN29_500 string = "CAN29_500" )
Enum values for CanProtocolType
Variables ¶
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", }
var DBCCodeRels = struct { TestSignals string }{ TestSignals: "TestSignals", }
DBCCodeRels is where relationship names are stored.
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", }
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 */}, }
var DBCFileColumns = struct { DBCFile string TemplateName string CreatedAt string UpdatedAt string }{ DBCFile: "dbc_file", TemplateName: "template_name", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var DBCFileRels = struct { TemplateNameTemplate string }{ TemplateNameTemplate: "TemplateNameTemplate", }
DBCFileRels is where relationship names are stored.
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", }
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 */}, }
var DeviceSettingColumns = struct { ID string TemplateName string BatteryCriticalLevelVoltage string SafetyCutOutVoltage string SleepTimerEventDrivenInterval string SleepTimerEventDrivenPeriod string SleepTimerInactivityAfterSleepInterval string SleepTimerInactivityFallbackInterval string WakeTriggerVoltageLevel string CreatedAt string UpdatedAt string }{ ID: "id", TemplateName: "template_name", BatteryCriticalLevelVoltage: "battery_critical_level_voltage", SafetyCutOutVoltage: "safety_cut_out_voltage", SleepTimerEventDrivenInterval: "sleep_timer_event_driven_interval", SleepTimerEventDrivenPeriod: "sleep_timer_event_driven_period", SleepTimerInactivityAfterSleepInterval: "sleep_timer_inactivity_after_sleep_interval", SleepTimerInactivityFallbackInterval: "sleep_timer_inactivity_fallback_interval", WakeTriggerVoltageLevel: "wake_trigger_voltage_level", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var DeviceSettingRels = struct { TemplateNameTemplate string }{ TemplateNameTemplate: "TemplateNameTemplate", }
DeviceSettingRels is where relationship names are stored.
var DeviceSettingTableColumns = struct { ID string TemplateName string BatteryCriticalLevelVoltage string SafetyCutOutVoltage string SleepTimerEventDrivenInterval string SleepTimerEventDrivenPeriod string SleepTimerInactivityAfterSleepInterval string SleepTimerInactivityFallbackInterval string WakeTriggerVoltageLevel string CreatedAt string UpdatedAt string }{ ID: "device_settings.id", TemplateName: "device_settings.template_name", BatteryCriticalLevelVoltage: "device_settings.battery_critical_level_voltage", SafetyCutOutVoltage: "device_settings.safety_cut_out_voltage", SleepTimerEventDrivenInterval: "device_settings.sleep_timer_event_driven_interval", SleepTimerEventDrivenPeriod: "device_settings.sleep_timer_event_driven_period", SleepTimerInactivityAfterSleepInterval: "device_settings.sleep_timer_inactivity_after_sleep_interval", SleepTimerInactivityFallbackInterval: "device_settings.sleep_timer_inactivity_fallback_interval", WakeTriggerVoltageLevel: "device_settings.wake_trigger_voltage_level", CreatedAt: "device_settings.created_at", UpdatedAt: "device_settings.updated_at", }
var DeviceSettingWhere = struct { ID whereHelperint64 TemplateName whereHelperstring BatteryCriticalLevelVoltage whereHelperfloat64 SafetyCutOutVoltage whereHelperfloat64 SleepTimerEventDrivenInterval whereHelperfloat64 SleepTimerEventDrivenPeriod whereHelperfloat64 SleepTimerInactivityAfterSleepInterval whereHelperfloat64 SleepTimerInactivityFallbackInterval whereHelperfloat64 WakeTriggerVoltageLevel whereHelperfloat64 CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, TemplateName: whereHelperstring{/* contains filtered or unexported fields */}, BatteryCriticalLevelVoltage: whereHelperfloat64{/* contains filtered or unexported fields */}, SafetyCutOutVoltage: whereHelperfloat64{/* contains filtered or unexported fields */}, SleepTimerEventDrivenInterval: whereHelperfloat64{/* contains filtered or unexported fields */}, SleepTimerEventDrivenPeriod: whereHelperfloat64{/* contains filtered or unexported fields */}, SleepTimerInactivityAfterSleepInterval: whereHelperfloat64{/* contains filtered or unexported fields */}, SleepTimerInactivityFallbackInterval: whereHelperfloat64{/* contains filtered or unexported fields */}, WakeTriggerVoltageLevel: whereHelperfloat64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var PidConfigColumns = struct { ID string TemplateName string Header string Mode string Pid string Formula string IntervalSeconds string Protocol string CreatedAt string UpdatedAt string SignalName string BytesReturned string MessageColumnPosition 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", BytesReturned: "bytes_returned", MessageColumnPosition: "message_column_position", }
var PidConfigRels = struct { TemplateNameTemplate string }{ TemplateNameTemplate: "TemplateNameTemplate", }
PidConfigRels is where relationship names are stored.
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 BytesReturned string MessageColumnPosition 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", BytesReturned: "pid_configs.bytes_returned", MessageColumnPosition: "pid_configs.message_column_position", }
var PidConfigWhere = struct { ID whereHelperint64 TemplateName whereHelperstring Header whereHelper__byte Mode whereHelper__byte Pid whereHelper__byte Formula whereHelperstring IntervalSeconds whereHelperint Protocol whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time SignalName whereHelperstring BytesReturned whereHelpernull_Int16 MessageColumnPosition whereHelpernull_Int }{ 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: whereHelperstring{/* 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 */}, BytesReturned: whereHelpernull_Int16{/* contains filtered or unexported fields */}, MessageColumnPosition: whereHelpernull_Int{/* contains filtered or unexported fields */}, }
var SerialToTemplateOverrideColumns = struct { Serial string TemplateName string CreatedAt string UpdatedAt string }{ Serial: "serial", TemplateName: "template_name", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var SerialToTemplateOverrideRels = struct {
}{}
SerialToTemplateOverrideRels is where relationship names are stored.
var SerialToTemplateOverrideTableColumns = struct { Serial string TemplateName string CreatedAt string UpdatedAt string }{ Serial: "serial_to_template_overrides.serial", TemplateName: "serial_to_template_overrides.template_name", CreatedAt: "serial_to_template_overrides.created_at", UpdatedAt: "serial_to_template_overrides.updated_at", }
var SerialToTemplateOverrideWhere = struct { Serial whereHelperstring TemplateName whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ Serial: 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 */}, }
var TableNames = struct { DBCCodes string DBCFiles string DeviceSettings string PidConfigs string SerialToTemplateOverrides string TemplateDeviceDefinitions string TemplateTypes string TemplateVehicles string Templates string TestSignals string }{ DBCCodes: "dbc_codes", DBCFiles: "dbc_files", DeviceSettings: "device_settings", PidConfigs: "pid_configs", SerialToTemplateOverrides: "serial_to_template_overrides", TemplateDeviceDefinitions: "template_device_definitions", TemplateTypes: "template_types", TemplateVehicles: "template_vehicles", Templates: "templates", TestSignals: "test_signals", }
var TemplateColumns = struct { TemplateName string ParentTemplateName string TemplateType string Version string CreatedAt string UpdatedAt string Protocol string Powertrain string }{ TemplateName: "template_name", ParentTemplateName: "parent_template_name", TemplateType: "template_type", Version: "version", CreatedAt: "created_at", UpdatedAt: "updated_at", Protocol: "protocol", Powertrain: "powertrain", }
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", }
var TemplateDeviceDefinitionRels = struct { TemplateNameTemplate string }{ TemplateNameTemplate: "TemplateNameTemplate", }
TemplateDeviceDefinitionRels is where relationship names are stored.
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", }
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 */}, }
var TemplateRels = struct { TemplateTemplateType string TemplateNameDBCFile string TemplateNameDeviceSetting string TemplateNamePidConfigs string TemplateNameTemplateDeviceDefinitions string TemplateNameTemplateVehicles string }{ TemplateTemplateType: "TemplateTemplateType", TemplateNameDBCFile: "TemplateNameDBCFile", TemplateNameDeviceSetting: "TemplateNameDeviceSetting", TemplateNamePidConfigs: "TemplateNamePidConfigs", TemplateNameTemplateDeviceDefinitions: "TemplateNameTemplateDeviceDefinitions", TemplateNameTemplateVehicles: "TemplateNameTemplateVehicles", }
TemplateRels is where relationship names are stored.
var TemplateTableColumns = struct { TemplateName string ParentTemplateName string TemplateType string Version string CreatedAt string UpdatedAt string Protocol string Powertrain string }{ TemplateName: "templates.template_name", ParentTemplateName: "templates.parent_template_name", TemplateType: "templates.template_type", Version: "templates.version", CreatedAt: "templates.created_at", UpdatedAt: "templates.updated_at", Protocol: "templates.protocol", Powertrain: "templates.powertrain", }
var TemplateTypeColumns = struct { TypeName string CreatedAt string UpdatedAt string }{ TypeName: "type_name", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TemplateTypeRels = struct { Templates string }{ Templates: "Templates", }
TemplateTypeRels is where relationship names are stored.
var TemplateTypeTableColumns = struct { TypeName string CreatedAt string UpdatedAt string }{ TypeName: "template_types.type_name", CreatedAt: "template_types.created_at", UpdatedAt: "template_types.updated_at", }
var TemplateTypeWhere = struct { TypeName whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ TypeName: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var TemplateVehicleColumns = struct { MakeSlug string TemplateName string YearStart string YearEnd string ModelWhitelist string CreatedAt string UpdatedAt string }{ MakeSlug: "make_slug", TemplateName: "template_name", YearStart: "year_start", YearEnd: "year_end", ModelWhitelist: "model_whitelist", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TemplateVehicleRels = struct { TemplateNameTemplate string }{ TemplateNameTemplate: "TemplateNameTemplate", }
TemplateVehicleRels is where relationship names are stored.
var TemplateVehicleTableColumns = struct { MakeSlug string TemplateName string YearStart string YearEnd string ModelWhitelist string CreatedAt string UpdatedAt 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", }
var TemplateVehicleWhere = struct { MakeSlug whereHelperstring TemplateName whereHelperstring YearStart whereHelperint YearEnd whereHelperint ModelWhitelist whereHelpertypes_StringArray CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ MakeSlug: whereHelperstring{/* 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 */}, }
var TemplateWhere = struct { TemplateName whereHelperstring ParentTemplateName whereHelpernull_String TemplateType 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 */}, TemplateType: 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 */}, }
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", }
var TestSignalRels = struct { DBCCode string }{ DBCCode: "DBCCode", }
TestSignalRels is where relationship names are stored.
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", }
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 */}, }
var ViewNames = struct {
}{}
Functions ¶
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 AddPidConfigHook ¶ added in v0.2.4
func AddPidConfigHook(hookPoint boil.HookPoint, pidConfigHook PidConfigHook)
AddPidConfigHook registers your hook function for all future operations.
func AddSerialToTemplateOverrideHook ¶ added in v0.2.4
func AddSerialToTemplateOverrideHook(hookPoint boil.HookPoint, serialToTemplateOverrideHook SerialToTemplateOverrideHook)
AddSerialToTemplateOverrideHook 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 AddTemplateTypeHook ¶ added in v0.2.4
func AddTemplateTypeHook(hookPoint boil.HookPoint, templateTypeHook TemplateTypeHook)
AddTemplateTypeHook 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 AllCanProtocolType ¶ added in v0.2.6
func AllCanProtocolType() []string
func AllTriggerEnum ¶ added in v0.1.3
func AllTriggerEnum() []string
func DBCCodeExists ¶
DBCCodeExists checks if the DBCCode row exists.
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 DeviceSettingExists ¶ added in v0.2.4
func DeviceSettingExists(ctx context.Context, exec boil.ContextExecutor, templateName string) (bool, error)
DeviceSettingExists checks if the DeviceSetting row exists.
func DeviceSettings ¶ added in v0.2.4
DeviceSettings retrieves all the records using an executor.
func PidConfigExists ¶ added in v0.2.4
PidConfigExists checks if the PidConfig row exists.
func PidConfigs ¶ added in v0.2.4
PidConfigs retrieves all the records using an executor.
func SerialToTemplateOverrideExists ¶ added in v0.2.4
func SerialToTemplateOverrideExists(ctx context.Context, exec boil.ContextExecutor, serial string, templateName string) (bool, error)
SerialToTemplateOverrideExists checks if the SerialToTemplateOverride row exists.
func SerialToTemplateOverrides ¶ added in v0.2.4
SerialToTemplateOverrides 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
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 TemplateTypeExists ¶ added in v0.2.4
func TemplateTypeExists(ctx context.Context, exec boil.ContextExecutor, typeName string) (bool, error)
TemplateTypeExists checks if the TemplateType row exists.
func TemplateTypes ¶ added in v0.2.4
TemplateTypes retrieves all the records using an executor.
func TemplateVehicleExists ¶ added in v0.2.4
func TemplateVehicleExists(ctx context.Context, exec boil.ContextExecutor, makeSlug string, yearStart int, yearEnd int) (bool, error)
TemplateVehicleExists checks if the TemplateVehicle row exists.
func TemplateVehicles ¶ added in v0.2.4
TemplateVehicles retrieves all the records using an executor.
func TestSignalExists ¶
TestSignalExists checks if the TestSignal row exists.
func TestSignals ¶
TestSignals retrieves all the records using an executor.
Types ¶
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 ¶
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) 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 ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*DBCCode) TestSignals ¶
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 ¶
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
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) 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
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
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
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 { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` TemplateName string `boil:"template_name" json:"template_name" toml:"template_name" yaml:"template_name"` BatteryCriticalLevelVoltage float64 `` /* 151-byte string literal not displayed */ SafetyCutOutVoltage float64 `boil:"safety_cut_out_voltage" json:"safety_cut_out_voltage" toml:"safety_cut_out_voltage" yaml:"safety_cut_out_voltage"` SleepTimerEventDrivenInterval float64 `` /* 163-byte string literal not displayed */ SleepTimerEventDrivenPeriod float64 `` /* 155-byte string literal not displayed */ SleepTimerInactivityAfterSleepInterval float64 `` /* 203-byte string literal not displayed */ SleepTimerInactivityFallbackInterval float64 `` /* 191-byte string literal not displayed */ WakeTriggerVoltageLevel float64 `` /* 135-byte string literal not displayed */ CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *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, templateName 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) 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.TemplateNameDeviceSetting.
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 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 string `boil:"protocol" json:"protocol" toml:"protocol" yaml:"protocol"` 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"` BytesReturned null.Int16 `boil:"bytes_returned" json:"bytes_returned,omitempty" toml:"bytes_returned" yaml:"bytes_returned,omitempty"` MessageColumnPosition null.Int `` /* 143-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
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) 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
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
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
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 SerialToTemplateOverride ¶ added in v0.2.4
type SerialToTemplateOverride struct { Serial string `boil:"serial" json:"serial" toml:"serial" yaml:"serial"` 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 *serialToTemplateOverrideR `boil:"-" json:"-" toml:"-" yaml:"-"` L serialToTemplateOverrideL `boil:"-" json:"-" toml:"-" yaml:"-"` }
SerialToTemplateOverride is an object representing the database table.
func FindSerialToTemplateOverride ¶ added in v0.2.4
func FindSerialToTemplateOverride(ctx context.Context, exec boil.ContextExecutor, serial string, templateName string, selectCols ...string) (*SerialToTemplateOverride, error)
FindSerialToTemplateOverride retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*SerialToTemplateOverride) Delete ¶ added in v0.2.4
func (o *SerialToTemplateOverride) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single SerialToTemplateOverride record with an executor. Delete will match against the primary key column to find the record to delete.
func (*SerialToTemplateOverride) Exists ¶ added in v0.2.4
func (o *SerialToTemplateOverride) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the SerialToTemplateOverride row exists.
func (*SerialToTemplateOverride) Insert ¶ added in v0.2.4
func (o *SerialToTemplateOverride) 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 (*SerialToTemplateOverride) Reload ¶ added in v0.2.4
func (o *SerialToTemplateOverride) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*SerialToTemplateOverride) Update ¶ added in v0.2.4
func (o *SerialToTemplateOverride) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the SerialToTemplateOverride. 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 (*SerialToTemplateOverride) Upsert ¶ added in v0.2.4
func (o *SerialToTemplateOverride) 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 SerialToTemplateOverrideHook ¶ added in v0.2.4
type SerialToTemplateOverrideHook func(context.Context, boil.ContextExecutor, *SerialToTemplateOverride) error
SerialToTemplateOverrideHook is the signature for custom SerialToTemplateOverride hook methods
type SerialToTemplateOverrideSlice ¶ added in v0.2.4
type SerialToTemplateOverrideSlice []*SerialToTemplateOverride
SerialToTemplateOverrideSlice is an alias for a slice of pointers to SerialToTemplateOverride. This should almost always be used instead of []SerialToTemplateOverride.
func (SerialToTemplateOverrideSlice) DeleteAll ¶ added in v0.2.4
func (o SerialToTemplateOverrideSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*SerialToTemplateOverrideSlice) ReloadAll ¶ added in v0.2.4
func (o *SerialToTemplateOverrideSlice) 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 (SerialToTemplateOverrideSlice) UpdateAll ¶ added in v0.2.4
func (o SerialToTemplateOverrideSlice) 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 */ TemplateType null.String `boil:"template_type" json:"template_type,omitempty" toml:"template_type" yaml:"template_type,omitempty"` 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) 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
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) 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
Reload refetches the object from the database using the primary keys with an executor.
func (*Template) RemoveTemplateTemplateType ¶ added in v0.2.4
func (o *Template) RemoveTemplateTemplateType(ctx context.Context, exec boil.ContextExecutor, related *TemplateType) error
RemoveTemplateTemplateType relationship. Sets o.R.TemplateTemplateType to nil. Removes o from all passed in related items' relationships struct.
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) SetTemplateNameDeviceSetting ¶ added in v0.2.4
func (o *Template) SetTemplateNameDeviceSetting(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeviceSetting) error
SetTemplateNameDeviceSetting of the template to the related item. Sets o.R.TemplateNameDeviceSetting to related. Adds o to related.R.TemplateNameTemplate.
func (*Template) SetTemplateTemplateType ¶ added in v0.2.4
func (o *Template) SetTemplateTemplateType(ctx context.Context, exec boil.ContextExecutor, insert bool, related *TemplateType) error
SetTemplateTemplateType of the template to the related item. Sets o.R.TemplateTemplateType to related. Adds o to related.R.Templates.
func (*Template) TemplateNameDBCFile ¶ added in v0.2.4
TemplateNameDBCFile pointed to by the foreign key.
func (*Template) TemplateNameDeviceSetting ¶ added in v0.2.4
TemplateNameDeviceSetting pointed to by the foreign key.
func (*Template) TemplateNamePidConfigs ¶ added in v0.2.4
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
TemplateNameTemplateVehicles retrieves all the template_vehicle's TemplateVehicles with an executor via template_name column.
func (*Template) TemplateTemplateType ¶ added in v0.2.4
TemplateTemplateType pointed to by the foreign key.
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
func (o *TemplateDeviceDefinition) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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
func (o *TemplateDeviceDefinition) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the TemplateDeviceDefinition row exists.
func (*TemplateDeviceDefinition) Insert ¶ added in v0.5.7
func (o *TemplateDeviceDefinition) 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 (*TemplateDeviceDefinition) Reload ¶ added in v0.5.7
func (o *TemplateDeviceDefinition) Reload(ctx context.Context, exec boil.ContextExecutor) error
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
func (o *TemplateDeviceDefinition) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
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
func (o TemplateDeviceDefinitionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TemplateDeviceDefinitionSlice) ReloadAll ¶ added in v0.5.7
func (o *TemplateDeviceDefinitionSlice) 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 (TemplateDeviceDefinitionSlice) UpdateAll ¶ added in v0.5.7
func (o TemplateDeviceDefinitionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type TemplateHook ¶ added in v0.2.4
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 TemplateType ¶ added in v0.2.4
type TemplateType struct { TypeName string `boil:"type_name" json:"type_name" toml:"type_name" yaml:"type_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 *templateTypeR `boil:"-" json:"-" toml:"-" yaml:"-"` L templateTypeL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TemplateType is an object representing the database table.
func FindTemplateType ¶ added in v0.2.4
func FindTemplateType(ctx context.Context, exec boil.ContextExecutor, typeName string, selectCols ...string) (*TemplateType, error)
FindTemplateType retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*TemplateType) AddTemplates ¶ added in v0.2.4
func (o *TemplateType) AddTemplates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Template) error
AddTemplates adds the given related objects to the existing relationships of the template_type, optionally inserting them as new records. Appends related to o.R.Templates. Sets related.R.TemplateTemplateType appropriately.
func (*TemplateType) Delete ¶ added in v0.2.4
func (o *TemplateType) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single TemplateType record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TemplateType) Exists ¶ added in v0.2.4
func (o *TemplateType) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the TemplateType row exists.
func (*TemplateType) Insert ¶ added in v0.2.4
func (o *TemplateType) 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 (*TemplateType) Reload ¶ added in v0.2.4
func (o *TemplateType) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*TemplateType) RemoveTemplates ¶ added in v0.2.4
func (o *TemplateType) RemoveTemplates(ctx context.Context, exec boil.ContextExecutor, related ...*Template) error
RemoveTemplates relationships from objects passed in. Removes related items from R.Templates (uses pointer comparison, removal does not keep order) Sets related.R.TemplateTemplateType.
func (*TemplateType) SetTemplates ¶ added in v0.2.4
func (o *TemplateType) SetTemplates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Template) error
SetTemplates removes all previously related items of the template_type replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.TemplateTemplateType's Templates accordingly. Replaces o.R.Templates with related. Sets related.R.TemplateTemplateType's Templates accordingly.
func (*TemplateType) Templates ¶ added in v0.2.4
func (o *TemplateType) Templates(mods ...qm.QueryMod) templateQuery
Templates retrieves all the template's Templates with an executor.
func (*TemplateType) Update ¶ added in v0.2.4
func (o *TemplateType) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TemplateType. 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 (*TemplateType) Upsert ¶ added in v0.2.4
func (o *TemplateType) 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 TemplateTypeHook ¶ added in v0.2.4
type TemplateTypeHook func(context.Context, boil.ContextExecutor, *TemplateType) error
TemplateTypeHook is the signature for custom TemplateType hook methods
type TemplateTypeSlice ¶ added in v0.2.4
type TemplateTypeSlice []*TemplateType
TemplateTypeSlice is an alias for a slice of pointers to TemplateType. This should almost always be used instead of []TemplateType.
func (TemplateTypeSlice) DeleteAll ¶ added in v0.2.4
func (o TemplateTypeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TemplateTypeSlice) ReloadAll ¶ added in v0.2.4
func (o *TemplateTypeSlice) 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 (TemplateTypeSlice) UpdateAll ¶ added in v0.2.4
func (o TemplateTypeSlice) 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 string `boil:"make_slug" json:"make_slug" toml:"make_slug" yaml:"make_slug"` 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"` 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, makeSlug string, yearStart int, yearEnd 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
func (o *TemplateVehicle) Reload(ctx context.Context, exec boil.ContextExecutor) error
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
func (o TemplateVehicleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TemplateVehicleSlice) ReloadAll ¶ added in v0.2.4
func (o *TemplateVehicleSlice) 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 (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.