models

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AftermarketDeviceColumns = struct {
	ID               string
	Address          string
	Owner            string
	Serial           string
	Imei             string
	MintedAt         string
	VehicleID        string
	Beneficiary      string
	ManufacturerID   string
	ClaimedAt        string
	DevEui           string
	HardwareRevision string
	PairedAt         string
}{
	ID:               "id",
	Address:          "address",
	Owner:            "owner",
	Serial:           "serial",
	Imei:             "imei",
	MintedAt:         "minted_at",
	VehicleID:        "vehicle_id",
	Beneficiary:      "beneficiary",
	ManufacturerID:   "manufacturer_id",
	ClaimedAt:        "claimed_at",
	DevEui:           "dev_eui",
	HardwareRevision: "hardware_revision",
	PairedAt:         "paired_at",
}
View Source
var AftermarketDeviceRels = struct {
	Manufacturer            string
	Vehicle                 string
	AftermarketTokenRewards string
}{
	Manufacturer:            "Manufacturer",
	Vehicle:                 "Vehicle",
	AftermarketTokenRewards: "AftermarketTokenRewards",
}

AftermarketDeviceRels is where relationship names are stored.

View Source
var AftermarketDeviceTableColumns = struct {
	ID               string
	Address          string
	Owner            string
	Serial           string
	Imei             string
	MintedAt         string
	VehicleID        string
	Beneficiary      string
	ManufacturerID   string
	ClaimedAt        string
	DevEui           string
	HardwareRevision string
	PairedAt         string
}{
	ID:               "aftermarket_devices.id",
	Address:          "aftermarket_devices.address",
	Owner:            "aftermarket_devices.owner",
	Serial:           "aftermarket_devices.serial",
	Imei:             "aftermarket_devices.imei",
	MintedAt:         "aftermarket_devices.minted_at",
	VehicleID:        "aftermarket_devices.vehicle_id",
	Beneficiary:      "aftermarket_devices.beneficiary",
	ManufacturerID:   "aftermarket_devices.manufacturer_id",
	ClaimedAt:        "aftermarket_devices.claimed_at",
	DevEui:           "aftermarket_devices.dev_eui",
	HardwareRevision: "aftermarket_devices.hardware_revision",
	PairedAt:         "aftermarket_devices.paired_at",
}
View Source
var AftermarketDeviceWhere = struct {
	ID               whereHelperint
	Address          whereHelper__byte
	Owner            whereHelper__byte
	Serial           whereHelpernull_String
	Imei             whereHelpernull_String
	MintedAt         whereHelpertime_Time
	VehicleID        whereHelpernull_Int
	Beneficiary      whereHelper__byte
	ManufacturerID   whereHelperint
	ClaimedAt        whereHelpernull_Time
	DevEui           whereHelpernull_String
	HardwareRevision whereHelpernull_String
	PairedAt         whereHelpernull_Time
}{
	ID:               whereHelperint{/* contains filtered or unexported fields */},
	Address:          whereHelper__byte{/* contains filtered or unexported fields */},
	Owner:            whereHelper__byte{/* contains filtered or unexported fields */},
	Serial:           whereHelpernull_String{/* contains filtered or unexported fields */},
	Imei:             whereHelpernull_String{/* contains filtered or unexported fields */},
	MintedAt:         whereHelpertime_Time{/* contains filtered or unexported fields */},
	VehicleID:        whereHelpernull_Int{/* contains filtered or unexported fields */},
	Beneficiary:      whereHelper__byte{/* contains filtered or unexported fields */},
	ManufacturerID:   whereHelperint{/* contains filtered or unexported fields */},
	ClaimedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
	DevEui:           whereHelpernull_String{/* contains filtered or unexported fields */},
	HardwareRevision: whereHelpernull_String{/* contains filtered or unexported fields */},
	PairedAt:         whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var ConnectionColumns = struct {
	Address         string
	Owner           string
	MintedAt        string
	ID              string
	IntegrationNode string
}{
	Address:         "address",
	Owner:           "owner",
	MintedAt:        "minted_at",
	ID:              "id",
	IntegrationNode: "integration_node",
}
View Source
var ConnectionRels = struct {
	SyntheticDevices string
}{
	SyntheticDevices: "SyntheticDevices",
}

ConnectionRels is where relationship names are stored.

View Source
var ConnectionTableColumns = struct {
	Address         string
	Owner           string
	MintedAt        string
	ID              string
	IntegrationNode string
}{
	Address:         "connections.address",
	Owner:           "connections.owner",
	MintedAt:        "connections.minted_at",
	ID:              "connections.id",
	IntegrationNode: "connections.integration_node",
}
View Source
var ConnectionWhere = struct {
	Address         whereHelper__byte
	Owner           whereHelper__byte
	MintedAt        whereHelpertime_Time
	ID              whereHelper__byte
	IntegrationNode whereHelpernull_Int
}{
	Address:         whereHelper__byte{/* contains filtered or unexported fields */},
	Owner:           whereHelper__byte{/* contains filtered or unexported fields */},
	MintedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	ID:              whereHelper__byte{/* contains filtered or unexported fields */},
	IntegrationNode: whereHelpernull_Int{/* contains filtered or unexported fields */},
}
View Source
var DCNColumns = struct {
	Node         string
	OwnerAddress string
	Expiration   string
	Name         string
	VehicleID    string
	MintedAt     string
}{
	Node:         "node",
	OwnerAddress: "owner_address",
	Expiration:   "expiration",
	Name:         "name",
	VehicleID:    "vehicle_id",
	MintedAt:     "minted_at",
}
View Source
var DCNRels = struct {
	Vehicle string
}{
	Vehicle: "Vehicle",
}

DCNRels is where relationship names are stored.

View Source
var DCNTableColumns = struct {
	Node         string
	OwnerAddress string
	Expiration   string
	Name         string
	VehicleID    string
	MintedAt     string
}{
	Node:         "dcns.node",
	OwnerAddress: "dcns.owner_address",
	Expiration:   "dcns.expiration",
	Name:         "dcns.name",
	VehicleID:    "dcns.vehicle_id",
	MintedAt:     "dcns.minted_at",
}
View Source
var DCNWhere = struct {
	Node         whereHelper__byte
	OwnerAddress whereHelper__byte
	Expiration   whereHelpernull_Time
	Name         whereHelpernull_String
	VehicleID    whereHelpernull_Int
	MintedAt     whereHelpertime_Time
}{
	Node:         whereHelper__byte{/* contains filtered or unexported fields */},
	OwnerAddress: whereHelper__byte{/* contains filtered or unexported fields */},
	Expiration:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	Name:         whereHelpernull_String{/* contains filtered or unexported fields */},
	VehicleID:    whereHelpernull_Int{/* contains filtered or unexported fields */},
	MintedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var DeveloperLicenseColumns = struct {
	ID       string
	Owner    string
	ClientID string
	Alias    string
	MintedAt string
}{
	ID:       "id",
	Owner:    "owner",
	ClientID: "client_id",
	Alias:    "alias",
	MintedAt: "minted_at",
}
View Source
var DeveloperLicenseRels = struct {
	RedirectUris string
	Signers      string
}{
	RedirectUris: "RedirectUris",
	Signers:      "Signers",
}

DeveloperLicenseRels is where relationship names are stored.

View Source
var DeveloperLicenseTableColumns = struct {
	ID       string
	Owner    string
	ClientID string
	Alias    string
	MintedAt string
}{
	ID:       "developer_licenses.id",
	Owner:    "developer_licenses.owner",
	ClientID: "developer_licenses.client_id",
	Alias:    "developer_licenses.alias",
	MintedAt: "developer_licenses.minted_at",
}
View Source
var DeveloperLicenseWhere = struct {
	ID       whereHelperint
	Owner    whereHelper__byte
	ClientID whereHelper__byte
	Alias    whereHelpernull_String
	MintedAt whereHelpertime_Time
}{
	ID:       whereHelperint{/* contains filtered or unexported fields */},
	Owner:    whereHelper__byte{/* contains filtered or unexported fields */},
	ClientID: whereHelper__byte{/* contains filtered or unexported fields */},
	Alias:    whereHelpernull_String{/* contains filtered or unexported fields */},
	MintedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var ManufacturerColumns = struct {
	ID       string
	Name     string
	Owner    string
	MintedAt string
	TableID  string
	Slug     string
}{
	ID:       "id",
	Name:     "name",
	Owner:    "owner",
	MintedAt: "minted_at",
	TableID:  "table_id",
	Slug:     "slug",
}
View Source
var ManufacturerRels = struct {
	AftermarketDevices string
	Vehicles           string
}{
	AftermarketDevices: "AftermarketDevices",
	Vehicles:           "Vehicles",
}

ManufacturerRels is where relationship names are stored.

View Source
var ManufacturerTableColumns = struct {
	ID       string
	Name     string
	Owner    string
	MintedAt string
	TableID  string
	Slug     string
}{
	ID:       "manufacturers.id",
	Name:     "manufacturers.name",
	Owner:    "manufacturers.owner",
	MintedAt: "manufacturers.minted_at",
	TableID:  "manufacturers.table_id",
	Slug:     "manufacturers.slug",
}
View Source
var ManufacturerWhere = struct {
	ID       whereHelperint
	Name     whereHelperstring
	Owner    whereHelper__byte
	MintedAt whereHelpertime_Time
	TableID  whereHelpernull_Int
	Slug     whereHelperstring
}{
	ID:       whereHelperint{/* contains filtered or unexported fields */},
	Name:     whereHelperstring{/* contains filtered or unexported fields */},
	Owner:    whereHelper__byte{/* contains filtered or unexported fields */},
	MintedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	TableID:  whereHelpernull_Int{/* contains filtered or unexported fields */},
	Slug:     whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var PrivilegeColumns = struct {
	TokenID     string
	PrivilegeID string
	UserAddress string
	SetAt       string
	ExpiresAt   string
}{
	TokenID:     "token_id",
	PrivilegeID: "privilege_id",
	UserAddress: "user_address",
	SetAt:       "set_at",
	ExpiresAt:   "expires_at",
}
View Source
var PrivilegeRels = struct {
	Token string
}{
	Token: "Token",
}

PrivilegeRels is where relationship names are stored.

View Source
var PrivilegeTableColumns = struct {
	TokenID     string
	PrivilegeID string
	UserAddress string
	SetAt       string
	ExpiresAt   string
}{
	TokenID:     "privileges.token_id",
	PrivilegeID: "privileges.privilege_id",
	UserAddress: "privileges.user_address",
	SetAt:       "privileges.set_at",
	ExpiresAt:   "privileges.expires_at",
}
View Source
var PrivilegeWhere = struct {
	TokenID     whereHelperint
	PrivilegeID whereHelperint
	UserAddress whereHelper__byte
	SetAt       whereHelpertime_Time
	ExpiresAt   whereHelpertime_Time
}{
	TokenID:     whereHelperint{/* contains filtered or unexported fields */},
	PrivilegeID: whereHelperint{/* contains filtered or unexported fields */},
	UserAddress: whereHelper__byte{/* contains filtered or unexported fields */},
	SetAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	ExpiresAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var RedirectURIColumns = struct {
	DeveloperLicenseID string
	URI                string
	EnabledAt          string
}{
	DeveloperLicenseID: "developer_license_id",
	URI:                "uri",
	EnabledAt:          "enabled_at",
}
View Source
var RedirectURIRels = struct {
	DeveloperLicense string
}{
	DeveloperLicense: "DeveloperLicense",
}

RedirectURIRels is where relationship names are stored.

View Source
var RedirectURITableColumns = struct {
	DeveloperLicenseID string
	URI                string
	EnabledAt          string
}{
	DeveloperLicenseID: "redirect_uris.developer_license_id",
	URI:                "redirect_uris.uri",
	EnabledAt:          "redirect_uris.enabled_at",
}
View Source
var RedirectURIWhere = struct {
	DeveloperLicenseID whereHelperint
	URI                whereHelperstring
	EnabledAt          whereHelpertime_Time
}{
	DeveloperLicenseID: whereHelperint{/* contains filtered or unexported fields */},
	URI:                whereHelperstring{/* contains filtered or unexported fields */},
	EnabledAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var RewardColumns = struct {
	IssuanceWeek        string
	VehicleID           string
	ConnectionStreak    string
	StreakEarnings      string
	AftermarketTokenID  string
	AftermarketEarnings string
	SyntheticTokenID    string
	SyntheticEarnings   string
	ReceivedByAddress   string
	EarnedAt            string
}{
	IssuanceWeek:        "issuance_week",
	VehicleID:           "vehicle_id",
	ConnectionStreak:    "connection_streak",
	StreakEarnings:      "streak_earnings",
	AftermarketTokenID:  "aftermarket_token_id",
	AftermarketEarnings: "aftermarket_earnings",
	SyntheticTokenID:    "synthetic_token_id",
	SyntheticEarnings:   "synthetic_earnings",
	ReceivedByAddress:   "received_by_address",
	EarnedAt:            "earned_at",
}
View Source
var RewardRels = struct {
	AftermarketToken string
	SyntheticToken   string
	Vehicle          string
}{
	AftermarketToken: "AftermarketToken",
	SyntheticToken:   "SyntheticToken",
	Vehicle:          "Vehicle",
}

RewardRels is where relationship names are stored.

View Source
var RewardTableColumns = struct {
	IssuanceWeek        string
	VehicleID           string
	ConnectionStreak    string
	StreakEarnings      string
	AftermarketTokenID  string
	AftermarketEarnings string
	SyntheticTokenID    string
	SyntheticEarnings   string
	ReceivedByAddress   string
	EarnedAt            string
}{
	IssuanceWeek:        "rewards.issuance_week",
	VehicleID:           "rewards.vehicle_id",
	ConnectionStreak:    "rewards.connection_streak",
	StreakEarnings:      "rewards.streak_earnings",
	AftermarketTokenID:  "rewards.aftermarket_token_id",
	AftermarketEarnings: "rewards.aftermarket_earnings",
	SyntheticTokenID:    "rewards.synthetic_token_id",
	SyntheticEarnings:   "rewards.synthetic_earnings",
	ReceivedByAddress:   "rewards.received_by_address",
	EarnedAt:            "rewards.earned_at",
}
View Source
var RewardWhere = struct {
	IssuanceWeek        whereHelperint
	VehicleID           whereHelperint
	ConnectionStreak    whereHelpernull_Int
	StreakEarnings      whereHelpertypes_Decimal
	AftermarketTokenID  whereHelpernull_Int
	AftermarketEarnings whereHelpertypes_Decimal
	SyntheticTokenID    whereHelpernull_Int
	SyntheticEarnings   whereHelpertypes_Decimal
	ReceivedByAddress   whereHelpernull_Bytes
	EarnedAt            whereHelpertime_Time
}{
	IssuanceWeek:        whereHelperint{/* contains filtered or unexported fields */},
	VehicleID:           whereHelperint{/* contains filtered or unexported fields */},
	ConnectionStreak:    whereHelpernull_Int{/* contains filtered or unexported fields */},
	StreakEarnings:      whereHelpertypes_Decimal{/* contains filtered or unexported fields */},
	AftermarketTokenID:  whereHelpernull_Int{/* contains filtered or unexported fields */},
	AftermarketEarnings: whereHelpertypes_Decimal{/* contains filtered or unexported fields */},
	SyntheticTokenID:    whereHelpernull_Int{/* contains filtered or unexported fields */},
	SyntheticEarnings:   whereHelpertypes_Decimal{/* contains filtered or unexported fields */},
	ReceivedByAddress:   whereHelpernull_Bytes{/* contains filtered or unexported fields */},
	EarnedAt:            whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var SignerColumns = struct {
	DeveloperLicenseID string
	Signer             string
	EnabledAt          string
}{
	DeveloperLicenseID: "developer_license_id",
	Signer:             "signer",
	EnabledAt:          "enabled_at",
}
View Source
var SignerRels = struct {
	DeveloperLicense string
}{
	DeveloperLicense: "DeveloperLicense",
}

SignerRels is where relationship names are stored.

View Source
var SignerTableColumns = struct {
	DeveloperLicenseID string
	Signer             string
	EnabledAt          string
}{
	DeveloperLicenseID: "signers.developer_license_id",
	Signer:             "signers.signer",
	EnabledAt:          "signers.enabled_at",
}
View Source
var SignerWhere = struct {
	DeveloperLicenseID whereHelperint
	Signer             whereHelper__byte
	EnabledAt          whereHelpertime_Time
}{
	DeveloperLicenseID: whereHelperint{/* contains filtered or unexported fields */},
	Signer:             whereHelper__byte{/* contains filtered or unexported fields */},
	EnabledAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var StakeColumns = struct {
	ID          string
	Owner       string
	Level       string
	Points      string
	Amount      string
	VehicleID   string
	StakedAt    string
	EndsAt      string
	WithdrawnAt string
}{
	ID:          "id",
	Owner:       "owner",
	Level:       "level",
	Points:      "points",
	Amount:      "amount",
	VehicleID:   "vehicle_id",
	StakedAt:    "staked_at",
	EndsAt:      "ends_at",
	WithdrawnAt: "withdrawn_at",
}
View Source
var StakeRels = struct {
	Vehicle string
}{
	Vehicle: "Vehicle",
}

StakeRels is where relationship names are stored.

View Source
var StakeTableColumns = struct {
	ID          string
	Owner       string
	Level       string
	Points      string
	Amount      string
	VehicleID   string
	StakedAt    string
	EndsAt      string
	WithdrawnAt string
}{
	ID:          "stakes.id",
	Owner:       "stakes.owner",
	Level:       "stakes.level",
	Points:      "stakes.points",
	Amount:      "stakes.amount",
	VehicleID:   "stakes.vehicle_id",
	StakedAt:    "stakes.staked_at",
	EndsAt:      "stakes.ends_at",
	WithdrawnAt: "stakes.withdrawn_at",
}
View Source
var StakeWhere = struct {
	ID          whereHelperint
	Owner       whereHelper__byte
	Level       whereHelperint
	Points      whereHelperint
	Amount      whereHelpertypes_Decimal
	VehicleID   whereHelpernull_Int
	StakedAt    whereHelpertime_Time
	EndsAt      whereHelpertime_Time
	WithdrawnAt whereHelpernull_Time
}{
	ID:          whereHelperint{/* contains filtered or unexported fields */},
	Owner:       whereHelper__byte{/* contains filtered or unexported fields */},
	Level:       whereHelperint{/* contains filtered or unexported fields */},
	Points:      whereHelperint{/* contains filtered or unexported fields */},
	Amount:      whereHelpertypes_Decimal{/* contains filtered or unexported fields */},
	VehicleID:   whereHelpernull_Int{/* contains filtered or unexported fields */},
	StakedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	EndsAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	WithdrawnAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var StorageNodeColumns = struct {
	ID       string
	Label    string
	Address  string
	Owner    string
	URI      string
	MintedAt string
}{
	ID:       "id",
	Label:    "label",
	Address:  "address",
	Owner:    "owner",
	URI:      "uri",
	MintedAt: "minted_at",
}
View Source
var StorageNodeRels = struct {
	Vehicles string
}{
	Vehicles: "Vehicles",
}

StorageNodeRels is where relationship names are stored.

View Source
var StorageNodeTableColumns = struct {
	ID       string
	Label    string
	Address  string
	Owner    string
	URI      string
	MintedAt string
}{
	ID:       "storage_nodes.id",
	Label:    "storage_nodes.label",
	Address:  "storage_nodes.address",
	Owner:    "storage_nodes.owner",
	URI:      "storage_nodes.uri",
	MintedAt: "storage_nodes.minted_at",
}
View Source
var StorageNodeWhere = struct {
	ID       whereHelper__byte
	Label    whereHelperstring
	Address  whereHelper__byte
	Owner    whereHelper__byte
	URI      whereHelperstring
	MintedAt whereHelpertime_Time
}{
	ID:       whereHelper__byte{/* contains filtered or unexported fields */},
	Label:    whereHelperstring{/* contains filtered or unexported fields */},
	Address:  whereHelper__byte{/* contains filtered or unexported fields */},
	Owner:    whereHelper__byte{/* contains filtered or unexported fields */},
	URI:      whereHelperstring{/* contains filtered or unexported fields */},
	MintedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var SyntheticDeviceColumns = struct {
	ID            string
	IntegrationID string
	VehicleID     string
	DeviceAddress string
	MintedAt      string
	ConnectionID  string
}{
	ID:            "id",
	IntegrationID: "integration_id",
	VehicleID:     "vehicle_id",
	DeviceAddress: "device_address",
	MintedAt:      "minted_at",
	ConnectionID:  "connection_id",
}
View Source
var SyntheticDeviceRels = struct {
	Connection            string
	Vehicle               string
	SyntheticTokenRewards string
}{
	Connection:            "Connection",
	Vehicle:               "Vehicle",
	SyntheticTokenRewards: "SyntheticTokenRewards",
}

SyntheticDeviceRels is where relationship names are stored.

View Source
var SyntheticDeviceTableColumns = struct {
	ID            string
	IntegrationID string
	VehicleID     string
	DeviceAddress string
	MintedAt      string
	ConnectionID  string
}{
	ID:            "synthetic_devices.id",
	IntegrationID: "synthetic_devices.integration_id",
	VehicleID:     "synthetic_devices.vehicle_id",
	DeviceAddress: "synthetic_devices.device_address",
	MintedAt:      "synthetic_devices.minted_at",
	ConnectionID:  "synthetic_devices.connection_id",
}
View Source
var SyntheticDeviceWhere = struct {
	ID            whereHelperint
	IntegrationID whereHelperint
	VehicleID     whereHelperint
	DeviceAddress whereHelper__byte
	MintedAt      whereHelpertime_Time
	ConnectionID  whereHelpernull_Bytes
}{
	ID:            whereHelperint{/* contains filtered or unexported fields */},
	IntegrationID: whereHelperint{/* contains filtered or unexported fields */},
	VehicleID:     whereHelperint{/* contains filtered or unexported fields */},
	DeviceAddress: whereHelper__byte{/* contains filtered or unexported fields */},
	MintedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	ConnectionID:  whereHelpernull_Bytes{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	AftermarketDevices string
	Connections        string
	DCNS               string
	DeveloperLicenses  string
	Manufacturers      string
	Privileges         string
	RedirectUris       string
	Rewards            string
	Signers            string
	Stakes             string
	StorageNodes       string
	SyntheticDevices   string
	VehicleSacds       string
	Vehicles           string
}{
	AftermarketDevices: "aftermarket_devices",
	Connections:        "connections",
	DCNS:               "dcns",
	DeveloperLicenses:  "developer_licenses",
	Manufacturers:      "manufacturers",
	Privileges:         "privileges",
	RedirectUris:       "redirect_uris",
	Rewards:            "rewards",
	Signers:            "signers",
	Stakes:             "stakes",
	StorageNodes:       "storage_nodes",
	SyntheticDevices:   "synthetic_devices",
	VehicleSacds:       "vehicle_sacds",
	Vehicles:           "vehicles",
}
View Source
var VehicleColumns = struct {
	ID                 string
	OwnerAddress       string
	Make               string
	Model              string
	Year               string
	MintedAt           string
	ManufacturerID     string
	ImageURI           string
	DeviceDefinitionID string
	StorageNodeID      string
}{
	ID:                 "id",
	OwnerAddress:       "owner_address",
	Make:               "make",
	Model:              "model",
	Year:               "year",
	MintedAt:           "minted_at",
	ManufacturerID:     "manufacturer_id",
	ImageURI:           "image_uri",
	DeviceDefinitionID: "device_definition_id",
	StorageNodeID:      "storage_node_id",
}
View Source
var VehicleRels = struct {
	Manufacturer      string
	StorageNode       string
	AftermarketDevice string
	Stake             string
	SyntheticDevice   string
	DCNS              string
	TokenPrivileges   string
	Rewards           string
	VehicleSacds      string
}{
	Manufacturer:      "Manufacturer",
	StorageNode:       "StorageNode",
	AftermarketDevice: "AftermarketDevice",
	Stake:             "Stake",
	SyntheticDevice:   "SyntheticDevice",
	DCNS:              "DCNS",
	TokenPrivileges:   "TokenPrivileges",
	Rewards:           "Rewards",
	VehicleSacds:      "VehicleSacds",
}

VehicleRels is where relationship names are stored.

View Source
var VehicleSacdColumns = struct {
	VehicleID   string
	Grantee     string
	Permissions string
	Source      string
	CreatedAt   string
	ExpiresAt   string
}{
	VehicleID:   "vehicle_id",
	Grantee:     "grantee",
	Permissions: "permissions",
	Source:      "source",
	CreatedAt:   "created_at",
	ExpiresAt:   "expires_at",
}
View Source
var VehicleSacdRels = struct {
	Vehicle string
}{
	Vehicle: "Vehicle",
}

VehicleSacdRels is where relationship names are stored.

View Source
var VehicleSacdTableColumns = struct {
	VehicleID   string
	Grantee     string
	Permissions string
	Source      string
	CreatedAt   string
	ExpiresAt   string
}{
	VehicleID:   "vehicle_sacds.vehicle_id",
	Grantee:     "vehicle_sacds.grantee",
	Permissions: "vehicle_sacds.permissions",
	Source:      "vehicle_sacds.source",
	CreatedAt:   "vehicle_sacds.created_at",
	ExpiresAt:   "vehicle_sacds.expires_at",
}
View Source
var VehicleSacdWhere = struct {
	VehicleID   whereHelperint
	Grantee     whereHelper__byte
	Permissions whereHelperstring
	Source      whereHelperstring
	CreatedAt   whereHelpertime_Time
	ExpiresAt   whereHelpertime_Time
}{
	VehicleID:   whereHelperint{/* contains filtered or unexported fields */},
	Grantee:     whereHelper__byte{/* contains filtered or unexported fields */},
	Permissions: whereHelperstring{/* contains filtered or unexported fields */},
	Source:      whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	ExpiresAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var VehicleTableColumns = struct {
	ID                 string
	OwnerAddress       string
	Make               string
	Model              string
	Year               string
	MintedAt           string
	ManufacturerID     string
	ImageURI           string
	DeviceDefinitionID string
	StorageNodeID      string
}{
	ID:                 "vehicles.id",
	OwnerAddress:       "vehicles.owner_address",
	Make:               "vehicles.make",
	Model:              "vehicles.model",
	Year:               "vehicles.year",
	MintedAt:           "vehicles.minted_at",
	ManufacturerID:     "vehicles.manufacturer_id",
	ImageURI:           "vehicles.image_uri",
	DeviceDefinitionID: "vehicles.device_definition_id",
	StorageNodeID:      "vehicles.storage_node_id",
}
View Source
var VehicleWhere = struct {
	ID                 whereHelperint
	OwnerAddress       whereHelper__byte
	Make               whereHelpernull_String
	Model              whereHelpernull_String
	Year               whereHelpernull_Int
	MintedAt           whereHelpertime_Time
	ManufacturerID     whereHelperint
	ImageURI           whereHelpernull_String
	DeviceDefinitionID whereHelpernull_String
	StorageNodeID      whereHelpernull_Bytes
}{
	ID:                 whereHelperint{/* contains filtered or unexported fields */},
	OwnerAddress:       whereHelper__byte{/* contains filtered or unexported fields */},
	Make:               whereHelpernull_String{/* contains filtered or unexported fields */},
	Model:              whereHelpernull_String{/* contains filtered or unexported fields */},
	Year:               whereHelpernull_Int{/* contains filtered or unexported fields */},
	MintedAt:           whereHelpertime_Time{/* contains filtered or unexported fields */},
	ManufacturerID:     whereHelperint{/* contains filtered or unexported fields */},
	ImageURI:           whereHelpernull_String{/* contains filtered or unexported fields */},
	DeviceDefinitionID: whereHelpernull_String{/* contains filtered or unexported fields */},
	StorageNodeID:      whereHelpernull_Bytes{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
}{}

Functions

func AddAftermarketDeviceHook

func AddAftermarketDeviceHook(hookPoint boil.HookPoint, aftermarketDeviceHook AftermarketDeviceHook)

AddAftermarketDeviceHook registers your hook function for all future operations.

func AddConnectionHook added in v0.4.7

func AddConnectionHook(hookPoint boil.HookPoint, connectionHook ConnectionHook)

AddConnectionHook registers your hook function for all future operations.

func AddDCNHook

func AddDCNHook(hookPoint boil.HookPoint, dcnHook DCNHook)

AddDCNHook registers your hook function for all future operations.

func AddDeveloperLicenseHook added in v0.3.0

func AddDeveloperLicenseHook(hookPoint boil.HookPoint, developerLicenseHook DeveloperLicenseHook)

AddDeveloperLicenseHook registers your hook function for all future operations.

func AddManufacturerHook

func AddManufacturerHook(hookPoint boil.HookPoint, manufacturerHook ManufacturerHook)

AddManufacturerHook registers your hook function for all future operations.

func AddPrivilegeHook

func AddPrivilegeHook(hookPoint boil.HookPoint, privilegeHook PrivilegeHook)

AddPrivilegeHook registers your hook function for all future operations.

func AddRedirectURIHook added in v0.3.0

func AddRedirectURIHook(hookPoint boil.HookPoint, redirectURIHook RedirectURIHook)

AddRedirectURIHook registers your hook function for all future operations.

func AddRewardHook added in v0.1.5

func AddRewardHook(hookPoint boil.HookPoint, rewardHook RewardHook)

AddRewardHook registers your hook function for all future operations.

func AddSignerHook added in v0.3.0

func AddSignerHook(hookPoint boil.HookPoint, signerHook SignerHook)

AddSignerHook registers your hook function for all future operations.

func AddStakeHook added in v0.4.0

func AddStakeHook(hookPoint boil.HookPoint, stakeHook StakeHook)

AddStakeHook registers your hook function for all future operations.

func AddStorageNodeHook added in v0.5.0

func AddStorageNodeHook(hookPoint boil.HookPoint, storageNodeHook StorageNodeHook)

AddStorageNodeHook registers your hook function for all future operations.

func AddSyntheticDeviceHook

func AddSyntheticDeviceHook(hookPoint boil.HookPoint, syntheticDeviceHook SyntheticDeviceHook)

AddSyntheticDeviceHook registers your hook function for all future operations.

func AddVehicleHook

func AddVehicleHook(hookPoint boil.HookPoint, vehicleHook VehicleHook)

AddVehicleHook registers your hook function for all future operations.

func AddVehicleSacdHook added in v0.2.0

func AddVehicleSacdHook(hookPoint boil.HookPoint, vehicleSacdHook VehicleSacdHook)

AddVehicleSacdHook registers your hook function for all future operations.

func AftermarketDeviceExists

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

AftermarketDeviceExists checks if the AftermarketDevice row exists.

func AftermarketDevices

func AftermarketDevices(mods ...qm.QueryMod) aftermarketDeviceQuery

AftermarketDevices retrieves all the records using an executor.

func ConnectionExists added in v0.4.7

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

ConnectionExists checks if the Connection row exists.

func Connections added in v0.4.7

func Connections(mods ...qm.QueryMod) connectionQuery

Connections retrieves all the records using an executor.

func DCNExists

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

DCNExists checks if the DCN row exists.

func DCNS

func DCNS(mods ...qm.QueryMod) dcnQuery

DCNS retrieves all the records using an executor.

func DeveloperLicenseExists added in v0.3.0

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

DeveloperLicenseExists checks if the DeveloperLicense row exists.

func DeveloperLicenses added in v0.3.0

func DeveloperLicenses(mods ...qm.QueryMod) developerLicenseQuery

DeveloperLicenses retrieves all the records using an executor.

func ManufacturerExists

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

ManufacturerExists checks if the Manufacturer row exists.

func Manufacturers

func Manufacturers(mods ...qm.QueryMod) manufacturerQuery

Manufacturers 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 PrivilegeExists

func PrivilegeExists(ctx context.Context, exec boil.ContextExecutor, tokenID int, privilegeID int, userAddress []byte) (bool, error)

PrivilegeExists checks if the Privilege row exists.

func Privileges

func Privileges(mods ...qm.QueryMod) privilegeQuery

Privileges retrieves all the records using an executor.

func RedirectURIExists added in v0.3.0

func RedirectURIExists(ctx context.Context, exec boil.ContextExecutor, developerLicenseID int, uRI string) (bool, error)

RedirectURIExists checks if the RedirectURI row exists.

func RedirectUris added in v0.3.0

func RedirectUris(mods ...qm.QueryMod) redirectURIQuery

RedirectUris retrieves all the records using an executor.

func RewardExists added in v0.1.5

func RewardExists(ctx context.Context, exec boil.ContextExecutor, issuanceWeek int, vehicleID int) (bool, error)

RewardExists checks if the Reward row exists.

func Rewards added in v0.1.5

func Rewards(mods ...qm.QueryMod) rewardQuery

Rewards retrieves all the records using an executor.

func SignerExists added in v0.3.0

func SignerExists(ctx context.Context, exec boil.ContextExecutor, developerLicenseID int, signer []byte) (bool, error)

SignerExists checks if the Signer row exists.

func Signers added in v0.3.0

func Signers(mods ...qm.QueryMod) signerQuery

Signers retrieves all the records using an executor.

func StakeExists added in v0.4.0

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

StakeExists checks if the Stake row exists.

func Stakes added in v0.4.0

func Stakes(mods ...qm.QueryMod) stakeQuery

Stakes retrieves all the records using an executor.

func StorageNodeExists added in v0.5.0

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

StorageNodeExists checks if the StorageNode row exists.

func StorageNodes added in v0.5.0

func StorageNodes(mods ...qm.QueryMod) storageNodeQuery

StorageNodes retrieves all the records using an executor.

func SyntheticDeviceExists

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

SyntheticDeviceExists checks if the SyntheticDevice row exists.

func SyntheticDevices

func SyntheticDevices(mods ...qm.QueryMod) syntheticDeviceQuery

SyntheticDevices retrieves all the records using an executor.

func VehicleExists

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

VehicleExists checks if the Vehicle row exists.

func VehicleSacdExists added in v0.2.0

func VehicleSacdExists(ctx context.Context, exec boil.ContextExecutor, vehicleID int, grantee []byte) (bool, error)

VehicleSacdExists checks if the VehicleSacd row exists.

func VehicleSacds added in v0.2.0

func VehicleSacds(mods ...qm.QueryMod) vehicleSacdQuery

VehicleSacds retrieves all the records using an executor.

func Vehicles

func Vehicles(mods ...qm.QueryMod) vehicleQuery

Vehicles retrieves all the records using an executor.

Types

type AftermarketDevice

type AftermarketDevice struct {
	ID               int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	Address          []byte      `boil:"address" json:"address" toml:"address" yaml:"address"`
	Owner            []byte      `boil:"owner" json:"owner" toml:"owner" yaml:"owner"`
	Serial           null.String `boil:"serial" json:"serial,omitempty" toml:"serial" yaml:"serial,omitempty"`
	Imei             null.String `boil:"imei" json:"imei,omitempty" toml:"imei" yaml:"imei,omitempty"`
	MintedAt         time.Time   `boil:"minted_at" json:"minted_at" toml:"minted_at" yaml:"minted_at"`
	VehicleID        null.Int    `boil:"vehicle_id" json:"vehicle_id,omitempty" toml:"vehicle_id" yaml:"vehicle_id,omitempty"`
	Beneficiary      []byte      `boil:"beneficiary" json:"beneficiary" toml:"beneficiary" yaml:"beneficiary"`
	ManufacturerID   int         `boil:"manufacturer_id" json:"manufacturer_id" toml:"manufacturer_id" yaml:"manufacturer_id"`
	ClaimedAt        null.Time   `boil:"claimed_at" json:"claimed_at,omitempty" toml:"claimed_at" yaml:"claimed_at,omitempty"`
	DevEui           null.String `boil:"dev_eui" json:"dev_eui,omitempty" toml:"dev_eui" yaml:"dev_eui,omitempty"`
	HardwareRevision null.String `boil:"hardware_revision" json:"hardware_revision,omitempty" toml:"hardware_revision" yaml:"hardware_revision,omitempty"`
	PairedAt         null.Time   `boil:"paired_at" json:"paired_at,omitempty" toml:"paired_at" yaml:"paired_at,omitempty"`

	R *aftermarketDeviceR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L aftermarketDeviceL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AftermarketDevice is an object representing the database table.

func FindAftermarketDevice

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

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

func (*AftermarketDevice) AddAftermarketTokenRewards added in v0.1.5

func (o *AftermarketDevice) AddAftermarketTokenRewards(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Reward) error

AddAftermarketTokenRewards adds the given related objects to the existing relationships of the aftermarket_device, optionally inserting them as new records. Appends related to o.R.AftermarketTokenRewards. Sets related.R.AftermarketToken appropriately.

func (*AftermarketDevice) AftermarketTokenRewards added in v0.1.5

func (o *AftermarketDevice) AftermarketTokenRewards(mods ...qm.QueryMod) rewardQuery

AftermarketTokenRewards retrieves all the reward's Rewards with an executor via aftermarket_token_id column.

func (*AftermarketDevice) Delete

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

func (*AftermarketDevice) Exists

Exists checks if the AftermarketDevice row exists.

func (*AftermarketDevice) GetAftermarketTokenRewards added in v0.4.8

func (o *AftermarketDevice) GetAftermarketTokenRewards() RewardSlice

func (*AftermarketDevice) GetManufacturer added in v0.4.8

func (o *AftermarketDevice) GetManufacturer() *Manufacturer

func (*AftermarketDevice) GetVehicle added in v0.4.8

func (o *AftermarketDevice) GetVehicle() *Vehicle

func (*AftermarketDevice) Insert

func (o *AftermarketDevice) 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 (*AftermarketDevice) Manufacturer

func (o *AftermarketDevice) Manufacturer(mods ...qm.QueryMod) manufacturerQuery

Manufacturer pointed to by the foreign key.

func (*AftermarketDevice) Reload

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

func (*AftermarketDevice) RemoveAftermarketTokenRewards added in v0.1.5

func (o *AftermarketDevice) RemoveAftermarketTokenRewards(ctx context.Context, exec boil.ContextExecutor, related ...*Reward) error

RemoveAftermarketTokenRewards relationships from objects passed in. Removes related items from R.AftermarketTokenRewards (uses pointer comparison, removal does not keep order) Sets related.R.AftermarketToken.

func (*AftermarketDevice) RemoveVehicle

func (o *AftermarketDevice) RemoveVehicle(ctx context.Context, exec boil.ContextExecutor, related *Vehicle) error

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

func (*AftermarketDevice) SetAftermarketTokenRewards added in v0.1.5

func (o *AftermarketDevice) SetAftermarketTokenRewards(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Reward) error

SetAftermarketTokenRewards removes all previously related items of the aftermarket_device replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.AftermarketToken's AftermarketTokenRewards accordingly. Replaces o.R.AftermarketTokenRewards with related. Sets related.R.AftermarketToken's AftermarketTokenRewards accordingly.

func (*AftermarketDevice) SetManufacturer

func (o *AftermarketDevice) SetManufacturer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Manufacturer) error

SetManufacturer of the aftermarketDevice to the related item. Sets o.R.Manufacturer to related. Adds o to related.R.AftermarketDevices.

func (*AftermarketDevice) SetVehicle

func (o *AftermarketDevice) SetVehicle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Vehicle) error

SetVehicle of the aftermarketDevice to the related item. Sets o.R.Vehicle to related. Adds o to related.R.AftermarketDevice.

func (*AftermarketDevice) Update

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

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

func (o *AftermarketDevice) 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 (*AftermarketDevice) Vehicle

func (o *AftermarketDevice) Vehicle(mods ...qm.QueryMod) vehicleQuery

Vehicle pointed to by the foreign key.

type AftermarketDeviceHook

type AftermarketDeviceHook func(context.Context, boil.ContextExecutor, *AftermarketDevice) error

AftermarketDeviceHook is the signature for custom AftermarketDevice hook methods

type AftermarketDeviceSlice

type AftermarketDeviceSlice []*AftermarketDevice

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

func (AftermarketDeviceSlice) DeleteAll

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

func (*AftermarketDeviceSlice) ReloadAll

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

func (AftermarketDeviceSlice) UpdateAll

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

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

type Connection added in v0.4.7

type Connection struct {
	Address         []byte    `boil:"address" json:"address" toml:"address" yaml:"address"`
	Owner           []byte    `boil:"owner" json:"owner" toml:"owner" yaml:"owner"`
	MintedAt        time.Time `boil:"minted_at" json:"minted_at" toml:"minted_at" yaml:"minted_at"`
	ID              []byte    `boil:"id" json:"id" toml:"id" yaml:"id"`
	IntegrationNode null.Int  `boil:"integration_node" json:"integration_node,omitempty" toml:"integration_node" yaml:"integration_node,omitempty"`

	R *connectionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L connectionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Connection is an object representing the database table.

func FindConnection added in v0.4.7

func FindConnection(ctx context.Context, exec boil.ContextExecutor, iD []byte, selectCols ...string) (*Connection, error)

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

func (*Connection) AddSyntheticDevices added in v0.4.10

func (o *Connection) AddSyntheticDevices(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*SyntheticDevice) error

AddSyntheticDevices adds the given related objects to the existing relationships of the connection, optionally inserting them as new records. Appends related to o.R.SyntheticDevices. Sets related.R.Connection appropriately.

func (*Connection) Delete added in v0.4.7

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

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

func (*Connection) Exists added in v0.4.7

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

Exists checks if the Connection row exists.

func (*Connection) GetSyntheticDevices added in v0.4.10

func (o *Connection) GetSyntheticDevices() SyntheticDeviceSlice

func (*Connection) Insert added in v0.4.7

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

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

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

func (*Connection) RemoveSyntheticDevices added in v0.4.10

func (o *Connection) RemoveSyntheticDevices(ctx context.Context, exec boil.ContextExecutor, related ...*SyntheticDevice) error

RemoveSyntheticDevices relationships from objects passed in. Removes related items from R.SyntheticDevices (uses pointer comparison, removal does not keep order) Sets related.R.Connection.

func (*Connection) SetSyntheticDevices added in v0.4.10

func (o *Connection) SetSyntheticDevices(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*SyntheticDevice) error

SetSyntheticDevices removes all previously related items of the connection replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Connection's SyntheticDevices accordingly. Replaces o.R.SyntheticDevices with related. Sets related.R.Connection's SyntheticDevices accordingly.

func (*Connection) SyntheticDevices added in v0.4.10

func (o *Connection) SyntheticDevices(mods ...qm.QueryMod) syntheticDeviceQuery

SyntheticDevices retrieves all the synthetic_device's SyntheticDevices with an executor.

func (*Connection) Update added in v0.4.7

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

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

func (o *Connection) 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 ConnectionHook added in v0.4.7

type ConnectionHook func(context.Context, boil.ContextExecutor, *Connection) error

ConnectionHook is the signature for custom Connection hook methods

type ConnectionSlice added in v0.4.7

type ConnectionSlice []*Connection

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

func (ConnectionSlice) DeleteAll added in v0.4.7

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

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

func (*ConnectionSlice) ReloadAll added in v0.4.7

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

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

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

type DCN

type DCN struct {
	Node         []byte      `boil:"node" json:"node" toml:"node" yaml:"node"`
	OwnerAddress []byte      `boil:"owner_address" json:"owner_address" toml:"owner_address" yaml:"owner_address"`
	Expiration   null.Time   `boil:"expiration" json:"expiration,omitempty" toml:"expiration" yaml:"expiration,omitempty"`
	Name         null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`
	VehicleID    null.Int    `boil:"vehicle_id" json:"vehicle_id,omitempty" toml:"vehicle_id" yaml:"vehicle_id,omitempty"`
	MintedAt     time.Time   `boil:"minted_at" json:"minted_at" toml:"minted_at" yaml:"minted_at"`

	R *dcnR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L dcnL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DCN is an object representing the database table.

func FindDCN

func FindDCN(ctx context.Context, exec boil.ContextExecutor, node []byte, selectCols ...string) (*DCN, error)

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

func (*DCN) Delete

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

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

func (*DCN) Exists

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

Exists checks if the DCN row exists.

func (*DCN) GetVehicle added in v0.4.8

func (o *DCN) GetVehicle() *Vehicle

func (*DCN) Insert

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

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

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

func (*DCN) RemoveVehicle

func (o *DCN) RemoveVehicle(ctx context.Context, exec boil.ContextExecutor, related *Vehicle) error

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

func (*DCN) SetVehicle

func (o *DCN) SetVehicle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Vehicle) error

SetVehicle of the dcn to the related item. Sets o.R.Vehicle to related. Adds o to related.R.DCNS.

func (*DCN) Update

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

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

func (o *DCN) 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 (*DCN) Vehicle

func (o *DCN) Vehicle(mods ...qm.QueryMod) vehicleQuery

Vehicle pointed to by the foreign key.

type DCNHook

type DCNHook func(context.Context, boil.ContextExecutor, *DCN) error

DCNHook is the signature for custom DCN hook methods

type DCNSlice

type DCNSlice []*DCN

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

func (DCNSlice) DeleteAll

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

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

func (*DCNSlice) ReloadAll

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

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

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

type DeveloperLicense added in v0.3.0

type DeveloperLicense struct {
	ID       int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	Owner    []byte      `boil:"owner" json:"owner" toml:"owner" yaml:"owner"`
	ClientID []byte      `boil:"client_id" json:"client_id" toml:"client_id" yaml:"client_id"`
	Alias    null.String `boil:"alias" json:"alias,omitempty" toml:"alias" yaml:"alias,omitempty"`
	MintedAt time.Time   `boil:"minted_at" json:"minted_at" toml:"minted_at" yaml:"minted_at"`

	R *developerLicenseR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L developerLicenseL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DeveloperLicense is an object representing the database table.

func FindDeveloperLicense added in v0.3.0

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

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

func (*DeveloperLicense) AddRedirectUris added in v0.3.0

func (o *DeveloperLicense) AddRedirectUris(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RedirectURI) error

AddRedirectUris adds the given related objects to the existing relationships of the developer_license, optionally inserting them as new records. Appends related to o.R.RedirectUris. Sets related.R.DeveloperLicense appropriately.

func (*DeveloperLicense) AddSigners added in v0.3.0

func (o *DeveloperLicense) AddSigners(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Signer) error

AddSigners adds the given related objects to the existing relationships of the developer_license, optionally inserting them as new records. Appends related to o.R.Signers. Sets related.R.DeveloperLicense appropriately.

func (*DeveloperLicense) Delete added in v0.3.0

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

func (*DeveloperLicense) Exists added in v0.3.0

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

Exists checks if the DeveloperLicense row exists.

func (*DeveloperLicense) GetRedirectUris added in v0.4.8

func (o *DeveloperLicense) GetRedirectUris() RedirectURISlice

func (*DeveloperLicense) GetSigners added in v0.4.8

func (o *DeveloperLicense) GetSigners() SignerSlice

func (*DeveloperLicense) Insert added in v0.3.0

func (o *DeveloperLicense) 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 (*DeveloperLicense) RedirectUris added in v0.3.0

func (o *DeveloperLicense) RedirectUris(mods ...qm.QueryMod) redirectURIQuery

RedirectUris retrieves all the redirect_uri's RedirectUris with an executor.

func (*DeveloperLicense) Reload added in v0.3.0

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

func (*DeveloperLicense) Signers added in v0.3.0

func (o *DeveloperLicense) Signers(mods ...qm.QueryMod) signerQuery

Signers retrieves all the signer's Signers with an executor.

func (*DeveloperLicense) Update added in v0.3.0

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

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

func (o *DeveloperLicense) 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 DeveloperLicenseHook added in v0.3.0

type DeveloperLicenseHook func(context.Context, boil.ContextExecutor, *DeveloperLicense) error

DeveloperLicenseHook is the signature for custom DeveloperLicense hook methods

type DeveloperLicenseSlice added in v0.3.0

type DeveloperLicenseSlice []*DeveloperLicense

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

func (DeveloperLicenseSlice) DeleteAll added in v0.3.0

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

func (*DeveloperLicenseSlice) ReloadAll added in v0.3.0

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

func (DeveloperLicenseSlice) UpdateAll added in v0.3.0

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

type Manufacturer struct {
	ID       int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name     string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Owner    []byte    `boil:"owner" json:"owner" toml:"owner" yaml:"owner"`
	MintedAt time.Time `boil:"minted_at" json:"minted_at" toml:"minted_at" yaml:"minted_at"`
	TableID  null.Int  `boil:"table_id" json:"table_id,omitempty" toml:"table_id" yaml:"table_id,omitempty"`
	Slug     string    `boil:"slug" json:"slug" toml:"slug" yaml:"slug"`

	R *manufacturerR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L manufacturerL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Manufacturer is an object representing the database table.

func FindManufacturer

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

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

func (*Manufacturer) AddAftermarketDevices

func (o *Manufacturer) AddAftermarketDevices(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AftermarketDevice) error

AddAftermarketDevices adds the given related objects to the existing relationships of the manufacturer, optionally inserting them as new records. Appends related to o.R.AftermarketDevices. Sets related.R.Manufacturer appropriately.

func (*Manufacturer) AddVehicles

func (o *Manufacturer) AddVehicles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Vehicle) error

AddVehicles adds the given related objects to the existing relationships of the manufacturer, optionally inserting them as new records. Appends related to o.R.Vehicles. Sets related.R.Manufacturer appropriately.

func (*Manufacturer) AftermarketDevices

func (o *Manufacturer) AftermarketDevices(mods ...qm.QueryMod) aftermarketDeviceQuery

AftermarketDevices retrieves all the aftermarket_device's AftermarketDevices with an executor.

func (*Manufacturer) Delete

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

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

func (*Manufacturer) Exists

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

Exists checks if the Manufacturer row exists.

func (*Manufacturer) GetAftermarketDevices added in v0.4.8

func (o *Manufacturer) GetAftermarketDevices() AftermarketDeviceSlice

func (*Manufacturer) GetVehicles added in v0.4.8

func (o *Manufacturer) GetVehicles() VehicleSlice

func (*Manufacturer) Insert

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

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

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

func (*Manufacturer) Update

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

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

func (o *Manufacturer) 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 (*Manufacturer) Vehicles

func (o *Manufacturer) Vehicles(mods ...qm.QueryMod) vehicleQuery

Vehicles retrieves all the vehicle's Vehicles with an executor.

type ManufacturerHook

type ManufacturerHook func(context.Context, boil.ContextExecutor, *Manufacturer) error

ManufacturerHook is the signature for custom Manufacturer hook methods

type ManufacturerSlice

type ManufacturerSlice []*Manufacturer

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

func (ManufacturerSlice) DeleteAll

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

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

func (*ManufacturerSlice) ReloadAll

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

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

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

type Privilege

type Privilege struct {
	TokenID     int       `boil:"token_id" json:"token_id" toml:"token_id" yaml:"token_id"`
	PrivilegeID int       `boil:"privilege_id" json:"privilege_id" toml:"privilege_id" yaml:"privilege_id"`
	UserAddress []byte    `boil:"user_address" json:"user_address" toml:"user_address" yaml:"user_address"`
	SetAt       time.Time `boil:"set_at" json:"set_at" toml:"set_at" yaml:"set_at"`
	ExpiresAt   time.Time `boil:"expires_at" json:"expires_at" toml:"expires_at" yaml:"expires_at"`

	R *privilegeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L privilegeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Privilege is an object representing the database table.

func FindPrivilege

func FindPrivilege(ctx context.Context, exec boil.ContextExecutor, tokenID int, privilegeID int, userAddress []byte, selectCols ...string) (*Privilege, error)

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

func (*Privilege) Delete

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

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

func (*Privilege) Exists

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

Exists checks if the Privilege row exists.

func (*Privilege) GetToken added in v0.4.8

func (o *Privilege) GetToken() *Vehicle

func (*Privilege) Insert

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

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

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

func (*Privilege) SetToken

func (o *Privilege) SetToken(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Vehicle) error

SetToken of the privilege to the related item. Sets o.R.Token to related. Adds o to related.R.TokenPrivileges.

func (*Privilege) Token

func (o *Privilege) Token(mods ...qm.QueryMod) vehicleQuery

Token pointed to by the foreign key.

func (*Privilege) Update

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

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

func (o *Privilege) 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 PrivilegeHook

type PrivilegeHook func(context.Context, boil.ContextExecutor, *Privilege) error

PrivilegeHook is the signature for custom Privilege hook methods

type PrivilegeSlice

type PrivilegeSlice []*Privilege

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

func (PrivilegeSlice) DeleteAll

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

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

func (*PrivilegeSlice) ReloadAll

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

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

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

type RedirectURI added in v0.3.0

type RedirectURI struct {
	DeveloperLicenseID int       `boil:"developer_license_id" json:"developer_license_id" toml:"developer_license_id" yaml:"developer_license_id"`
	URI                string    `boil:"uri" json:"uri" toml:"uri" yaml:"uri"`
	EnabledAt          time.Time `boil:"enabled_at" json:"enabled_at" toml:"enabled_at" yaml:"enabled_at"`

	R *redirectURIR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L redirectURIL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RedirectURI is an object representing the database table.

func FindRedirectURI added in v0.3.0

func FindRedirectURI(ctx context.Context, exec boil.ContextExecutor, developerLicenseID int, uRI string, selectCols ...string) (*RedirectURI, error)

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

func (*RedirectURI) Delete added in v0.3.0

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

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

func (*RedirectURI) DeveloperLicense added in v0.3.0

func (o *RedirectURI) DeveloperLicense(mods ...qm.QueryMod) developerLicenseQuery

DeveloperLicense pointed to by the foreign key.

func (*RedirectURI) Exists added in v0.3.0

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

Exists checks if the RedirectURI row exists.

func (*RedirectURI) GetDeveloperLicense added in v0.4.8

func (o *RedirectURI) GetDeveloperLicense() *DeveloperLicense

func (*RedirectURI) Insert added in v0.3.0

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

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

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

func (*RedirectURI) SetDeveloperLicense added in v0.3.0

func (o *RedirectURI) SetDeveloperLicense(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeveloperLicense) error

SetDeveloperLicense of the redirectURI to the related item. Sets o.R.DeveloperLicense to related. Adds o to related.R.RedirectUris.

func (*RedirectURI) Update added in v0.3.0

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

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

func (o *RedirectURI) 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 RedirectURIHook added in v0.3.0

type RedirectURIHook func(context.Context, boil.ContextExecutor, *RedirectURI) error

RedirectURIHook is the signature for custom RedirectURI hook methods

type RedirectURISlice added in v0.3.0

type RedirectURISlice []*RedirectURI

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

func (RedirectURISlice) DeleteAll added in v0.3.0

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

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

func (*RedirectURISlice) ReloadAll added in v0.3.0

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

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

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

type Reward added in v0.1.5

type Reward struct {
	IssuanceWeek        int           `boil:"issuance_week" json:"issuance_week" toml:"issuance_week" yaml:"issuance_week"`
	VehicleID           int           `boil:"vehicle_id" json:"vehicle_id" toml:"vehicle_id" yaml:"vehicle_id"`
	ConnectionStreak    null.Int      `boil:"connection_streak" json:"connection_streak,omitempty" toml:"connection_streak" yaml:"connection_streak,omitempty"`
	StreakEarnings      types.Decimal `boil:"streak_earnings" json:"streak_earnings" toml:"streak_earnings" yaml:"streak_earnings"`
	AftermarketTokenID  null.Int      `` /* 131-byte string literal not displayed */
	AftermarketEarnings types.Decimal `boil:"aftermarket_earnings" json:"aftermarket_earnings" toml:"aftermarket_earnings" yaml:"aftermarket_earnings"`
	SyntheticTokenID    null.Int      `boil:"synthetic_token_id" json:"synthetic_token_id,omitempty" toml:"synthetic_token_id" yaml:"synthetic_token_id,omitempty"`
	SyntheticEarnings   types.Decimal `boil:"synthetic_earnings" json:"synthetic_earnings" toml:"synthetic_earnings" yaml:"synthetic_earnings"`
	ReceivedByAddress   null.Bytes    `` /* 127-byte string literal not displayed */
	EarnedAt            time.Time     `boil:"earned_at" json:"earned_at" toml:"earned_at" yaml:"earned_at"`

	R *rewardR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L rewardL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Reward is an object representing the database table.

func FindReward added in v0.1.5

func FindReward(ctx context.Context, exec boil.ContextExecutor, issuanceWeek int, vehicleID int, selectCols ...string) (*Reward, error)

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

func (*Reward) AftermarketToken added in v0.1.5

func (o *Reward) AftermarketToken(mods ...qm.QueryMod) aftermarketDeviceQuery

AftermarketToken pointed to by the foreign key.

func (*Reward) Delete added in v0.1.5

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

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

func (*Reward) Exists added in v0.1.5

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

Exists checks if the Reward row exists.

func (*Reward) GetAftermarketToken added in v0.4.8

func (o *Reward) GetAftermarketToken() *AftermarketDevice

func (*Reward) GetSyntheticToken added in v0.4.8

func (o *Reward) GetSyntheticToken() *SyntheticDevice

func (*Reward) GetVehicle added in v0.4.8

func (o *Reward) GetVehicle() *Vehicle

func (*Reward) Insert added in v0.1.5

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

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

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

func (*Reward) RemoveAftermarketToken added in v0.1.5

func (o *Reward) RemoveAftermarketToken(ctx context.Context, exec boil.ContextExecutor, related *AftermarketDevice) error

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

func (*Reward) RemoveSyntheticToken added in v0.1.5

func (o *Reward) RemoveSyntheticToken(ctx context.Context, exec boil.ContextExecutor, related *SyntheticDevice) error

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

func (*Reward) SetAftermarketToken added in v0.1.5

func (o *Reward) SetAftermarketToken(ctx context.Context, exec boil.ContextExecutor, insert bool, related *AftermarketDevice) error

SetAftermarketToken of the reward to the related item. Sets o.R.AftermarketToken to related. Adds o to related.R.AftermarketTokenRewards.

func (*Reward) SetSyntheticToken added in v0.1.5

func (o *Reward) SetSyntheticToken(ctx context.Context, exec boil.ContextExecutor, insert bool, related *SyntheticDevice) error

SetSyntheticToken of the reward to the related item. Sets o.R.SyntheticToken to related. Adds o to related.R.SyntheticTokenRewards.

func (*Reward) SetVehicle added in v0.1.5

func (o *Reward) SetVehicle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Vehicle) error

SetVehicle of the reward to the related item. Sets o.R.Vehicle to related. Adds o to related.R.Rewards.

func (*Reward) SyntheticToken added in v0.1.5

func (o *Reward) SyntheticToken(mods ...qm.QueryMod) syntheticDeviceQuery

SyntheticToken pointed to by the foreign key.

func (*Reward) Update added in v0.1.5

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

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

func (o *Reward) 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 (*Reward) Vehicle added in v0.1.5

func (o *Reward) Vehicle(mods ...qm.QueryMod) vehicleQuery

Vehicle pointed to by the foreign key.

type RewardHook added in v0.1.5

type RewardHook func(context.Context, boil.ContextExecutor, *Reward) error

RewardHook is the signature for custom Reward hook methods

type RewardSlice added in v0.1.5

type RewardSlice []*Reward

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

func (RewardSlice) DeleteAll added in v0.1.5

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

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

func (*RewardSlice) ReloadAll added in v0.1.5

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

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

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

type Signer added in v0.3.0

type Signer struct {
	DeveloperLicenseID int       `boil:"developer_license_id" json:"developer_license_id" toml:"developer_license_id" yaml:"developer_license_id"`
	Signer             []byte    `boil:"signer" json:"signer" toml:"signer" yaml:"signer"`
	EnabledAt          time.Time `boil:"enabled_at" json:"enabled_at" toml:"enabled_at" yaml:"enabled_at"`

	R *signerR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L signerL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Signer is an object representing the database table.

func FindSigner added in v0.3.0

func FindSigner(ctx context.Context, exec boil.ContextExecutor, developerLicenseID int, signer []byte, selectCols ...string) (*Signer, error)

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

func (*Signer) Delete added in v0.3.0

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

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

func (*Signer) DeveloperLicense added in v0.3.0

func (o *Signer) DeveloperLicense(mods ...qm.QueryMod) developerLicenseQuery

DeveloperLicense pointed to by the foreign key.

func (*Signer) Exists added in v0.3.0

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

Exists checks if the Signer row exists.

func (*Signer) GetDeveloperLicense added in v0.4.8

func (o *Signer) GetDeveloperLicense() *DeveloperLicense

func (*Signer) Insert added in v0.3.0

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

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

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

func (*Signer) SetDeveloperLicense added in v0.3.0

func (o *Signer) SetDeveloperLicense(ctx context.Context, exec boil.ContextExecutor, insert bool, related *DeveloperLicense) error

SetDeveloperLicense of the signer to the related item. Sets o.R.DeveloperLicense to related. Adds o to related.R.Signers.

func (*Signer) Update added in v0.3.0

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

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

func (o *Signer) 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 SignerHook added in v0.3.0

type SignerHook func(context.Context, boil.ContextExecutor, *Signer) error

SignerHook is the signature for custom Signer hook methods

type SignerSlice added in v0.3.0

type SignerSlice []*Signer

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

func (SignerSlice) DeleteAll added in v0.3.0

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

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

func (*SignerSlice) ReloadAll added in v0.3.0

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

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

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

type Stake added in v0.4.0

type Stake struct {
	ID          int           `boil:"id" json:"id" toml:"id" yaml:"id"`
	Owner       []byte        `boil:"owner" json:"owner" toml:"owner" yaml:"owner"`
	Level       int           `boil:"level" json:"level" toml:"level" yaml:"level"`
	Points      int           `boil:"points" json:"points" toml:"points" yaml:"points"`
	Amount      types.Decimal `boil:"amount" json:"amount" toml:"amount" yaml:"amount"`
	VehicleID   null.Int      `boil:"vehicle_id" json:"vehicle_id,omitempty" toml:"vehicle_id" yaml:"vehicle_id,omitempty"`
	StakedAt    time.Time     `boil:"staked_at" json:"staked_at" toml:"staked_at" yaml:"staked_at"`
	EndsAt      time.Time     `boil:"ends_at" json:"ends_at" toml:"ends_at" yaml:"ends_at"`
	WithdrawnAt null.Time     `boil:"withdrawn_at" json:"withdrawn_at,omitempty" toml:"withdrawn_at" yaml:"withdrawn_at,omitempty"`

	R *stakeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L stakeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Stake is an object representing the database table.

func FindStake added in v0.4.0

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

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

func (*Stake) Delete added in v0.4.0

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

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

func (*Stake) Exists added in v0.4.0

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

Exists checks if the Stake row exists.

func (*Stake) GetVehicle added in v0.4.8

func (o *Stake) GetVehicle() *Vehicle

func (*Stake) Insert added in v0.4.0

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

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

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

func (*Stake) RemoveVehicle added in v0.4.0

func (o *Stake) RemoveVehicle(ctx context.Context, exec boil.ContextExecutor, related *Vehicle) error

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

func (*Stake) SetVehicle added in v0.4.0

func (o *Stake) SetVehicle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Vehicle) error

SetVehicle of the stake to the related item. Sets o.R.Vehicle to related. Adds o to related.R.Stake.

func (*Stake) Update added in v0.4.0

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

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

func (o *Stake) 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 (*Stake) Vehicle added in v0.4.0

func (o *Stake) Vehicle(mods ...qm.QueryMod) vehicleQuery

Vehicle pointed to by the foreign key.

type StakeHook added in v0.4.0

type StakeHook func(context.Context, boil.ContextExecutor, *Stake) error

StakeHook is the signature for custom Stake hook methods

type StakeSlice added in v0.4.0

type StakeSlice []*Stake

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

func (StakeSlice) DeleteAll added in v0.4.0

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

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

func (*StakeSlice) ReloadAll added in v0.4.0

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

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

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

type StorageNode added in v0.5.0

type StorageNode struct {
	ID       []byte    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Label    string    `boil:"label" json:"label" toml:"label" yaml:"label"`
	Address  []byte    `boil:"address" json:"address" toml:"address" yaml:"address"`
	Owner    []byte    `boil:"owner" json:"owner" toml:"owner" yaml:"owner"`
	URI      string    `boil:"uri" json:"uri" toml:"uri" yaml:"uri"`
	MintedAt time.Time `boil:"minted_at" json:"minted_at" toml:"minted_at" yaml:"minted_at"`

	R *storageNodeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L storageNodeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

StorageNode is an object representing the database table.

func FindStorageNode added in v0.5.0

func FindStorageNode(ctx context.Context, exec boil.ContextExecutor, iD []byte, selectCols ...string) (*StorageNode, error)

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

func (*StorageNode) AddVehicles added in v0.5.0

func (o *StorageNode) AddVehicles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Vehicle) error

AddVehicles adds the given related objects to the existing relationships of the storage_node, optionally inserting them as new records. Appends related to o.R.Vehicles. Sets related.R.StorageNode appropriately.

func (*StorageNode) Delete added in v0.5.0

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

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

func (*StorageNode) Exists added in v0.5.0

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

Exists checks if the StorageNode row exists.

func (*StorageNode) GetVehicles added in v0.5.0

func (o *StorageNode) GetVehicles() VehicleSlice

func (*StorageNode) Insert added in v0.5.0

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

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

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

func (*StorageNode) RemoveVehicles added in v0.5.0

func (o *StorageNode) RemoveVehicles(ctx context.Context, exec boil.ContextExecutor, related ...*Vehicle) error

RemoveVehicles relationships from objects passed in. Removes related items from R.Vehicles (uses pointer comparison, removal does not keep order) Sets related.R.StorageNode.

func (*StorageNode) SetVehicles added in v0.5.0

func (o *StorageNode) SetVehicles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Vehicle) error

SetVehicles removes all previously related items of the storage_node replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.StorageNode's Vehicles accordingly. Replaces o.R.Vehicles with related. Sets related.R.StorageNode's Vehicles accordingly.

func (*StorageNode) Update added in v0.5.0

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

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

func (o *StorageNode) 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 (*StorageNode) Vehicles added in v0.5.0

func (o *StorageNode) Vehicles(mods ...qm.QueryMod) vehicleQuery

Vehicles retrieves all the vehicle's Vehicles with an executor.

type StorageNodeHook added in v0.5.0

type StorageNodeHook func(context.Context, boil.ContextExecutor, *StorageNode) error

StorageNodeHook is the signature for custom StorageNode hook methods

type StorageNodeSlice added in v0.5.0

type StorageNodeSlice []*StorageNode

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

func (StorageNodeSlice) DeleteAll added in v0.5.0

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

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

func (*StorageNodeSlice) ReloadAll added in v0.5.0

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

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

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

type SyntheticDevice

type SyntheticDevice struct {
	ID            int        `boil:"id" json:"id" toml:"id" yaml:"id"`
	IntegrationID int        `boil:"integration_id" json:"integration_id" toml:"integration_id" yaml:"integration_id"`
	VehicleID     int        `boil:"vehicle_id" json:"vehicle_id" toml:"vehicle_id" yaml:"vehicle_id"`
	DeviceAddress []byte     `boil:"device_address" json:"device_address" toml:"device_address" yaml:"device_address"`
	MintedAt      time.Time  `boil:"minted_at" json:"minted_at" toml:"minted_at" yaml:"minted_at"`
	ConnectionID  null.Bytes `boil:"connection_id" json:"connection_id,omitempty" toml:"connection_id" yaml:"connection_id,omitempty"`

	R *syntheticDeviceR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L syntheticDeviceL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

SyntheticDevice is an object representing the database table.

func FindSyntheticDevice

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

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

func (*SyntheticDevice) AddSyntheticTokenRewards added in v0.1.5

func (o *SyntheticDevice) AddSyntheticTokenRewards(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Reward) error

AddSyntheticTokenRewards adds the given related objects to the existing relationships of the synthetic_device, optionally inserting them as new records. Appends related to o.R.SyntheticTokenRewards. Sets related.R.SyntheticToken appropriately.

func (*SyntheticDevice) Connection added in v0.4.10

func (o *SyntheticDevice) Connection(mods ...qm.QueryMod) connectionQuery

Connection pointed to by the foreign key.

func (*SyntheticDevice) Delete

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

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

func (*SyntheticDevice) Exists

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

Exists checks if the SyntheticDevice row exists.

func (*SyntheticDevice) GetConnection added in v0.4.10

func (o *SyntheticDevice) GetConnection() *Connection

func (*SyntheticDevice) GetSyntheticTokenRewards added in v0.4.8

func (o *SyntheticDevice) GetSyntheticTokenRewards() RewardSlice

func (*SyntheticDevice) GetVehicle added in v0.4.8

func (o *SyntheticDevice) GetVehicle() *Vehicle

func (*SyntheticDevice) Insert

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

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

func (*SyntheticDevice) RemoveConnection added in v0.4.10

func (o *SyntheticDevice) RemoveConnection(ctx context.Context, exec boil.ContextExecutor, related *Connection) error

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

func (*SyntheticDevice) RemoveSyntheticTokenRewards added in v0.1.5

func (o *SyntheticDevice) RemoveSyntheticTokenRewards(ctx context.Context, exec boil.ContextExecutor, related ...*Reward) error

RemoveSyntheticTokenRewards relationships from objects passed in. Removes related items from R.SyntheticTokenRewards (uses pointer comparison, removal does not keep order) Sets related.R.SyntheticToken.

func (*SyntheticDevice) SetConnection added in v0.4.10

func (o *SyntheticDevice) SetConnection(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Connection) error

SetConnection of the syntheticDevice to the related item. Sets o.R.Connection to related. Adds o to related.R.SyntheticDevices.

func (*SyntheticDevice) SetSyntheticTokenRewards added in v0.1.5

func (o *SyntheticDevice) SetSyntheticTokenRewards(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Reward) error

SetSyntheticTokenRewards removes all previously related items of the synthetic_device replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.SyntheticToken's SyntheticTokenRewards accordingly. Replaces o.R.SyntheticTokenRewards with related. Sets related.R.SyntheticToken's SyntheticTokenRewards accordingly.

func (*SyntheticDevice) SetVehicle

func (o *SyntheticDevice) SetVehicle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Vehicle) error

SetVehicle of the syntheticDevice to the related item. Sets o.R.Vehicle to related. Adds o to related.R.SyntheticDevice.

func (*SyntheticDevice) SyntheticTokenRewards added in v0.1.5

func (o *SyntheticDevice) SyntheticTokenRewards(mods ...qm.QueryMod) rewardQuery

SyntheticTokenRewards retrieves all the reward's Rewards with an executor via synthetic_token_id column.

func (*SyntheticDevice) Update

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

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

func (o *SyntheticDevice) 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 (*SyntheticDevice) Vehicle

func (o *SyntheticDevice) Vehicle(mods ...qm.QueryMod) vehicleQuery

Vehicle pointed to by the foreign key.

type SyntheticDeviceHook

type SyntheticDeviceHook func(context.Context, boil.ContextExecutor, *SyntheticDevice) error

SyntheticDeviceHook is the signature for custom SyntheticDevice hook methods

type SyntheticDeviceSlice

type SyntheticDeviceSlice []*SyntheticDevice

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

func (SyntheticDeviceSlice) DeleteAll

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

func (*SyntheticDeviceSlice) ReloadAll

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

func (SyntheticDeviceSlice) UpdateAll

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

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

type UpsertOptionFunc added in v0.1.21

type UpsertOptionFunc func(o *UpsertOptions)

func UpsertConflictTarget added in v0.1.21

func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc

func UpsertUpdateSet added in v0.1.21

func UpsertUpdateSet(updateSet string) UpsertOptionFunc

type UpsertOptions added in v0.1.21

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

type Vehicle

type Vehicle struct {
	ID                 int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	OwnerAddress       []byte      `boil:"owner_address" json:"owner_address" toml:"owner_address" yaml:"owner_address"`
	Make               null.String `boil:"make" json:"make,omitempty" toml:"make" yaml:"make,omitempty"`
	Model              null.String `boil:"model" json:"model,omitempty" toml:"model" yaml:"model,omitempty"`
	Year               null.Int    `boil:"year" json:"year,omitempty" toml:"year" yaml:"year,omitempty"`
	MintedAt           time.Time   `boil:"minted_at" json:"minted_at" toml:"minted_at" yaml:"minted_at"`
	ManufacturerID     int         `boil:"manufacturer_id" json:"manufacturer_id" toml:"manufacturer_id" yaml:"manufacturer_id"`
	ImageURI           null.String `boil:"image_uri" json:"image_uri,omitempty" toml:"image_uri" yaml:"image_uri,omitempty"`
	DeviceDefinitionID null.String `` /* 131-byte string literal not displayed */
	StorageNodeID      null.Bytes  `boil:"storage_node_id" json:"storage_node_id,omitempty" toml:"storage_node_id" yaml:"storage_node_id,omitempty"`

	R *vehicleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L vehicleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Vehicle is an object representing the database table.

func FindVehicle

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

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

func (*Vehicle) AddDCNS

func (o *Vehicle) AddDCNS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DCN) error

AddDCNS adds the given related objects to the existing relationships of the vehicle, optionally inserting them as new records. Appends related to o.R.DCNS. Sets related.R.Vehicle appropriately.

func (*Vehicle) AddRewards added in v0.1.5

func (o *Vehicle) AddRewards(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Reward) error

AddRewards adds the given related objects to the existing relationships of the vehicle, optionally inserting them as new records. Appends related to o.R.Rewards. Sets related.R.Vehicle appropriately.

func (*Vehicle) AddTokenPrivileges

func (o *Vehicle) AddTokenPrivileges(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Privilege) error

AddTokenPrivileges adds the given related objects to the existing relationships of the vehicle, optionally inserting them as new records. Appends related to o.R.TokenPrivileges. Sets related.R.Token appropriately.

func (*Vehicle) AddVehicleSacds added in v0.2.0

func (o *Vehicle) AddVehicleSacds(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*VehicleSacd) error

AddVehicleSacds adds the given related objects to the existing relationships of the vehicle, optionally inserting them as new records. Appends related to o.R.VehicleSacds. Sets related.R.Vehicle appropriately.

func (*Vehicle) AftermarketDevice

func (o *Vehicle) AftermarketDevice(mods ...qm.QueryMod) aftermarketDeviceQuery

AftermarketDevice pointed to by the foreign key.

func (*Vehicle) DCNS

func (o *Vehicle) DCNS(mods ...qm.QueryMod) dcnQuery

DCNS retrieves all the dcn's DCNS with an executor.

func (*Vehicle) Delete

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

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

func (*Vehicle) Exists

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

Exists checks if the Vehicle row exists.

func (*Vehicle) GetAftermarketDevice added in v0.4.8

func (o *Vehicle) GetAftermarketDevice() *AftermarketDevice

func (*Vehicle) GetDCNS added in v0.4.8

func (o *Vehicle) GetDCNS() DCNSlice

func (*Vehicle) GetManufacturer added in v0.4.8

func (o *Vehicle) GetManufacturer() *Manufacturer

func (*Vehicle) GetRewards added in v0.4.8

func (o *Vehicle) GetRewards() RewardSlice

func (*Vehicle) GetStake added in v0.4.8

func (o *Vehicle) GetStake() *Stake

func (*Vehicle) GetStorageNode added in v0.5.0

func (o *Vehicle) GetStorageNode() *StorageNode

func (*Vehicle) GetSyntheticDevice added in v0.4.8

func (o *Vehicle) GetSyntheticDevice() *SyntheticDevice

func (*Vehicle) GetTokenPrivileges added in v0.4.8

func (o *Vehicle) GetTokenPrivileges() PrivilegeSlice

func (*Vehicle) GetVehicleSacds added in v0.4.8

func (o *Vehicle) GetVehicleSacds() VehicleSacdSlice

func (*Vehicle) Insert

func (o *Vehicle) 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 (*Vehicle) Manufacturer

func (o *Vehicle) Manufacturer(mods ...qm.QueryMod) manufacturerQuery

Manufacturer pointed to by the foreign key.

func (*Vehicle) Reload

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

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

func (*Vehicle) RemoveAftermarketDevice

func (o *Vehicle) RemoveAftermarketDevice(ctx context.Context, exec boil.ContextExecutor, related *AftermarketDevice) error

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

func (*Vehicle) RemoveDCNS

func (o *Vehicle) RemoveDCNS(ctx context.Context, exec boil.ContextExecutor, related ...*DCN) error

RemoveDCNS relationships from objects passed in. Removes related items from R.DCNS (uses pointer comparison, removal does not keep order) Sets related.R.Vehicle.

func (*Vehicle) RemoveStake added in v0.4.7

func (o *Vehicle) RemoveStake(ctx context.Context, exec boil.ContextExecutor, related *Stake) error

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

func (*Vehicle) RemoveStorageNode added in v0.5.0

func (o *Vehicle) RemoveStorageNode(ctx context.Context, exec boil.ContextExecutor, related *StorageNode) error

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

func (*Vehicle) Rewards added in v0.1.5

func (o *Vehicle) Rewards(mods ...qm.QueryMod) rewardQuery

Rewards retrieves all the reward's Rewards with an executor.

func (*Vehicle) SetAftermarketDevice

func (o *Vehicle) SetAftermarketDevice(ctx context.Context, exec boil.ContextExecutor, insert bool, related *AftermarketDevice) error

SetAftermarketDevice of the vehicle to the related item. Sets o.R.AftermarketDevice to related. Adds o to related.R.Vehicle.

func (*Vehicle) SetDCNS

func (o *Vehicle) SetDCNS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DCN) error

SetDCNS removes all previously related items of the vehicle replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Vehicle's DCNS accordingly. Replaces o.R.DCNS with related. Sets related.R.Vehicle's DCNS accordingly.

func (*Vehicle) SetManufacturer

func (o *Vehicle) SetManufacturer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Manufacturer) error

SetManufacturer of the vehicle to the related item. Sets o.R.Manufacturer to related. Adds o to related.R.Vehicles.

func (*Vehicle) SetStake added in v0.4.7

func (o *Vehicle) SetStake(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Stake) error

SetStake of the vehicle to the related item. Sets o.R.Stake to related. Adds o to related.R.Vehicle.

func (*Vehicle) SetStorageNode added in v0.5.0

func (o *Vehicle) SetStorageNode(ctx context.Context, exec boil.ContextExecutor, insert bool, related *StorageNode) error

SetStorageNode of the vehicle to the related item. Sets o.R.StorageNode to related. Adds o to related.R.Vehicles.

func (*Vehicle) SetSyntheticDevice added in v0.4.7

func (o *Vehicle) SetSyntheticDevice(ctx context.Context, exec boil.ContextExecutor, insert bool, related *SyntheticDevice) error

SetSyntheticDevice of the vehicle to the related item. Sets o.R.SyntheticDevice to related. Adds o to related.R.Vehicle.

func (*Vehicle) Stake added in v0.4.7

func (o *Vehicle) Stake(mods ...qm.QueryMod) stakeQuery

Stake pointed to by the foreign key.

func (*Vehicle) StorageNode added in v0.5.0

func (o *Vehicle) StorageNode(mods ...qm.QueryMod) storageNodeQuery

StorageNode pointed to by the foreign key.

func (*Vehicle) SyntheticDevice added in v0.4.7

func (o *Vehicle) SyntheticDevice(mods ...qm.QueryMod) syntheticDeviceQuery

SyntheticDevice pointed to by the foreign key.

func (*Vehicle) TokenPrivileges

func (o *Vehicle) TokenPrivileges(mods ...qm.QueryMod) privilegeQuery

TokenPrivileges retrieves all the privilege's Privileges with an executor via token_id column.

func (*Vehicle) Update

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

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

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

func (o *Vehicle) VehicleSacds(mods ...qm.QueryMod) vehicleSacdQuery

VehicleSacds retrieves all the vehicle_sacd's VehicleSacds with an executor.

type VehicleHook

type VehicleHook func(context.Context, boil.ContextExecutor, *Vehicle) error

VehicleHook is the signature for custom Vehicle hook methods

type VehicleSacd added in v0.2.0

type VehicleSacd struct {
	VehicleID   int       `boil:"vehicle_id" json:"vehicle_id" toml:"vehicle_id" yaml:"vehicle_id"`
	Grantee     []byte    `boil:"grantee" json:"grantee" toml:"grantee" yaml:"grantee"`
	Permissions string    `boil:"permissions" json:"permissions" toml:"permissions" yaml:"permissions"`
	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"`
	ExpiresAt   time.Time `boil:"expires_at" json:"expires_at" toml:"expires_at" yaml:"expires_at"`

	R *vehicleSacdR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L vehicleSacdL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

VehicleSacd is an object representing the database table.

func FindVehicleSacd added in v0.2.0

func FindVehicleSacd(ctx context.Context, exec boil.ContextExecutor, vehicleID int, grantee []byte, selectCols ...string) (*VehicleSacd, error)

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

func (*VehicleSacd) Delete added in v0.2.0

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

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

func (*VehicleSacd) Exists added in v0.2.0

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

Exists checks if the VehicleSacd row exists.

func (*VehicleSacd) GetVehicle added in v0.4.8

func (o *VehicleSacd) GetVehicle() *Vehicle

func (*VehicleSacd) Insert added in v0.2.0

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

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

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

func (*VehicleSacd) SetVehicle added in v0.2.0

func (o *VehicleSacd) SetVehicle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Vehicle) error

SetVehicle of the vehicleSacd to the related item. Sets o.R.Vehicle to related. Adds o to related.R.VehicleSacds.

func (*VehicleSacd) Update added in v0.2.0

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

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

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

func (o *VehicleSacd) Vehicle(mods ...qm.QueryMod) vehicleQuery

Vehicle pointed to by the foreign key.

type VehicleSacdHook added in v0.2.0

type VehicleSacdHook func(context.Context, boil.ContextExecutor, *VehicleSacd) error

VehicleSacdHook is the signature for custom VehicleSacd hook methods

type VehicleSacdSlice added in v0.2.0

type VehicleSacdSlice []*VehicleSacd

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

func (VehicleSacdSlice) DeleteAll added in v0.2.0

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

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

func (*VehicleSacdSlice) ReloadAll added in v0.2.0

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

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

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

type VehicleSlice

type VehicleSlice []*Vehicle

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

func (VehicleSlice) DeleteAll

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

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

func (*VehicleSlice) ReloadAll

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

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