models

package
v1.2.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PowertrainALL           string = "ALL"
	PowertrainHybridsAndICE string = "HybridsAndICE"
	PowertrainICE           string = "ICE"
	PowertrainHEV           string = "HEV"
	PowertrainPHEV          string = "PHEV"
	PowertrainBEV           string = "BEV"
	PowertrainFCEV          string = "FCEV"
)

Enum values for Powertrain

View Source
const (
	IntegrationTypeHardware string = "Hardware"
	IntegrationTypeAPI      string = "API"
)

Enum values for IntegrationType

View Source
const (
	IntegrationStyleAddon   string = "Addon"
	IntegrationStyleOEM     string = "OEM"
	IntegrationStyleWebhook string = "Webhook"
)

Enum values for IntegrationStyle

Variables

View Source
var DeviceDefinitionColumns = struct {
	ID                 string
	Model              string
	Year               string
	Metadata           string
	CreatedAt          string
	UpdatedAt          string
	Source             string
	Verified           string
	ExternalID         string
	DeviceMakeID       string
	ModelSlug          string
	DeviceTypeID       string
	ExternalIds        string
	HardwareTemplateID string
	TRXHashHex         string
	NameSlug           string
}{
	ID:                 "id",
	Model:              "model",
	Year:               "year",
	Metadata:           "metadata",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
	Source:             "source",
	Verified:           "verified",
	ExternalID:         "external_id",
	DeviceMakeID:       "device_make_id",
	ModelSlug:          "model_slug",
	DeviceTypeID:       "device_type_id",
	ExternalIds:        "external_ids",
	HardwareTemplateID: "hardware_template_id",
	TRXHashHex:         "trx_hash_hex",
	NameSlug:           "name_slug",
}
View Source
var DeviceDefinitionRels = struct {
	DeviceMake         string
	DeviceType         string
	DeviceIntegrations string
	DeviceStyles       string
	Images             string
	VinNumbers         string
}{
	DeviceMake:         "DeviceMake",
	DeviceType:         "DeviceType",
	DeviceIntegrations: "DeviceIntegrations",
	DeviceStyles:       "DeviceStyles",
	Images:             "Images",
	VinNumbers:         "VinNumbers",
}

DeviceDefinitionRels is where relationship names are stored.

View Source
var DeviceDefinitionTableColumns = struct {
	ID                 string
	Model              string
	Year               string
	Metadata           string
	CreatedAt          string
	UpdatedAt          string
	Source             string
	Verified           string
	ExternalID         string
	DeviceMakeID       string
	ModelSlug          string
	DeviceTypeID       string
	ExternalIds        string
	HardwareTemplateID string
	TRXHashHex         string
	NameSlug           string
}{
	ID:                 "device_definitions.id",
	Model:              "device_definitions.model",
	Year:               "device_definitions.year",
	Metadata:           "device_definitions.metadata",
	CreatedAt:          "device_definitions.created_at",
	UpdatedAt:          "device_definitions.updated_at",
	Source:             "device_definitions.source",
	Verified:           "device_definitions.verified",
	ExternalID:         "device_definitions.external_id",
	DeviceMakeID:       "device_definitions.device_make_id",
	ModelSlug:          "device_definitions.model_slug",
	DeviceTypeID:       "device_definitions.device_type_id",
	ExternalIds:        "device_definitions.external_ids",
	HardwareTemplateID: "device_definitions.hardware_template_id",
	TRXHashHex:         "device_definitions.trx_hash_hex",
	NameSlug:           "device_definitions.name_slug",
}
View Source
var DeviceDefinitionWhere = struct {
	ID                 whereHelperstring
	Model              whereHelperstring
	Year               whereHelperint16
	Metadata           whereHelpernull_JSON
	CreatedAt          whereHelpertime_Time
	UpdatedAt          whereHelpertime_Time
	Source             whereHelpernull_String
	Verified           whereHelperbool
	ExternalID         whereHelpernull_String
	DeviceMakeID       whereHelperstring
	ModelSlug          whereHelperstring
	DeviceTypeID       whereHelpernull_String
	ExternalIds        whereHelpernull_JSON
	HardwareTemplateID whereHelpernull_String
	TRXHashHex         whereHelpernull_String
	NameSlug           whereHelperstring
}{
	ID:                 whereHelperstring{/* contains filtered or unexported fields */},
	Model:              whereHelperstring{/* contains filtered or unexported fields */},
	Year:               whereHelperint16{/* contains filtered or unexported fields */},
	Metadata:           whereHelpernull_JSON{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	Source:             whereHelpernull_String{/* contains filtered or unexported fields */},
	Verified:           whereHelperbool{/* contains filtered or unexported fields */},
	ExternalID:         whereHelpernull_String{/* contains filtered or unexported fields */},
	DeviceMakeID:       whereHelperstring{/* contains filtered or unexported fields */},
	ModelSlug:          whereHelperstring{/* contains filtered or unexported fields */},
	DeviceTypeID:       whereHelpernull_String{/* contains filtered or unexported fields */},
	ExternalIds:        whereHelpernull_JSON{/* contains filtered or unexported fields */},
	HardwareTemplateID: whereHelpernull_String{/* contains filtered or unexported fields */},
	TRXHashHex:         whereHelpernull_String{/* contains filtered or unexported fields */},
	NameSlug:           whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var DeviceIntegrationColumns = struct {
	DeviceDefinitionID string
	IntegrationID      string
	CreatedAt          string
	UpdatedAt          string
	Region             string
	Features           string
}{
	DeviceDefinitionID: "device_definition_id",
	IntegrationID:      "integration_id",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
	Region:             "region",
	Features:           "features",
}
View Source
var DeviceIntegrationRels = struct {
	DeviceDefinition string
	Integration      string
}{
	DeviceDefinition: "DeviceDefinition",
	Integration:      "Integration",
}

DeviceIntegrationRels is where relationship names are stored.

View Source
var DeviceIntegrationTableColumns = struct {
	DeviceDefinitionID string
	IntegrationID      string
	CreatedAt          string
	UpdatedAt          string
	Region             string
	Features           string
}{
	DeviceDefinitionID: "device_integrations.device_definition_id",
	IntegrationID:      "device_integrations.integration_id",
	CreatedAt:          "device_integrations.created_at",
	UpdatedAt:          "device_integrations.updated_at",
	Region:             "device_integrations.region",
	Features:           "device_integrations.features",
}
View Source
var DeviceIntegrationWhere = struct {
	DeviceDefinitionID whereHelperstring
	IntegrationID      whereHelperstring
	CreatedAt          whereHelpertime_Time
	UpdatedAt          whereHelpertime_Time
	Region             whereHelperstring
	Features           whereHelpernull_JSON
}{
	DeviceDefinitionID: whereHelperstring{/* contains filtered or unexported fields */},
	IntegrationID:      whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	Region:             whereHelperstring{/* contains filtered or unexported fields */},
	Features:           whereHelpernull_JSON{/* contains filtered or unexported fields */},
}
View Source
var DeviceMakeColumns = struct {
	ID                 string
	Name               string
	ExternalIds        string
	CreatedAt          string
	UpdatedAt          string
	TokenID            string
	LogoURL            string
	OemPlatformName    string
	NameSlug           string
	Metadata           string
	HardwareTemplateID string
}{
	ID:                 "id",
	Name:               "name",
	ExternalIds:        "external_ids",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
	TokenID:            "token_id",
	LogoURL:            "logo_url",
	OemPlatformName:    "oem_platform_name",
	NameSlug:           "name_slug",
	Metadata:           "metadata",
	HardwareTemplateID: "hardware_template_id",
}
View Source
var DeviceMakeRels = struct {
	DeviceDefinitions             string
	ManufacturerTokenIntegrations string
	VinNumbers                    string
	Wmis                          string
}{
	DeviceDefinitions:             "DeviceDefinitions",
	ManufacturerTokenIntegrations: "ManufacturerTokenIntegrations",
	VinNumbers:                    "VinNumbers",
	Wmis:                          "Wmis",
}

DeviceMakeRels is where relationship names are stored.

View Source
var DeviceMakeTableColumns = struct {
	ID                 string
	Name               string
	ExternalIds        string
	CreatedAt          string
	UpdatedAt          string
	TokenID            string
	LogoURL            string
	OemPlatformName    string
	NameSlug           string
	Metadata           string
	HardwareTemplateID string
}{
	ID:                 "device_makes.id",
	Name:               "device_makes.name",
	ExternalIds:        "device_makes.external_ids",
	CreatedAt:          "device_makes.created_at",
	UpdatedAt:          "device_makes.updated_at",
	TokenID:            "device_makes.token_id",
	LogoURL:            "device_makes.logo_url",
	OemPlatformName:    "device_makes.oem_platform_name",
	NameSlug:           "device_makes.name_slug",
	Metadata:           "device_makes.metadata",
	HardwareTemplateID: "device_makes.hardware_template_id",
}
View Source
var DeviceMakeWhere = struct {
	ID                 whereHelperstring
	Name               whereHelperstring
	ExternalIds        whereHelpernull_JSON
	CreatedAt          whereHelpertime_Time
	UpdatedAt          whereHelpertime_Time
	TokenID            whereHelpertypes_NullDecimal
	LogoURL            whereHelpernull_String
	OemPlatformName    whereHelpernull_String
	NameSlug           whereHelperstring
	Metadata           whereHelpernull_JSON
	HardwareTemplateID whereHelpernull_String
}{
	ID:                 whereHelperstring{/* contains filtered or unexported fields */},
	Name:               whereHelperstring{/* contains filtered or unexported fields */},
	ExternalIds:        whereHelpernull_JSON{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	TokenID:            whereHelpertypes_NullDecimal{/* contains filtered or unexported fields */},
	LogoURL:            whereHelpernull_String{/* contains filtered or unexported fields */},
	OemPlatformName:    whereHelpernull_String{/* contains filtered or unexported fields */},
	NameSlug:           whereHelperstring{/* contains filtered or unexported fields */},
	Metadata:           whereHelpernull_JSON{/* contains filtered or unexported fields */},
	HardwareTemplateID: whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var DeviceStyleColumns = struct {
	ID                 string
	DeviceDefinitionID string
	Name               string
	ExternalStyleID    string
	Source             string
	CreatedAt          string
	UpdatedAt          string
	SubModel           string
	HardwareTemplateID string
	Metadata           string
}{
	ID:                 "id",
	DeviceDefinitionID: "device_definition_id",
	Name:               "name",
	ExternalStyleID:    "external_style_id",
	Source:             "source",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
	SubModel:           "sub_model",
	HardwareTemplateID: "hardware_template_id",
	Metadata:           "metadata",
}
View Source
var DeviceStyleRels = struct {
	DeviceDefinition string
	StyleVinNumbers  string
}{
	DeviceDefinition: "DeviceDefinition",
	StyleVinNumbers:  "StyleVinNumbers",
}

DeviceStyleRels is where relationship names are stored.

View Source
var DeviceStyleTableColumns = struct {
	ID                 string
	DeviceDefinitionID string
	Name               string
	ExternalStyleID    string
	Source             string
	CreatedAt          string
	UpdatedAt          string
	SubModel           string
	HardwareTemplateID string
	Metadata           string
}{
	ID:                 "device_styles.id",
	DeviceDefinitionID: "device_styles.device_definition_id",
	Name:               "device_styles.name",
	ExternalStyleID:    "device_styles.external_style_id",
	Source:             "device_styles.source",
	CreatedAt:          "device_styles.created_at",
	UpdatedAt:          "device_styles.updated_at",
	SubModel:           "device_styles.sub_model",
	HardwareTemplateID: "device_styles.hardware_template_id",
	Metadata:           "device_styles.metadata",
}
View Source
var DeviceStyleWhere = struct {
	ID                 whereHelperstring
	DeviceDefinitionID whereHelperstring
	Name               whereHelperstring
	ExternalStyleID    whereHelperstring
	Source             whereHelperstring
	CreatedAt          whereHelpertime_Time
	UpdatedAt          whereHelpertime_Time
	SubModel           whereHelperstring
	HardwareTemplateID whereHelpernull_String
	Metadata           whereHelpernull_JSON
}{
	ID:                 whereHelperstring{/* contains filtered or unexported fields */},
	DeviceDefinitionID: whereHelperstring{/* contains filtered or unexported fields */},
	Name:               whereHelperstring{/* contains filtered or unexported fields */},
	ExternalStyleID:    whereHelperstring{/* contains filtered or unexported fields */},
	Source:             whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	SubModel:           whereHelperstring{/* contains filtered or unexported fields */},
	HardwareTemplateID: whereHelpernull_String{/* contains filtered or unexported fields */},
	Metadata:           whereHelpernull_JSON{/* contains filtered or unexported fields */},
}
View Source
var DeviceTypeColumns = struct {
	ID          string
	CreatedAt   string
	UpdatedAt   string
	Name        string
	Metadatakey string
	Properties  string
}{
	ID:          "id",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
	Name:        "name",
	Metadatakey: "metadatakey",
	Properties:  "properties",
}
View Source
var DeviceTypeRels = struct {
	DeviceDefinitions string
}{
	DeviceDefinitions: "DeviceDefinitions",
}

DeviceTypeRels is where relationship names are stored.

View Source
var DeviceTypeTableColumns = struct {
	ID          string
	CreatedAt   string
	UpdatedAt   string
	Name        string
	Metadatakey string
	Properties  string
}{
	ID:          "device_types.id",
	CreatedAt:   "device_types.created_at",
	UpdatedAt:   "device_types.updated_at",
	Name:        "device_types.name",
	Metadatakey: "device_types.metadatakey",
	Properties:  "device_types.properties",
}
View Source
var DeviceTypeWhere = struct {
	ID          whereHelperstring
	CreatedAt   whereHelpertime_Time
	UpdatedAt   whereHelpertime_Time
	Name        whereHelperstring
	Metadatakey whereHelperstring
	Properties  whereHelpernull_JSON
}{
	ID:          whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	Name:        whereHelperstring{/* contains filtered or unexported fields */},
	Metadatakey: whereHelperstring{/* contains filtered or unexported fields */},
	Properties:  whereHelpernull_JSON{/* 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 ImageColumns = struct {
	ID                 string
	DeviceDefinitionID string
	FuelAPIID          string
	Width              string
	Height             string
	SourceURL          string
	DimoS3URL          string
	Color              string
	NotExactImage      string
	CreatedAt          string
	UpdatedAt          string
}{
	ID:                 "id",
	DeviceDefinitionID: "device_definition_id",
	FuelAPIID:          "fuel_api_id",
	Width:              "width",
	Height:             "height",
	SourceURL:          "source_url",
	DimoS3URL:          "dimo_s3_url",
	Color:              "color",
	NotExactImage:      "not_exact_image",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
}
View Source
var ImageRels = struct {
	DeviceDefinition string
}{
	DeviceDefinition: "DeviceDefinition",
}

ImageRels is where relationship names are stored.

View Source
var ImageTableColumns = struct {
	ID                 string
	DeviceDefinitionID string
	FuelAPIID          string
	Width              string
	Height             string
	SourceURL          string
	DimoS3URL          string
	Color              string
	NotExactImage      string
	CreatedAt          string
	UpdatedAt          string
}{
	ID:                 "images.id",
	DeviceDefinitionID: "images.device_definition_id",
	FuelAPIID:          "images.fuel_api_id",
	Width:              "images.width",
	Height:             "images.height",
	SourceURL:          "images.source_url",
	DimoS3URL:          "images.dimo_s3_url",
	Color:              "images.color",
	NotExactImage:      "images.not_exact_image",
	CreatedAt:          "images.created_at",
	UpdatedAt:          "images.updated_at",
}
View Source
var ImageWhere = struct {
	ID                 whereHelperstring
	DeviceDefinitionID whereHelperstring
	FuelAPIID          whereHelpernull_String
	Width              whereHelpernull_Int
	Height             whereHelpernull_Int
	SourceURL          whereHelperstring
	DimoS3URL          whereHelpernull_String
	Color              whereHelperstring
	NotExactImage      whereHelperbool
	CreatedAt          whereHelpertime_Time
	UpdatedAt          whereHelpertime_Time
}{
	ID:                 whereHelperstring{/* contains filtered or unexported fields */},
	DeviceDefinitionID: whereHelperstring{/* contains filtered or unexported fields */},
	FuelAPIID:          whereHelpernull_String{/* contains filtered or unexported fields */},
	Width:              whereHelpernull_Int{/* contains filtered or unexported fields */},
	Height:             whereHelpernull_Int{/* contains filtered or unexported fields */},
	SourceURL:          whereHelperstring{/* contains filtered or unexported fields */},
	DimoS3URL:          whereHelpernull_String{/* contains filtered or unexported fields */},
	Color:              whereHelperstring{/* contains filtered or unexported fields */},
	NotExactImage:      whereHelperbool{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var IntegrationColumns = struct {
	ID                  string
	Type                string
	Style               string
	Vendor              string
	CreatedAt           string
	UpdatedAt           string
	RefreshLimitSecs    string
	Metadata            string
	TokenID             string
	Points              string
	ManufacturerTokenID string
}{
	ID:                  "id",
	Type:                "type",
	Style:               "style",
	Vendor:              "vendor",
	CreatedAt:           "created_at",
	UpdatedAt:           "updated_at",
	RefreshLimitSecs:    "refresh_limit_secs",
	Metadata:            "metadata",
	TokenID:             "token_id",
	Points:              "points",
	ManufacturerTokenID: "manufacturer_token_id",
}
View Source
var IntegrationFeatureColumns = struct {
	FeatureKey      string
	ElasticProperty string
	DisplayName     string
	CSSIcon         string
	CreatedAt       string
	UpdatedAt       string
	FeatureWeight   string
	PowertrainType  string
}{
	FeatureKey:      "feature_key",
	ElasticProperty: "elastic_property",
	DisplayName:     "display_name",
	CSSIcon:         "css_icon",
	CreatedAt:       "created_at",
	UpdatedAt:       "updated_at",
	FeatureWeight:   "feature_weight",
	PowertrainType:  "powertrain_type",
}
View Source
var IntegrationFeatureRels = struct {
}{}

IntegrationFeatureRels is where relationship names are stored.

View Source
var IntegrationFeatureTableColumns = struct {
	FeatureKey      string
	ElasticProperty string
	DisplayName     string
	CSSIcon         string
	CreatedAt       string
	UpdatedAt       string
	FeatureWeight   string
	PowertrainType  string
}{
	FeatureKey:      "integration_features.feature_key",
	ElasticProperty: "integration_features.elastic_property",
	DisplayName:     "integration_features.display_name",
	CSSIcon:         "integration_features.css_icon",
	CreatedAt:       "integration_features.created_at",
	UpdatedAt:       "integration_features.updated_at",
	FeatureWeight:   "integration_features.feature_weight",
	PowertrainType:  "integration_features.powertrain_type",
}
View Source
var IntegrationFeatureWhere = struct {
	FeatureKey      whereHelperstring
	ElasticProperty whereHelperstring
	DisplayName     whereHelperstring
	CSSIcon         whereHelpernull_String
	CreatedAt       whereHelpertime_Time
	UpdatedAt       whereHelpertime_Time
	FeatureWeight   whereHelpernull_Float64
	PowertrainType  whereHelperstring
}{
	FeatureKey:      whereHelperstring{/* contains filtered or unexported fields */},
	ElasticProperty: whereHelperstring{/* contains filtered or unexported fields */},
	DisplayName:     whereHelperstring{/* contains filtered or unexported fields */},
	CSSIcon:         whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	FeatureWeight:   whereHelpernull_Float64{/* contains filtered or unexported fields */},
	PowertrainType:  whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var IntegrationRels = struct {
	ManufacturerToken  string
	DeviceIntegrations string
}{
	ManufacturerToken:  "ManufacturerToken",
	DeviceIntegrations: "DeviceIntegrations",
}

IntegrationRels is where relationship names are stored.

View Source
var IntegrationTableColumns = struct {
	ID                  string
	Type                string
	Style               string
	Vendor              string
	CreatedAt           string
	UpdatedAt           string
	RefreshLimitSecs    string
	Metadata            string
	TokenID             string
	Points              string
	ManufacturerTokenID string
}{
	ID:                  "integrations.id",
	Type:                "integrations.type",
	Style:               "integrations.style",
	Vendor:              "integrations.vendor",
	CreatedAt:           "integrations.created_at",
	UpdatedAt:           "integrations.updated_at",
	RefreshLimitSecs:    "integrations.refresh_limit_secs",
	Metadata:            "integrations.metadata",
	TokenID:             "integrations.token_id",
	Points:              "integrations.points",
	ManufacturerTokenID: "integrations.manufacturer_token_id",
}
View Source
var IntegrationWhere = struct {
	ID                  whereHelperstring
	Type                whereHelperstring
	Style               whereHelperstring
	Vendor              whereHelperstring
	CreatedAt           whereHelpertime_Time
	UpdatedAt           whereHelpertime_Time
	RefreshLimitSecs    whereHelperint
	Metadata            whereHelpernull_JSON
	TokenID             whereHelpernull_Int
	Points              whereHelperint
	ManufacturerTokenID whereHelpernull_Int
}{
	ID:                  whereHelperstring{/* contains filtered or unexported fields */},
	Type:                whereHelperstring{/* contains filtered or unexported fields */},
	Style:               whereHelperstring{/* contains filtered or unexported fields */},
	Vendor:              whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:           whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:           whereHelpertime_Time{/* contains filtered or unexported fields */},
	RefreshLimitSecs:    whereHelperint{/* contains filtered or unexported fields */},
	Metadata:            whereHelpernull_JSON{/* contains filtered or unexported fields */},
	TokenID:             whereHelpernull_Int{/* contains filtered or unexported fields */},
	Points:              whereHelperint{/* contains filtered or unexported fields */},
	ManufacturerTokenID: whereHelpernull_Int{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	DeviceDefinitions   string
	DeviceIntegrations  string
	DeviceMakes         string
	DeviceStyles        string
	DeviceTypes         string
	Images              string
	IntegrationFeatures string
	Integrations        string
	VinNumbers          string
	Wmis                string
}{
	DeviceDefinitions:   "device_definitions",
	DeviceIntegrations:  "device_integrations",
	DeviceMakes:         "device_makes",
	DeviceStyles:        "device_styles",
	DeviceTypes:         "device_types",
	Images:              "images",
	IntegrationFeatures: "integration_features",
	Integrations:        "integrations",
	VinNumbers:          "vin_numbers",
	Wmis:                "wmis",
}
View Source
var ViewNames = struct {
}{}
View Source
var VinNumberColumns = struct {
	Vin                string
	Wmi                string
	VDS                string
	CheckDigit         string
	SerialNumber       string
	Vis                string
	DeviceMakeID       string
	DeviceDefinitionID string
	CreatedAt          string
	UpdatedAt          string
	StyleID            string
	DecodeProvider     string
	Year               string
	VincarioData       string
	DrivlyData         string
	AutoisoData        string
	DatgroupData       string
}{
	Vin:                "vin",
	Wmi:                "wmi",
	VDS:                "vds",
	CheckDigit:         "check_digit",
	SerialNumber:       "serial_number",
	Vis:                "vis",
	DeviceMakeID:       "device_make_id",
	DeviceDefinitionID: "device_definition_id",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
	StyleID:            "style_id",
	DecodeProvider:     "decode_provider",
	Year:               "year",
	VincarioData:       "vincario_data",
	DrivlyData:         "drivly_data",
	AutoisoData:        "autoiso_data",
	DatgroupData:       "datgroup_data",
}
View Source
var VinNumberRels = struct {
	Style            string
	DeviceDefinition string
	DeviceMake       string
}{
	Style:            "Style",
	DeviceDefinition: "DeviceDefinition",
	DeviceMake:       "DeviceMake",
}

VinNumberRels is where relationship names are stored.

View Source
var VinNumberTableColumns = struct {
	Vin                string
	Wmi                string
	VDS                string
	CheckDigit         string
	SerialNumber       string
	Vis                string
	DeviceMakeID       string
	DeviceDefinitionID string
	CreatedAt          string
	UpdatedAt          string
	StyleID            string
	DecodeProvider     string
	Year               string
	VincarioData       string
	DrivlyData         string
	AutoisoData        string
	DatgroupData       string
}{
	Vin:                "vin_numbers.vin",
	Wmi:                "vin_numbers.wmi",
	VDS:                "vin_numbers.vds",
	CheckDigit:         "vin_numbers.check_digit",
	SerialNumber:       "vin_numbers.serial_number",
	Vis:                "vin_numbers.vis",
	DeviceMakeID:       "vin_numbers.device_make_id",
	DeviceDefinitionID: "vin_numbers.device_definition_id",
	CreatedAt:          "vin_numbers.created_at",
	UpdatedAt:          "vin_numbers.updated_at",
	StyleID:            "vin_numbers.style_id",
	DecodeProvider:     "vin_numbers.decode_provider",
	Year:               "vin_numbers.year",
	VincarioData:       "vin_numbers.vincario_data",
	DrivlyData:         "vin_numbers.drivly_data",
	AutoisoData:        "vin_numbers.autoiso_data",
	DatgroupData:       "vin_numbers.datgroup_data",
}
View Source
var VinNumberWhere = struct {
	Vin                whereHelperstring
	Wmi                whereHelperstring
	VDS                whereHelperstring
	CheckDigit         whereHelperstring
	SerialNumber       whereHelperstring
	Vis                whereHelperstring
	DeviceMakeID       whereHelperstring
	DeviceDefinitionID whereHelperstring
	CreatedAt          whereHelpertime_Time
	UpdatedAt          whereHelpertime_Time
	StyleID            whereHelpernull_String
	DecodeProvider     whereHelpernull_String
	Year               whereHelperint
	VincarioData       whereHelpernull_JSON
	DrivlyData         whereHelpernull_JSON
	AutoisoData        whereHelpernull_JSON
	DatgroupData       whereHelpernull_JSON
}{
	Vin:                whereHelperstring{/* contains filtered or unexported fields */},
	Wmi:                whereHelperstring{/* contains filtered or unexported fields */},
	VDS:                whereHelperstring{/* contains filtered or unexported fields */},
	CheckDigit:         whereHelperstring{/* contains filtered or unexported fields */},
	SerialNumber:       whereHelperstring{/* contains filtered or unexported fields */},
	Vis:                whereHelperstring{/* contains filtered or unexported fields */},
	DeviceMakeID:       whereHelperstring{/* contains filtered or unexported fields */},
	DeviceDefinitionID: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	StyleID:            whereHelpernull_String{/* contains filtered or unexported fields */},
	DecodeProvider:     whereHelpernull_String{/* contains filtered or unexported fields */},
	Year:               whereHelperint{/* contains filtered or unexported fields */},
	VincarioData:       whereHelpernull_JSON{/* contains filtered or unexported fields */},
	DrivlyData:         whereHelpernull_JSON{/* contains filtered or unexported fields */},
	AutoisoData:        whereHelpernull_JSON{/* contains filtered or unexported fields */},
	DatgroupData:       whereHelpernull_JSON{/* contains filtered or unexported fields */},
}
View Source
var WmiColumns = struct {
	Wmi          string
	DeviceMakeID string
	CreatedAt    string
	UpdatedAt    string
}{
	Wmi:          "wmi",
	DeviceMakeID: "device_make_id",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
}
View Source
var WmiRels = struct {
	DeviceMake string
}{
	DeviceMake: "DeviceMake",
}

WmiRels is where relationship names are stored.

View Source
var WmiTableColumns = struct {
	Wmi          string
	DeviceMakeID string
	CreatedAt    string
	UpdatedAt    string
}{
	Wmi:          "wmis.wmi",
	DeviceMakeID: "wmis.device_make_id",
	CreatedAt:    "wmis.created_at",
	UpdatedAt:    "wmis.updated_at",
}
View Source
var WmiWhere = struct {
	Wmi          whereHelperstring
	DeviceMakeID whereHelperstring
	CreatedAt    whereHelpertime_Time
	UpdatedAt    whereHelpertime_Time
}{
	Wmi:          whereHelperstring{/* contains filtered or unexported fields */},
	DeviceMakeID: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
}

Functions

func AddDeviceDefinitionHook

func AddDeviceDefinitionHook(hookPoint boil.HookPoint, deviceDefinitionHook DeviceDefinitionHook)

AddDeviceDefinitionHook registers your hook function for all future operations.

func AddDeviceIntegrationHook

func AddDeviceIntegrationHook(hookPoint boil.HookPoint, deviceIntegrationHook DeviceIntegrationHook)

AddDeviceIntegrationHook registers your hook function for all future operations.

func AddDeviceMakeHook

func AddDeviceMakeHook(hookPoint boil.HookPoint, deviceMakeHook DeviceMakeHook)

AddDeviceMakeHook registers your hook function for all future operations.

func AddDeviceStyleHook

func AddDeviceStyleHook(hookPoint boil.HookPoint, deviceStyleHook DeviceStyleHook)

AddDeviceStyleHook registers your hook function for all future operations.

func AddDeviceTypeHook added in v0.2.0

func AddDeviceTypeHook(hookPoint boil.HookPoint, deviceTypeHook DeviceTypeHook)

AddDeviceTypeHook registers your hook function for all future operations.

func AddImageHook added in v0.2.4

func AddImageHook(hookPoint boil.HookPoint, imageHook ImageHook)

AddImageHook registers your hook function for all future operations.

func AddIntegrationFeatureHook added in v0.1.28

func AddIntegrationFeatureHook(hookPoint boil.HookPoint, integrationFeatureHook IntegrationFeatureHook)

AddIntegrationFeatureHook registers your hook function for all future operations.

func AddIntegrationHook

func AddIntegrationHook(hookPoint boil.HookPoint, integrationHook IntegrationHook)

AddIntegrationHook registers your hook function for all future operations.

func AddVinNumberHook added in v0.7.9

func AddVinNumberHook(hookPoint boil.HookPoint, vinNumberHook VinNumberHook)

AddVinNumberHook registers your hook function for all future operations.

func AddWmiHook added in v0.6.8

func AddWmiHook(hookPoint boil.HookPoint, wmiHook WmiHook)

AddWmiHook registers your hook function for all future operations.

func AllIntegrationStyle

func AllIntegrationStyle() []string

func AllIntegrationType

func AllIntegrationType() []string

func AllPowertrain added in v0.5.0

func AllPowertrain() []string

func DeviceDefinitionExists

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

DeviceDefinitionExists checks if the DeviceDefinition row exists.

func DeviceDefinitions

func DeviceDefinitions(mods ...qm.QueryMod) deviceDefinitionQuery

DeviceDefinitions retrieves all the records using an executor.

func DeviceIntegrationExists

func DeviceIntegrationExists(ctx context.Context, exec boil.ContextExecutor, deviceDefinitionID string, integrationID string, region string) (bool, error)

DeviceIntegrationExists checks if the DeviceIntegration row exists.

func DeviceIntegrations

func DeviceIntegrations(mods ...qm.QueryMod) deviceIntegrationQuery

DeviceIntegrations retrieves all the records using an executor.

func DeviceMakeExists

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

DeviceMakeExists checks if the DeviceMake row exists.

func DeviceMakes

func DeviceMakes(mods ...qm.QueryMod) deviceMakeQuery

DeviceMakes retrieves all the records using an executor.

func DeviceStyleExists

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

DeviceStyleExists checks if the DeviceStyle row exists.

func DeviceStyles

func DeviceStyles(mods ...qm.QueryMod) deviceStyleQuery

DeviceStyles retrieves all the records using an executor.

func DeviceTypeExists added in v0.2.0

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

DeviceTypeExists checks if the DeviceType row exists.

func DeviceTypes added in v0.2.0

func DeviceTypes(mods ...qm.QueryMod) deviceTypeQuery

DeviceTypes retrieves all the records using an executor.

func ImageExists added in v0.2.4

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

ImageExists checks if the Image row exists.

func Images added in v0.2.4

func Images(mods ...qm.QueryMod) imageQuery

Images retrieves all the records using an executor.

func IntegrationExists

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

IntegrationExists checks if the Integration row exists.

func IntegrationFeatureExists added in v0.1.28

func IntegrationFeatureExists(ctx context.Context, exec boil.ContextExecutor, featureKey string) (bool, error)

IntegrationFeatureExists checks if the IntegrationFeature row exists.

func IntegrationFeatures added in v0.1.28

func IntegrationFeatures(mods ...qm.QueryMod) integrationFeatureQuery

IntegrationFeatures retrieves all the records using an executor.

func Integrations

func Integrations(mods ...qm.QueryMod) integrationQuery

Integrations 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 VinNumberExists added in v0.7.9

func VinNumberExists(ctx context.Context, exec boil.ContextExecutor, vin string) (bool, error)

VinNumberExists checks if the VinNumber row exists.

func VinNumbers added in v0.7.9

func VinNumbers(mods ...qm.QueryMod) vinNumberQuery

VinNumbers retrieves all the records using an executor.

func WmiExists added in v0.6.8

func WmiExists(ctx context.Context, exec boil.ContextExecutor, wmi string, deviceMakeID string) (bool, error)

WmiExists checks if the Wmi row exists.

func Wmis added in v0.6.8

func Wmis(mods ...qm.QueryMod) wmiQuery

Wmis retrieves all the records using an executor.

Types

type DeviceDefinition

type DeviceDefinition struct {
	ID                 string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Model              string      `boil:"model" json:"model" toml:"model" yaml:"model"`
	Year               int16       `boil:"year" json:"year" toml:"year" yaml:"year"`
	Metadata           null.JSON   `boil:"metadata" json:"metadata,omitempty" toml:"metadata" yaml:"metadata,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"`
	Source             null.String `boil:"source" json:"source,omitempty" toml:"source" yaml:"source,omitempty"`
	Verified           bool        `boil:"verified" json:"verified" toml:"verified" yaml:"verified"`
	ExternalID         null.String `boil:"external_id" json:"external_id,omitempty" toml:"external_id" yaml:"external_id,omitempty"`
	DeviceMakeID       string      `boil:"device_make_id" json:"device_make_id" toml:"device_make_id" yaml:"device_make_id"`
	ModelSlug          string      `boil:"model_slug" json:"model_slug" toml:"model_slug" yaml:"model_slug"`
	DeviceTypeID       null.String `boil:"device_type_id" json:"device_type_id,omitempty" toml:"device_type_id" yaml:"device_type_id,omitempty"`
	ExternalIds        null.JSON   `boil:"external_ids" json:"external_ids,omitempty" toml:"external_ids" yaml:"external_ids,omitempty"`
	HardwareTemplateID null.String `` /* 131-byte string literal not displayed */
	TRXHashHex         null.String `boil:"trx_hash_hex" json:"trx_hash_hex,omitempty" toml:"trx_hash_hex" yaml:"trx_hash_hex,omitempty"`
	NameSlug           string      `boil:"name_slug" json:"name_slug" toml:"name_slug" yaml:"name_slug"`

	R *deviceDefinitionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L deviceDefinitionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DeviceDefinition is an object representing the database table.

func FindDeviceDefinition

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

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

func (*DeviceDefinition) AddDeviceIntegrations

func (o *DeviceDefinition) AddDeviceIntegrations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DeviceIntegration) error

AddDeviceIntegrations adds the given related objects to the existing relationships of the device_definition, optionally inserting them as new records. Appends related to o.R.DeviceIntegrations. Sets related.R.DeviceDefinition appropriately.

func (*DeviceDefinition) AddDeviceStyles

func (o *DeviceDefinition) AddDeviceStyles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DeviceStyle) error

AddDeviceStyles adds the given related objects to the existing relationships of the device_definition, optionally inserting them as new records. Appends related to o.R.DeviceStyles. Sets related.R.DeviceDefinition appropriately.

func (*DeviceDefinition) AddImages added in v0.2.4

func (o *DeviceDefinition) AddImages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Image) error

AddImages adds the given related objects to the existing relationships of the device_definition, optionally inserting them as new records. Appends related to o.R.Images. Sets related.R.DeviceDefinition appropriately.

func (*DeviceDefinition) AddVinNumbers added in v0.7.9

func (o *DeviceDefinition) AddVinNumbers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*VinNumber) error

AddVinNumbers adds the given related objects to the existing relationships of the device_definition, optionally inserting them as new records. Appends related to o.R.VinNumbers. Sets related.R.DeviceDefinition appropriately.

func (*DeviceDefinition) Delete

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

func (*DeviceDefinition) DeviceIntegrations

func (o *DeviceDefinition) DeviceIntegrations(mods ...qm.QueryMod) deviceIntegrationQuery

DeviceIntegrations retrieves all the device_integration's DeviceIntegrations with an executor.

func (*DeviceDefinition) DeviceMake

func (o *DeviceDefinition) DeviceMake(mods ...qm.QueryMod) deviceMakeQuery

DeviceMake pointed to by the foreign key.

func (*DeviceDefinition) DeviceStyles

func (o *DeviceDefinition) DeviceStyles(mods ...qm.QueryMod) deviceStyleQuery

DeviceStyles retrieves all the device_style's DeviceStyles with an executor.

func (*DeviceDefinition) DeviceType added in v0.2.0

func (o *DeviceDefinition) DeviceType(mods ...qm.QueryMod) deviceTypeQuery

DeviceType pointed to by the foreign key.

func (*DeviceDefinition) Exists added in v0.9.8

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

Exists checks if the DeviceDefinition row exists.

func (*DeviceDefinition) Images added in v0.2.4

func (o *DeviceDefinition) Images(mods ...qm.QueryMod) imageQuery

Images retrieves all the image's Images with an executor.

func (*DeviceDefinition) Insert

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

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

func (*DeviceDefinition) RemoveDeviceType added in v0.2.0

func (o *DeviceDefinition) RemoveDeviceType(ctx context.Context, exec boil.ContextExecutor, related *DeviceType) error

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

func (*DeviceDefinition) SetDeviceMake

func (o *DeviceDefinition) SetDeviceMake(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeviceMake) error

SetDeviceMake of the deviceDefinition to the related item. Sets o.R.DeviceMake to related. Adds o to related.R.DeviceDefinitions.

func (*DeviceDefinition) SetDeviceType added in v0.2.0

func (o *DeviceDefinition) SetDeviceType(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeviceType) error

SetDeviceType of the deviceDefinition to the related item. Sets o.R.DeviceType to related. Adds o to related.R.DeviceDefinitions.

func (*DeviceDefinition) Update

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

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

func (o *DeviceDefinition) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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.

func (*DeviceDefinition) VinNumbers added in v0.7.9

func (o *DeviceDefinition) VinNumbers(mods ...qm.QueryMod) vinNumberQuery

VinNumbers retrieves all the vin_number's VinNumbers with an executor.

type DeviceDefinitionHook

type DeviceDefinitionHook func(context.Context, boil.ContextExecutor, *DeviceDefinition) error

DeviceDefinitionHook is the signature for custom DeviceDefinition hook methods

type DeviceDefinitionSlice

type DeviceDefinitionSlice []*DeviceDefinition

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

func (DeviceDefinitionSlice) DeleteAll

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

func (*DeviceDefinitionSlice) ReloadAll

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

func (DeviceDefinitionSlice) UpdateAll

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

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

type DeviceIntegration

type DeviceIntegration struct {
	DeviceDefinitionID string    `boil:"device_definition_id" json:"device_definition_id" toml:"device_definition_id" yaml:"device_definition_id"`
	IntegrationID      string    `boil:"integration_id" json:"integration_id" toml:"integration_id" yaml:"integration_id"`
	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"`
	Region             string    `boil:"region" json:"region" toml:"region" yaml:"region"`
	Features           null.JSON `boil:"features" json:"features,omitempty" toml:"features" yaml:"features,omitempty"`

	R *deviceIntegrationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L deviceIntegrationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DeviceIntegration is an object representing the database table.

func FindDeviceIntegration

func FindDeviceIntegration(ctx context.Context, exec boil.ContextExecutor, deviceDefinitionID string, integrationID string, region string, selectCols ...string) (*DeviceIntegration, error)

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

func (*DeviceIntegration) Delete

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

func (*DeviceIntegration) DeviceDefinition

func (o *DeviceIntegration) DeviceDefinition(mods ...qm.QueryMod) deviceDefinitionQuery

DeviceDefinition pointed to by the foreign key.

func (*DeviceIntegration) Exists added in v0.9.8

Exists checks if the DeviceIntegration row exists.

func (*DeviceIntegration) Insert

func (o *DeviceIntegration) 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 (*DeviceIntegration) Integration

func (o *DeviceIntegration) Integration(mods ...qm.QueryMod) integrationQuery

Integration pointed to by the foreign key.

func (*DeviceIntegration) Reload

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

func (*DeviceIntegration) SetDeviceDefinition

func (o *DeviceIntegration) SetDeviceDefinition(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeviceDefinition) error

SetDeviceDefinition of the deviceIntegration to the related item. Sets o.R.DeviceDefinition to related. Adds o to related.R.DeviceIntegrations.

func (*DeviceIntegration) SetIntegration

func (o *DeviceIntegration) SetIntegration(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Integration) error

SetIntegration of the deviceIntegration to the related item. Sets o.R.Integration to related. Adds o to related.R.DeviceIntegrations.

func (*DeviceIntegration) Update

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

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

func (o *DeviceIntegration) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 DeviceIntegrationHook

type DeviceIntegrationHook func(context.Context, boil.ContextExecutor, *DeviceIntegration) error

DeviceIntegrationHook is the signature for custom DeviceIntegration hook methods

type DeviceIntegrationSlice

type DeviceIntegrationSlice []*DeviceIntegration

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

func (DeviceIntegrationSlice) DeleteAll

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

func (*DeviceIntegrationSlice) ReloadAll

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

func (DeviceIntegrationSlice) UpdateAll

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

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

type DeviceMake

type DeviceMake struct {
	ID                 string            `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name               string            `boil:"name" json:"name" toml:"name" yaml:"name"`
	ExternalIds        null.JSON         `boil:"external_ids" json:"external_ids,omitempty" toml:"external_ids" yaml:"external_ids,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"`
	TokenID            types.NullDecimal `boil:"token_id" json:"token_id,omitempty" toml:"token_id" yaml:"token_id,omitempty"`
	LogoURL            null.String       `boil:"logo_url" json:"logo_url,omitempty" toml:"logo_url" yaml:"logo_url,omitempty"`
	OemPlatformName    null.String       `boil:"oem_platform_name" json:"oem_platform_name,omitempty" toml:"oem_platform_name" yaml:"oem_platform_name,omitempty"`
	NameSlug           string            `boil:"name_slug" json:"name_slug" toml:"name_slug" yaml:"name_slug"`
	Metadata           null.JSON         `boil:"metadata" json:"metadata,omitempty" toml:"metadata" yaml:"metadata,omitempty"`
	HardwareTemplateID null.String       `` /* 131-byte string literal not displayed */

	R *deviceMakeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L deviceMakeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DeviceMake is an object representing the database table.

func FindDeviceMake

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

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

func (*DeviceMake) AddDeviceDefinitions

func (o *DeviceMake) AddDeviceDefinitions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DeviceDefinition) error

AddDeviceDefinitions adds the given related objects to the existing relationships of the device_make, optionally inserting them as new records. Appends related to o.R.DeviceDefinitions. Sets related.R.DeviceMake appropriately.

func (*DeviceMake) AddManufacturerTokenIntegrations added in v1.0.24

func (o *DeviceMake) AddManufacturerTokenIntegrations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Integration) error

AddManufacturerTokenIntegrations adds the given related objects to the existing relationships of the device_make, optionally inserting them as new records. Appends related to o.R.ManufacturerTokenIntegrations. Sets related.R.ManufacturerToken appropriately.

func (*DeviceMake) AddVinNumbers added in v0.7.9

func (o *DeviceMake) AddVinNumbers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*VinNumber) error

AddVinNumbers adds the given related objects to the existing relationships of the device_make, optionally inserting them as new records. Appends related to o.R.VinNumbers. Sets related.R.DeviceMake appropriately.

func (*DeviceMake) AddWmis added in v0.6.8

func (o *DeviceMake) AddWmis(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Wmi) error

AddWmis adds the given related objects to the existing relationships of the device_make, optionally inserting them as new records. Appends related to o.R.Wmis. Sets related.R.DeviceMake appropriately.

func (*DeviceMake) Delete

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

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

func (*DeviceMake) DeviceDefinitions

func (o *DeviceMake) DeviceDefinitions(mods ...qm.QueryMod) deviceDefinitionQuery

DeviceDefinitions retrieves all the device_definition's DeviceDefinitions with an executor.

func (*DeviceMake) Exists added in v0.9.8

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

Exists checks if the DeviceMake row exists.

func (*DeviceMake) Insert

func (o *DeviceMake) 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 (*DeviceMake) ManufacturerTokenIntegrations added in v1.0.24

func (o *DeviceMake) ManufacturerTokenIntegrations(mods ...qm.QueryMod) integrationQuery

ManufacturerTokenIntegrations retrieves all the integration's Integrations with an executor via manufacturer_token_id column.

func (*DeviceMake) Reload

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

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

func (*DeviceMake) RemoveManufacturerTokenIntegrations added in v1.0.24

func (o *DeviceMake) RemoveManufacturerTokenIntegrations(ctx context.Context, exec boil.ContextExecutor, related ...*Integration) error

RemoveManufacturerTokenIntegrations relationships from objects passed in. Removes related items from R.ManufacturerTokenIntegrations (uses pointer comparison, removal does not keep order) Sets related.R.ManufacturerToken.

func (*DeviceMake) SetManufacturerTokenIntegrations added in v1.0.24

func (o *DeviceMake) SetManufacturerTokenIntegrations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Integration) error

SetManufacturerTokenIntegrations removes all previously related items of the device_make replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ManufacturerToken's ManufacturerTokenIntegrations accordingly. Replaces o.R.ManufacturerTokenIntegrations with related. Sets related.R.ManufacturerToken's ManufacturerTokenIntegrations accordingly.

func (*DeviceMake) Update

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

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

func (o *DeviceMake) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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.

func (*DeviceMake) VinNumbers added in v0.7.9

func (o *DeviceMake) VinNumbers(mods ...qm.QueryMod) vinNumberQuery

VinNumbers retrieves all the vin_number's VinNumbers with an executor.

func (*DeviceMake) Wmis added in v0.6.8

func (o *DeviceMake) Wmis(mods ...qm.QueryMod) wmiQuery

Wmis retrieves all the wmis's Wmis with an executor.

type DeviceMakeHook

type DeviceMakeHook func(context.Context, boil.ContextExecutor, *DeviceMake) error

DeviceMakeHook is the signature for custom DeviceMake hook methods

type DeviceMakeSlice

type DeviceMakeSlice []*DeviceMake

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

func (DeviceMakeSlice) DeleteAll

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

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

func (*DeviceMakeSlice) ReloadAll

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

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

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

type DeviceStyle

type DeviceStyle 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"`
	Name               string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	ExternalStyleID    string      `boil:"external_style_id" json:"external_style_id" toml:"external_style_id" yaml:"external_style_id"`
	Source             string      `boil:"source" json:"source" toml:"source" yaml:"source"`
	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"`
	SubModel           string      `boil:"sub_model" json:"sub_model" toml:"sub_model" yaml:"sub_model"`
	HardwareTemplateID null.String `` /* 131-byte string literal not displayed */
	Metadata           null.JSON   `boil:"metadata" json:"metadata,omitempty" toml:"metadata" yaml:"metadata,omitempty"`

	R *deviceStyleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L deviceStyleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DeviceStyle is an object representing the database table.

func FindDeviceStyle

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

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

func (*DeviceStyle) AddStyleVinNumbers added in v0.7.9

func (o *DeviceStyle) AddStyleVinNumbers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*VinNumber) error

AddStyleVinNumbers adds the given related objects to the existing relationships of the device_style, optionally inserting them as new records. Appends related to o.R.StyleVinNumbers. Sets related.R.Style appropriately.

func (*DeviceStyle) Delete

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

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

func (*DeviceStyle) DeviceDefinition

func (o *DeviceStyle) DeviceDefinition(mods ...qm.QueryMod) deviceDefinitionQuery

DeviceDefinition pointed to by the foreign key.

func (*DeviceStyle) Exists added in v0.9.8

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

Exists checks if the DeviceStyle row exists.

func (*DeviceStyle) Insert

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

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

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

func (*DeviceStyle) RemoveStyleVinNumbers added in v0.7.9

func (o *DeviceStyle) RemoveStyleVinNumbers(ctx context.Context, exec boil.ContextExecutor, related ...*VinNumber) error

RemoveStyleVinNumbers relationships from objects passed in. Removes related items from R.StyleVinNumbers (uses pointer comparison, removal does not keep order) Sets related.R.Style.

func (*DeviceStyle) SetDeviceDefinition

func (o *DeviceStyle) SetDeviceDefinition(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeviceDefinition) error

SetDeviceDefinition of the deviceStyle to the related item. Sets o.R.DeviceDefinition to related. Adds o to related.R.DeviceStyles.

func (*DeviceStyle) SetStyleVinNumbers added in v0.7.9

func (o *DeviceStyle) SetStyleVinNumbers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*VinNumber) error

SetStyleVinNumbers removes all previously related items of the device_style replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Style's StyleVinNumbers accordingly. Replaces o.R.StyleVinNumbers with related. Sets related.R.Style's StyleVinNumbers accordingly.

func (*DeviceStyle) StyleVinNumbers added in v0.7.9

func (o *DeviceStyle) StyleVinNumbers(mods ...qm.QueryMod) vinNumberQuery

StyleVinNumbers retrieves all the vin_number's VinNumbers with an executor via style_id column.

func (*DeviceStyle) Update

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

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

func (o *DeviceStyle) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 DeviceStyleHook

type DeviceStyleHook func(context.Context, boil.ContextExecutor, *DeviceStyle) error

DeviceStyleHook is the signature for custom DeviceStyle hook methods

type DeviceStyleSlice

type DeviceStyleSlice []*DeviceStyle

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

func (DeviceStyleSlice) DeleteAll

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

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

func (*DeviceStyleSlice) ReloadAll

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

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

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

type DeviceType added in v0.2.0

type DeviceType struct {
	ID          string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	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"`
	Name        string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Metadatakey string    `boil:"metadatakey" json:"metadatakey" toml:"metadatakey" yaml:"metadatakey"`
	Properties  null.JSON `boil:"properties" json:"properties,omitempty" toml:"properties" yaml:"properties,omitempty"`

	R *deviceTypeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L deviceTypeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DeviceType is an object representing the database table.

func FindDeviceType added in v0.2.0

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

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

func (*DeviceType) AddDeviceDefinitions added in v0.2.0

func (o *DeviceType) AddDeviceDefinitions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DeviceDefinition) error

AddDeviceDefinitions adds the given related objects to the existing relationships of the device_type, optionally inserting them as new records. Appends related to o.R.DeviceDefinitions. Sets related.R.DeviceType appropriately.

func (*DeviceType) Delete added in v0.2.0

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

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

func (*DeviceType) DeviceDefinitions added in v0.2.0

func (o *DeviceType) DeviceDefinitions(mods ...qm.QueryMod) deviceDefinitionQuery

DeviceDefinitions retrieves all the device_definition's DeviceDefinitions with an executor.

func (*DeviceType) Exists added in v0.9.8

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

Exists checks if the DeviceType row exists.

func (*DeviceType) Insert added in v0.2.0

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

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

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

func (*DeviceType) RemoveDeviceDefinitions added in v0.2.0

func (o *DeviceType) RemoveDeviceDefinitions(ctx context.Context, exec boil.ContextExecutor, related ...*DeviceDefinition) error

RemoveDeviceDefinitions relationships from objects passed in. Removes related items from R.DeviceDefinitions (uses pointer comparison, removal does not keep order) Sets related.R.DeviceType.

func (*DeviceType) SetDeviceDefinitions added in v0.2.0

func (o *DeviceType) SetDeviceDefinitions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DeviceDefinition) error

SetDeviceDefinitions removes all previously related items of the device_type replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.DeviceType's DeviceDefinitions accordingly. Replaces o.R.DeviceDefinitions with related. Sets related.R.DeviceType's DeviceDefinitions accordingly.

func (*DeviceType) Update added in v0.2.0

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

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

func (o *DeviceType) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 DeviceTypeHook added in v0.2.0

type DeviceTypeHook func(context.Context, boil.ContextExecutor, *DeviceType) error

DeviceTypeHook is the signature for custom DeviceType hook methods

type DeviceTypeSlice added in v0.2.0

type DeviceTypeSlice []*DeviceType

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

func (DeviceTypeSlice) DeleteAll added in v0.2.0

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

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

func (*DeviceTypeSlice) ReloadAll added in v0.2.0

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

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

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

type Image added in v0.2.4

type Image 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"`
	FuelAPIID          null.String `boil:"fuel_api_id" json:"fuel_api_id,omitempty" toml:"fuel_api_id" yaml:"fuel_api_id,omitempty"`
	Width              null.Int    `boil:"width" json:"width,omitempty" toml:"width" yaml:"width,omitempty"`
	Height             null.Int    `boil:"height" json:"height,omitempty" toml:"height" yaml:"height,omitempty"`
	SourceURL          string      `boil:"source_url" json:"source_url" toml:"source_url" yaml:"source_url"`
	DimoS3URL          null.String `boil:"dimo_s3_url" json:"dimo_s3_url,omitempty" toml:"dimo_s3_url" yaml:"dimo_s3_url,omitempty"`
	Color              string      `boil:"color" json:"color" toml:"color" yaml:"color"`
	NotExactImage      bool        `boil:"not_exact_image" json:"not_exact_image" toml:"not_exact_image" yaml:"not_exact_image"`
	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 *imageR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L imageL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Image is an object representing the database table.

func FindImage added in v0.2.4

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

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

func (*Image) Delete added in v0.2.4

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

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

func (*Image) DeviceDefinition added in v0.2.4

func (o *Image) DeviceDefinition(mods ...qm.QueryMod) deviceDefinitionQuery

DeviceDefinition pointed to by the foreign key.

func (*Image) Exists added in v0.9.8

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

Exists checks if the Image row exists.

func (*Image) Insert added in v0.2.4

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

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

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

func (*Image) SetDeviceDefinition added in v0.2.4

func (o *Image) SetDeviceDefinition(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeviceDefinition) error

SetDeviceDefinition of the image to the related item. Sets o.R.DeviceDefinition to related. Adds o to related.R.Images.

func (*Image) Update added in v0.2.4

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

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

func (o *Image) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 ImageHook added in v0.2.4

type ImageHook func(context.Context, boil.ContextExecutor, *Image) error

ImageHook is the signature for custom Image hook methods

type ImageSlice added in v0.2.4

type ImageSlice []*Image

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

func (ImageSlice) DeleteAll added in v0.2.4

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

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

func (*ImageSlice) ReloadAll added in v0.2.4

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

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

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

type Integration

type Integration struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Type      string    `boil:"type" json:"type" toml:"type" yaml:"type"`
	Style     string    `boil:"style" json:"style" toml:"style" yaml:"style"`
	Vendor    string    `boil:"vendor" json:"vendor" toml:"vendor" yaml:"vendor"`
	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"`
	// How often can integration be called in seconds
	RefreshLimitSecs    int       `boil:"refresh_limit_secs" json:"refresh_limit_secs" toml:"refresh_limit_secs" yaml:"refresh_limit_secs"`
	Metadata            null.JSON `boil:"metadata" json:"metadata,omitempty" toml:"metadata" yaml:"metadata,omitempty"`
	TokenID             null.Int  `boil:"token_id" json:"token_id,omitempty" toml:"token_id" yaml:"token_id,omitempty"`
	Points              int       `boil:"points" json:"points" toml:"points" yaml:"points"`
	ManufacturerTokenID null.Int  `` /* 135-byte string literal not displayed */

	R *integrationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L integrationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Integration is an object representing the database table.

func FindIntegration

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

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

func (*Integration) AddDeviceIntegrations

func (o *Integration) AddDeviceIntegrations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DeviceIntegration) error

AddDeviceIntegrations adds the given related objects to the existing relationships of the integration, optionally inserting them as new records. Appends related to o.R.DeviceIntegrations. Sets related.R.Integration appropriately.

func (*Integration) Delete

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

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

func (*Integration) DeviceIntegrations

func (o *Integration) DeviceIntegrations(mods ...qm.QueryMod) deviceIntegrationQuery

DeviceIntegrations retrieves all the device_integration's DeviceIntegrations with an executor.

func (*Integration) Exists added in v0.9.8

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

Exists checks if the Integration row exists.

func (*Integration) Insert

func (o *Integration) 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 (*Integration) ManufacturerToken added in v1.0.24

func (o *Integration) ManufacturerToken(mods ...qm.QueryMod) deviceMakeQuery

ManufacturerToken pointed to by the foreign key.

func (*Integration) Reload

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

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

func (*Integration) RemoveManufacturerToken added in v1.0.24

func (o *Integration) RemoveManufacturerToken(ctx context.Context, exec boil.ContextExecutor, related *DeviceMake) error

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

func (*Integration) SetManufacturerToken added in v1.0.24

func (o *Integration) SetManufacturerToken(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeviceMake) error

SetManufacturerToken of the integration to the related item. Sets o.R.ManufacturerToken to related. Adds o to related.R.ManufacturerTokenIntegrations.

func (*Integration) Update

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

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

func (o *Integration) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 IntegrationFeature added in v0.1.28

type IntegrationFeature struct {
	FeatureKey      string       `boil:"feature_key" json:"feature_key" toml:"feature_key" yaml:"feature_key"`
	ElasticProperty string       `boil:"elastic_property" json:"elastic_property" toml:"elastic_property" yaml:"elastic_property"`
	DisplayName     string       `boil:"display_name" json:"display_name" toml:"display_name" yaml:"display_name"`
	CSSIcon         null.String  `boil:"css_icon" json:"css_icon,omitempty" toml:"css_icon" yaml:"css_icon,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"`
	FeatureWeight   null.Float64 `boil:"feature_weight" json:"feature_weight,omitempty" toml:"feature_weight" yaml:"feature_weight,omitempty"`
	PowertrainType  string       `boil:"powertrain_type" json:"powertrain_type" toml:"powertrain_type" yaml:"powertrain_type"`

	R *integrationFeatureR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L integrationFeatureL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

IntegrationFeature is an object representing the database table.

func FindIntegrationFeature added in v0.1.28

func FindIntegrationFeature(ctx context.Context, exec boil.ContextExecutor, featureKey string, selectCols ...string) (*IntegrationFeature, error)

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

func (*IntegrationFeature) Delete added in v0.1.28

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

func (*IntegrationFeature) Exists added in v0.9.8

Exists checks if the IntegrationFeature row exists.

func (*IntegrationFeature) Insert added in v0.1.28

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

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

func (*IntegrationFeature) Update added in v0.1.28

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

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

func (o *IntegrationFeature) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 IntegrationFeatureHook added in v0.1.28

type IntegrationFeatureHook func(context.Context, boil.ContextExecutor, *IntegrationFeature) error

IntegrationFeatureHook is the signature for custom IntegrationFeature hook methods

type IntegrationFeatureSlice added in v0.1.28

type IntegrationFeatureSlice []*IntegrationFeature

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

func (IntegrationFeatureSlice) DeleteAll added in v0.1.28

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

func (*IntegrationFeatureSlice) ReloadAll added in v0.1.28

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

func (IntegrationFeatureSlice) UpdateAll added in v0.1.28

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

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

type IntegrationHook

type IntegrationHook func(context.Context, boil.ContextExecutor, *Integration) error

IntegrationHook is the signature for custom Integration hook methods

type IntegrationSlice

type IntegrationSlice []*Integration

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

func (IntegrationSlice) DeleteAll

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

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

func (*IntegrationSlice) ReloadAll

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

func (o IntegrationSlice) 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 UpsertOptionFunc added in v1.1.1

type UpsertOptionFunc func(o *UpsertOptions)

func UpsertConflictTarget added in v1.1.1

func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc

func UpsertUpdateSet added in v1.1.1

func UpsertUpdateSet(updateSet string) UpsertOptionFunc

type UpsertOptions added in v1.1.1

type UpsertOptions struct {
	// contains filtered or unexported fields
}

type VinNumber added in v0.7.9

type VinNumber struct {
	Vin                string      `boil:"vin" json:"vin" toml:"vin" yaml:"vin"`
	Wmi                string      `boil:"wmi" json:"wmi" toml:"wmi" yaml:"wmi"`
	VDS                string      `boil:"vds" json:"vds" toml:"vds" yaml:"vds"`
	CheckDigit         string      `boil:"check_digit" json:"check_digit" toml:"check_digit" yaml:"check_digit"`
	SerialNumber       string      `boil:"serial_number" json:"serial_number" toml:"serial_number" yaml:"serial_number"`
	Vis                string      `boil:"vis" json:"vis" toml:"vis" yaml:"vis"`
	DeviceMakeID       string      `boil:"device_make_id" json:"device_make_id" toml:"device_make_id" yaml:"device_make_id"`
	DeviceDefinitionID string      `boil:"device_definition_id" json:"device_definition_id" toml:"device_definition_id" yaml:"device_definition_id"`
	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"`
	StyleID            null.String `boil:"style_id" json:"style_id,omitempty" toml:"style_id" yaml:"style_id,omitempty"`
	DecodeProvider     null.String `boil:"decode_provider" json:"decode_provider,omitempty" toml:"decode_provider" yaml:"decode_provider,omitempty"`
	Year               int         `boil:"year" json:"year" toml:"year" yaml:"year"`
	VincarioData       null.JSON   `boil:"vincario_data" json:"vincario_data,omitempty" toml:"vincario_data" yaml:"vincario_data,omitempty"`
	DrivlyData         null.JSON   `boil:"drivly_data" json:"drivly_data,omitempty" toml:"drivly_data" yaml:"drivly_data,omitempty"`
	AutoisoData        null.JSON   `boil:"autoiso_data" json:"autoiso_data,omitempty" toml:"autoiso_data" yaml:"autoiso_data,omitempty"`
	DatgroupData       null.JSON   `boil:"datgroup_data" json:"datgroup_data,omitempty" toml:"datgroup_data" yaml:"datgroup_data,omitempty"`

	R *vinNumberR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L vinNumberL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

VinNumber is an object representing the database table.

func FindVinNumber added in v0.7.9

func FindVinNumber(ctx context.Context, exec boil.ContextExecutor, vin string, selectCols ...string) (*VinNumber, error)

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

func (*VinNumber) Delete added in v0.7.9

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

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

func (*VinNumber) DeviceDefinition added in v0.7.9

func (o *VinNumber) DeviceDefinition(mods ...qm.QueryMod) deviceDefinitionQuery

DeviceDefinition pointed to by the foreign key.

func (*VinNumber) DeviceMake added in v0.7.9

func (o *VinNumber) DeviceMake(mods ...qm.QueryMod) deviceMakeQuery

DeviceMake pointed to by the foreign key.

func (*VinNumber) Exists added in v0.9.8

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

Exists checks if the VinNumber row exists.

func (*VinNumber) Insert added in v0.7.9

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

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

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

func (*VinNumber) RemoveStyle added in v0.7.9

func (o *VinNumber) RemoveStyle(ctx context.Context, exec boil.ContextExecutor, related *DeviceStyle) error

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

func (*VinNumber) SetDeviceDefinition added in v0.7.9

func (o *VinNumber) SetDeviceDefinition(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeviceDefinition) error

SetDeviceDefinition of the vinNumber to the related item. Sets o.R.DeviceDefinition to related. Adds o to related.R.VinNumbers.

func (*VinNumber) SetDeviceMake added in v0.7.9

func (o *VinNumber) SetDeviceMake(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeviceMake) error

SetDeviceMake of the vinNumber to the related item. Sets o.R.DeviceMake to related. Adds o to related.R.VinNumbers.

func (*VinNumber) SetStyle added in v0.7.9

func (o *VinNumber) SetStyle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeviceStyle) error

SetStyle of the vinNumber to the related item. Sets o.R.Style to related. Adds o to related.R.StyleVinNumbers.

func (*VinNumber) Style added in v0.7.9

func (o *VinNumber) Style(mods ...qm.QueryMod) deviceStyleQuery

Style pointed to by the foreign key.

func (*VinNumber) Update added in v0.7.9

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

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

func (o *VinNumber) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 VinNumberHook added in v0.7.9

type VinNumberHook func(context.Context, boil.ContextExecutor, *VinNumber) error

VinNumberHook is the signature for custom VinNumber hook methods

type VinNumberSlice added in v0.7.9

type VinNumberSlice []*VinNumber

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

func (VinNumberSlice) DeleteAll added in v0.7.9

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

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

func (*VinNumberSlice) ReloadAll added in v0.7.9

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

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

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

type Wmi added in v0.6.8

type Wmi struct {
	Wmi          string    `boil:"wmi" json:"wmi" toml:"wmi" yaml:"wmi"`
	DeviceMakeID string    `boil:"device_make_id" json:"device_make_id" toml:"device_make_id" yaml:"device_make_id"`
	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 *wmiR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L wmiL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Wmi is an object representing the database table.

func FindWmi added in v0.6.8

func FindWmi(ctx context.Context, exec boil.ContextExecutor, wmi string, deviceMakeID string, selectCols ...string) (*Wmi, error)

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

func (*Wmi) Delete added in v0.6.8

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

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

func (*Wmi) DeviceMake added in v0.6.8

func (o *Wmi) DeviceMake(mods ...qm.QueryMod) deviceMakeQuery

DeviceMake pointed to by the foreign key.

func (*Wmi) Exists added in v0.9.8

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

Exists checks if the Wmi row exists.

func (*Wmi) Insert added in v0.6.8

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

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

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

func (*Wmi) SetDeviceMake added in v0.6.8

func (o *Wmi) SetDeviceMake(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeviceMake) error

SetDeviceMake of the wmi to the related item. Sets o.R.DeviceMake to related. Adds o to related.R.Wmis.

func (*Wmi) Update added in v0.6.8

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

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

func (o *Wmi) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 WmiHook added in v0.6.8

type WmiHook func(context.Context, boil.ContextExecutor, *Wmi) error

WmiHook is the signature for custom Wmi hook methods

type WmiSlice added in v0.6.8

type WmiSlice []*Wmi

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

func (WmiSlice) DeleteAll added in v0.6.8

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

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

func (*WmiSlice) ReloadAll added in v0.6.8

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

func (o WmiSlice) 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