model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AbnormalClaimColumns = struct {
	ID              string
	Name            string
	ClaimID         string
	IsUpdate        string
	BlockHash       string
	TransactionHash string
	Vout            string
	OutputID        string
	ValueAsHex      string
	ValueAsJSON     string
	CreatedAt       string
	ModifiedAt      string
}{
	ID:              "id",
	Name:            "name",
	ClaimID:         "claim_id",
	IsUpdate:        "is_update",
	BlockHash:       "block_hash",
	TransactionHash: "transaction_hash",
	Vout:            "vout",
	OutputID:        "output_id",
	ValueAsHex:      "value_as_hex",
	ValueAsJSON:     "value_as_json",
	CreatedAt:       "created_at",
	ModifiedAt:      "modified_at",
}
View Source
var AddressColumns = struct {
	ID         string
	Address    string
	FirstSeen  string
	CreatedAt  string
	ModifiedAt string
}{
	ID:         "id",
	Address:    "address",
	FirstSeen:  "first_seen",
	CreatedAt:  "created_at",
	ModifiedAt: "modified_at",
}
View Source
var ApplicationStatusColumns = struct {
	ID          string
	AppVersion  string
	DataVersion string
	APIVersion  string
}{
	ID:          "id",
	AppVersion:  "app_version",
	DataVersion: "data_version",
	APIVersion:  "api_version",
}
View Source
var BlockColumns = struct {
	ID                    string
	Bits                  string
	Chainwork             string
	Confirmations         string
	Difficulty            string
	Hash                  string
	Height                string
	MerkleRoot            string
	NameClaimRoot         string
	Nonce                 string
	PreviousBlockHash     string
	NextBlockHash         string
	BlockSize             string
	BlockTime             string
	Version               string
	VersionHex            string
	TransactionHashes     string
	TransactionsProcessed string
	CreatedAt             string
	ModifiedAt            string
}{
	ID:                    "id",
	Bits:                  "bits",
	Chainwork:             "chainwork",
	Confirmations:         "confirmations",
	Difficulty:            "difficulty",
	Hash:                  "hash",
	Height:                "height",
	MerkleRoot:            "merkle_root",
	NameClaimRoot:         "name_claim_root",
	Nonce:                 "nonce",
	PreviousBlockHash:     "previous_block_hash",
	NextBlockHash:         "next_block_hash",
	BlockSize:             "block_size",
	BlockTime:             "block_time",
	Version:               "version",
	VersionHex:            "version_hex",
	TransactionHashes:     "transaction_hashes",
	TransactionsProcessed: "transactions_processed",
	CreatedAt:             "created_at",
	ModifiedAt:            "modified_at",
}
View Source
var ClaimColumns = struct {
	ID                string
	TransactionHashID string
	Vout              string
	Name              string
	ClaimID           string
	ClaimType         string
	PublisherID       string
	PublisherSig      string
	Certificate       string
	SDHash            string
	TransactionTime   string
	Version           string
	ValueAsHex        string
	ValueAsJSON       string
	ValidAtHeight     string
	Height            string
	EffectiveAmount   string
	Author            string
	Description       string
	ContentType       string
	IsNSFW            string
	Language          string
	ThumbnailURL      string
	Title             string
	Fee               string
	FeeCurrency       string
	FeeAddress        string
	IsFiltered        string
	BidState          string
	CreatedAt         string
	ModifiedAt        string
	ClaimAddress      string
}{
	ID:                "id",
	TransactionHashID: "transaction_hash_id",
	Vout:              "vout",
	Name:              "name",
	ClaimID:           "claim_id",
	ClaimType:         "claim_type",
	PublisherID:       "publisher_id",
	PublisherSig:      "publisher_sig",
	Certificate:       "certificate",
	SDHash:            "sd_hash",
	TransactionTime:   "transaction_time",
	Version:           "version",
	ValueAsHex:        "value_as_hex",
	ValueAsJSON:       "value_as_json",
	ValidAtHeight:     "valid_at_height",
	Height:            "height",
	EffectiveAmount:   "effective_amount",
	Author:            "author",
	Description:       "description",
	ContentType:       "content_type",
	IsNSFW:            "is_nsfw",
	Language:          "language",
	ThumbnailURL:      "thumbnail_url",
	Title:             "title",
	Fee:               "fee",
	FeeCurrency:       "fee_currency",
	FeeAddress:        "fee_address",
	IsFiltered:        "is_filtered",
	BidState:          "bid_state",
	CreatedAt:         "created_at",
	ModifiedAt:        "modified_at",
	ClaimAddress:      "claim_address",
}
View Source
var ErrSyncFail = errors.New("model: 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 InputColumns = struct {
	ID                  string
	TransactionID       string
	TransactionHash     string
	InputAddressID      string
	IsCoinbase          string
	Coinbase            string
	PrevoutHash         string
	PrevoutN            string
	PrevoutSpendUpdated string
	Sequence            string
	Value               string
	ScriptSigAsm        string
	ScriptSigHex        string
	Created             string
	Modified            string
}{
	ID:                  "id",
	TransactionID:       "transaction_id",
	TransactionHash:     "transaction_hash",
	InputAddressID:      "input_address_id",
	IsCoinbase:          "is_coinbase",
	Coinbase:            "coinbase",
	PrevoutHash:         "prevout_hash",
	PrevoutN:            "prevout_n",
	PrevoutSpendUpdated: "prevout_spend_updated",
	Sequence:            "sequence",
	Value:               "value",
	ScriptSigAsm:        "script_sig_asm",
	ScriptSigHex:        "script_sig_hex",
	Created:             "created",
	Modified:            "modified",
}
View Source
var JobStatusColumns = struct {
	JobName      string
	LastSync     string
	IsSuccess    string
	ErrorMessage string
}{
	JobName:      "job_name",
	LastSync:     "last_sync",
	IsSuccess:    "is_success",
	ErrorMessage: "error_message",
}
View Source
var OutputColumns = struct {
	ID                 string
	TransactionID      string
	TransactionHash    string
	Value              string
	Vout               string
	Type               string
	ScriptPubKeyAsm    string
	ScriptPubKeyHex    string
	RequiredSignatures string
	AddressList        string
	IsSpent            string
	SpentByInputID     string
	CreatedAt          string
	ModifiedAt         string
	ClaimID            string
}{
	ID:                 "id",
	TransactionID:      "transaction_id",
	TransactionHash:    "transaction_hash",
	Value:              "value",
	Vout:               "vout",
	Type:               "type",
	ScriptPubKeyAsm:    "script_pub_key_asm",
	ScriptPubKeyHex:    "script_pub_key_hex",
	RequiredSignatures: "required_signatures",
	AddressList:        "address_list",
	IsSpent:            "is_spent",
	SpentByInputID:     "spent_by_input_id",
	CreatedAt:          "created_at",
	ModifiedAt:         "modified_at",
	ClaimID:            "claim_id",
}
View Source
var SupportColumns = struct {
	ID                string
	SupportedClaimID  string
	SupportAmount     string
	BidState          string
	TransactionHashID string
	Vout              string
	CreatedAt         string
	ModifiedAt        string
}{
	ID:                "id",
	SupportedClaimID:  "supported_claim_id",
	SupportAmount:     "support_amount",
	BidState:          "bid_state",
	TransactionHashID: "transaction_hash_id",
	Vout:              "vout",
	CreatedAt:         "created_at",
	ModifiedAt:        "modified_at",
}
View Source
var TableNames = struct {
	AbnormalClaim      string
	Address            string
	ApplicationStatus  string
	Block              string
	Claim              string
	Input              string
	JobStatus          string
	Output             string
	Support            string
	Transaction        string
	TransactionAddress string
}{
	AbnormalClaim:      "abnormal_claim",
	Address:            "address",
	ApplicationStatus:  "application_status",
	Block:              "block",
	Claim:              "claim",
	Input:              "input",
	JobStatus:          "job_status",
	Output:             "output",
	Support:            "support",
	Transaction:        "transaction",
	TransactionAddress: "transaction_address",
}
View Source
var TransactionAddressColumns = struct {
	TransactionID string
	AddressID     string
	DebitAmount   string
	CreditAmount  string
}{
	TransactionID: "transaction_id",
	AddressID:     "address_id",
	DebitAmount:   "debit_amount",
	CreditAmount:  "credit_amount",
}
View Source
var TransactionColumns = struct {
	ID              string
	BlockHashID     string
	InputCount      string
	OutputCount     string
	Fee             string
	TransactionTime string
	TransactionSize string
	Hash            string
	Version         string
	LockTime        string
	Raw             string
	CreatedAt       string
	ModifiedAt      string
	CreatedTime     string
}{
	ID:              "id",
	BlockHashID:     "block_hash_id",
	InputCount:      "input_count",
	OutputCount:     "output_count",
	Fee:             "fee",
	TransactionTime: "transaction_time",
	TransactionSize: "transaction_size",
	Hash:            "hash",
	Version:         "version",
	LockTime:        "lock_time",
	Raw:             "raw",
	CreatedAt:       "created_at",
	ModifiedAt:      "modified_at",
	CreatedTime:     "created_time",
}

Functions

func AbnormalClaimExists added in v1.0.0

func AbnormalClaimExists(exec boil.Executor, id uint64) (bool, error)

AbnormalClaimExists checks if the AbnormalClaim row exists.

func AbnormalClaimExistsG added in v1.0.0

func AbnormalClaimExistsG(id uint64) (bool, error)

AbnormalClaimExistsG checks if the AbnormalClaim row exists.

func AbnormalClaimExistsGP added in v1.0.0

func AbnormalClaimExistsGP(id uint64) bool

AbnormalClaimExistsGP checks if the AbnormalClaim row exists. Panics on error.

func AbnormalClaimExistsP added in v1.0.0

func AbnormalClaimExistsP(exec boil.Executor, id uint64) bool

AbnormalClaimExistsP checks if the AbnormalClaim row exists. Panics on error.

func AbnormalClaims added in v1.0.0

func AbnormalClaims(exec boil.Executor, mods ...qm.QueryMod) abnormalClaimQuery

AbnormalClaims retrieves all the records using an executor.

func AbnormalClaimsG added in v1.0.0

func AbnormalClaimsG(mods ...qm.QueryMod) abnormalClaimQuery

AbnormalClaimsG retrieves all records.

func AddressExists

func AddressExists(exec boil.Executor, id uint64) (bool, error)

AddressExists checks if the Address row exists.

func AddressExistsG

func AddressExistsG(id uint64) (bool, error)

AddressExistsG checks if the Address row exists.

func AddressExistsGP

func AddressExistsGP(id uint64) bool

AddressExistsGP checks if the Address row exists. Panics on error.

func AddressExistsP

func AddressExistsP(exec boil.Executor, id uint64) bool

AddressExistsP checks if the Address row exists. Panics on error.

func Addresses

func Addresses(exec boil.Executor, mods ...qm.QueryMod) addressQuery

Addresses retrieves all the records using an executor.

func AddressesG

func AddressesG(mods ...qm.QueryMod) addressQuery

AddressesG retrieves all records.

func ApplicationStatusExists

func ApplicationStatusExists(exec boil.Executor, id uint64) (bool, error)

ApplicationStatusExists checks if the ApplicationStatus row exists.

func ApplicationStatusExistsG

func ApplicationStatusExistsG(id uint64) (bool, error)

ApplicationStatusExistsG checks if the ApplicationStatus row exists.

func ApplicationStatusExistsGP

func ApplicationStatusExistsGP(id uint64) bool

ApplicationStatusExistsGP checks if the ApplicationStatus row exists. Panics on error.

func ApplicationStatusExistsP

func ApplicationStatusExistsP(exec boil.Executor, id uint64) bool

ApplicationStatusExistsP checks if the ApplicationStatus row exists. Panics on error.

func ApplicationStatuses

func ApplicationStatuses(exec boil.Executor, mods ...qm.QueryMod) applicationStatusQuery

ApplicationStatuses retrieves all the records using an executor.

func ApplicationStatusesG

func ApplicationStatusesG(mods ...qm.QueryMod) applicationStatusQuery

ApplicationStatusesG retrieves all records.

func BlockExists

func BlockExists(exec boil.Executor, id uint64) (bool, error)

BlockExists checks if the Block row exists.

func BlockExistsG

func BlockExistsG(id uint64) (bool, error)

BlockExistsG checks if the Block row exists.

func BlockExistsGP

func BlockExistsGP(id uint64) bool

BlockExistsGP checks if the Block row exists. Panics on error.

func BlockExistsP

func BlockExistsP(exec boil.Executor, id uint64) bool

BlockExistsP checks if the Block row exists. Panics on error.

func Blocks

func Blocks(exec boil.Executor, mods ...qm.QueryMod) blockQuery

Blocks retrieves all the records using an executor.

func BlocksG

func BlocksG(mods ...qm.QueryMod) blockQuery

BlocksG retrieves all records.

func ClaimExists

func ClaimExists(exec boil.Executor, id uint64) (bool, error)

ClaimExists checks if the Claim row exists.

func ClaimExistsG

func ClaimExistsG(id uint64) (bool, error)

ClaimExistsG checks if the Claim row exists.

func ClaimExistsGP

func ClaimExistsGP(id uint64) bool

ClaimExistsGP checks if the Claim row exists. Panics on error.

func ClaimExistsP

func ClaimExistsP(exec boil.Executor, id uint64) bool

ClaimExistsP checks if the Claim row exists. Panics on error.

func Claims

func Claims(exec boil.Executor, mods ...qm.QueryMod) claimQuery

Claims retrieves all the records using an executor.

func ClaimsG

func ClaimsG(mods ...qm.QueryMod) claimQuery

ClaimsG retrieves all records.

func InputExists

func InputExists(exec boil.Executor, id uint64) (bool, error)

InputExists checks if the Input row exists.

func InputExistsG

func InputExistsG(id uint64) (bool, error)

InputExistsG checks if the Input row exists.

func InputExistsGP

func InputExistsGP(id uint64) bool

InputExistsGP checks if the Input row exists. Panics on error.

func InputExistsP

func InputExistsP(exec boil.Executor, id uint64) bool

InputExistsP checks if the Input row exists. Panics on error.

func Inputs

func Inputs(exec boil.Executor, mods ...qm.QueryMod) inputQuery

Inputs retrieves all the records using an executor.

func InputsG

func InputsG(mods ...qm.QueryMod) inputQuery

InputsG retrieves all records.

func JobStatusExists

func JobStatusExists(exec boil.Executor, jobName string) (bool, error)

JobStatusExists checks if the JobStatus row exists.

func JobStatusExistsG

func JobStatusExistsG(jobName string) (bool, error)

JobStatusExistsG checks if the JobStatus row exists.

func JobStatusExistsGP

func JobStatusExistsGP(jobName string) bool

JobStatusExistsGP checks if the JobStatus row exists. Panics on error.

func JobStatusExistsP

func JobStatusExistsP(exec boil.Executor, jobName string) bool

JobStatusExistsP checks if the JobStatus row exists. Panics on error.

func JobStatuses

func JobStatuses(exec boil.Executor, mods ...qm.QueryMod) jobStatusQuery

JobStatuses retrieves all the records using an executor.

func JobStatusesG

func JobStatusesG(mods ...qm.QueryMod) jobStatusQuery

JobStatusesG retrieves all records.

func NewQuery

func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func NewQueryG

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

NewQueryG initializes a new Query using the passed in QueryMods

func OutputExists

func OutputExists(exec boil.Executor, id uint64) (bool, error)

OutputExists checks if the Output row exists.

func OutputExistsG

func OutputExistsG(id uint64) (bool, error)

OutputExistsG checks if the Output row exists.

func OutputExistsGP

func OutputExistsGP(id uint64) bool

OutputExistsGP checks if the Output row exists. Panics on error.

func OutputExistsP

func OutputExistsP(exec boil.Executor, id uint64) bool

OutputExistsP checks if the Output row exists. Panics on error.

func Outputs

func Outputs(exec boil.Executor, mods ...qm.QueryMod) outputQuery

Outputs retrieves all the records using an executor.

func OutputsG

func OutputsG(mods ...qm.QueryMod) outputQuery

OutputsG retrieves all records.

func SupportExists

func SupportExists(exec boil.Executor, id uint64) (bool, error)

SupportExists checks if the Support row exists.

func SupportExistsG

func SupportExistsG(id uint64) (bool, error)

SupportExistsG checks if the Support row exists.

func SupportExistsGP

func SupportExistsGP(id uint64) bool

SupportExistsGP checks if the Support row exists. Panics on error.

func SupportExistsP

func SupportExistsP(exec boil.Executor, id uint64) bool

SupportExistsP checks if the Support row exists. Panics on error.

func Supports

func Supports(exec boil.Executor, mods ...qm.QueryMod) supportQuery

Supports retrieves all the records using an executor.

func SupportsG

func SupportsG(mods ...qm.QueryMod) supportQuery

SupportsG retrieves all records.

func TransactionAddressExists

func TransactionAddressExists(exec boil.Executor, transactionID uint64, addressID uint64) (bool, error)

TransactionAddressExists checks if the TransactionAddress row exists.

func TransactionAddressExistsG

func TransactionAddressExistsG(transactionID uint64, addressID uint64) (bool, error)

TransactionAddressExistsG checks if the TransactionAddress row exists.

func TransactionAddressExistsGP

func TransactionAddressExistsGP(transactionID uint64, addressID uint64) bool

TransactionAddressExistsGP checks if the TransactionAddress row exists. Panics on error.

func TransactionAddressExistsP

func TransactionAddressExistsP(exec boil.Executor, transactionID uint64, addressID uint64) bool

TransactionAddressExistsP checks if the TransactionAddress row exists. Panics on error.

func TransactionAddresses

func TransactionAddresses(exec boil.Executor, mods ...qm.QueryMod) transactionAddressQuery

TransactionAddresses retrieves all the records using an executor.

func TransactionAddressesG

func TransactionAddressesG(mods ...qm.QueryMod) transactionAddressQuery

TransactionAddressesG retrieves all records.

func TransactionExists

func TransactionExists(exec boil.Executor, id uint64) (bool, error)

TransactionExists checks if the Transaction row exists.

func TransactionExistsG

func TransactionExistsG(id uint64) (bool, error)

TransactionExistsG checks if the Transaction row exists.

func TransactionExistsGP

func TransactionExistsGP(id uint64) bool

TransactionExistsGP checks if the Transaction row exists. Panics on error.

func TransactionExistsP

func TransactionExistsP(exec boil.Executor, id uint64) bool

TransactionExistsP checks if the Transaction row exists. Panics on error.

func Transactions

func Transactions(exec boil.Executor, mods ...qm.QueryMod) transactionQuery

Transactions retrieves all the records using an executor.

func TransactionsG

func TransactionsG(mods ...qm.QueryMod) transactionQuery

TransactionsG retrieves all records.

Types

type AbnormalClaim added in v1.0.0

type AbnormalClaim struct {
	ID              uint64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name            string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	ClaimID         string      `boil:"claim_id" json:"claim_id" toml:"claim_id" yaml:"claim_id"`
	IsUpdate        bool        `boil:"is_update" json:"is_update" toml:"is_update" yaml:"is_update"`
	BlockHash       null.String `boil:"block_hash" json:"block_hash,omitempty" toml:"block_hash" yaml:"block_hash,omitempty"`
	TransactionHash null.String `boil:"transaction_hash" json:"transaction_hash,omitempty" toml:"transaction_hash" yaml:"transaction_hash,omitempty"`
	Vout            uint        `boil:"vout" json:"vout" toml:"vout" yaml:"vout"`
	OutputID        uint64      `boil:"output_id" json:"output_id" toml:"output_id" yaml:"output_id"`
	ValueAsHex      string      `boil:"value_as_hex" json:"value_as_hex" toml:"value_as_hex" yaml:"value_as_hex"`
	ValueAsJSON     null.String `boil:"value_as_json" json:"value_as_json,omitempty" toml:"value_as_json" yaml:"value_as_json,omitempty"`
	CreatedAt       time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	ModifiedAt      time.Time   `boil:"modified_at" json:"modified_at" toml:"modified_at" yaml:"modified_at"`

	R *abnormalClaimR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L abnormalClaimL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AbnormalClaim is an object representing the database table.

func FindAbnormalClaim added in v1.0.0

func FindAbnormalClaim(exec boil.Executor, id uint64, selectCols ...string) (*AbnormalClaim, error)

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

func FindAbnormalClaimG added in v1.0.0

func FindAbnormalClaimG(id uint64, selectCols ...string) (*AbnormalClaim, error)

FindAbnormalClaimG retrieves a single record by ID.

func FindAbnormalClaimGP added in v1.0.0

func FindAbnormalClaimGP(id uint64, selectCols ...string) *AbnormalClaim

FindAbnormalClaimGP retrieves a single record by ID, and panics on error.

func FindAbnormalClaimP added in v1.0.0

func FindAbnormalClaimP(exec boil.Executor, id uint64, selectCols ...string) *AbnormalClaim

FindAbnormalClaimP retrieves a single record by ID with an executor, and panics on error.

func (*AbnormalClaim) Delete added in v1.0.0

func (o *AbnormalClaim) Delete(exec boil.Executor) error

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

func (*AbnormalClaim) DeleteG added in v1.0.0

func (o *AbnormalClaim) DeleteG() error

DeleteG deletes a single AbnormalClaim record. DeleteG will match against the primary key column to find the record to delete.

func (*AbnormalClaim) DeleteGP added in v1.0.0

func (o *AbnormalClaim) DeleteGP()

DeleteGP deletes a single AbnormalClaim record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*AbnormalClaim) DeleteP added in v1.0.0

func (o *AbnormalClaim) DeleteP(exec boil.Executor)

DeleteP deletes a single AbnormalClaim record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*AbnormalClaim) Insert added in v1.0.0

func (o *AbnormalClaim) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*AbnormalClaim) InsertG added in v1.0.0

func (o *AbnormalClaim) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*AbnormalClaim) InsertGP added in v1.0.0

func (o *AbnormalClaim) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*AbnormalClaim) InsertP added in v1.0.0

func (o *AbnormalClaim) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*AbnormalClaim) Output added in v1.0.0

func (o *AbnormalClaim) Output(exec boil.Executor, mods ...qm.QueryMod) outputQuery

Output pointed to by the foreign key.

func (*AbnormalClaim) OutputG added in v1.0.0

func (o *AbnormalClaim) OutputG(mods ...qm.QueryMod) outputQuery

OutputG pointed to by the foreign key.

func (*AbnormalClaim) Reload added in v1.0.0

func (o *AbnormalClaim) Reload(exec boil.Executor) error

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

func (*AbnormalClaim) ReloadG added in v1.0.0

func (o *AbnormalClaim) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*AbnormalClaim) ReloadGP added in v1.0.0

func (o *AbnormalClaim) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*AbnormalClaim) ReloadP added in v1.0.0

func (o *AbnormalClaim) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*AbnormalClaim) SetOutput added in v1.0.0

func (o *AbnormalClaim) SetOutput(exec boil.Executor, insert bool, related *Output) error

SetOutput of the abnormal_claim to the related item. Sets o.R.Output to related. Adds o to related.R.AbnormalClaims.

func (*AbnormalClaim) SetOutputG added in v1.0.0

func (o *AbnormalClaim) SetOutputG(insert bool, related *Output) error

SetOutputG of the abnormal_claim to the related item. Sets o.R.Output to related. Adds o to related.R.AbnormalClaims. Uses the global database handle.

func (*AbnormalClaim) SetOutputGP added in v1.0.0

func (o *AbnormalClaim) SetOutputGP(insert bool, related *Output)

SetOutputGP of the abnormal_claim to the related item. Sets o.R.Output to related. Adds o to related.R.AbnormalClaims. Uses the global database handle and panics on error.

func (*AbnormalClaim) SetOutputP added in v1.0.0

func (o *AbnormalClaim) SetOutputP(exec boil.Executor, insert bool, related *Output)

SetOutputP of the abnormal_claim to the related item. Sets o.R.Output to related. Adds o to related.R.AbnormalClaims. Panics on error.

func (*AbnormalClaim) Update added in v1.0.0

func (o *AbnormalClaim) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the AbnormalClaim. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*AbnormalClaim) UpdateG added in v1.0.0

func (o *AbnormalClaim) UpdateG(whitelist ...string) error

UpdateG a single AbnormalClaim record. See Update for whitelist behavior description.

func (*AbnormalClaim) UpdateGP added in v1.0.0

func (o *AbnormalClaim) UpdateGP(whitelist ...string)

UpdateGP a single AbnormalClaim record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*AbnormalClaim) UpdateP added in v1.0.0

func (o *AbnormalClaim) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the AbnormalClaim, and panics on error. See Update for whitelist behavior description.

func (*AbnormalClaim) Upsert added in v1.0.0

func (o *AbnormalClaim) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*AbnormalClaim) UpsertG added in v1.0.0

func (o *AbnormalClaim) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*AbnormalClaim) UpsertGP added in v1.0.0

func (o *AbnormalClaim) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*AbnormalClaim) UpsertP added in v1.0.0

func (o *AbnormalClaim) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type AbnormalClaimSlice added in v1.0.0

type AbnormalClaimSlice []*AbnormalClaim

AbnormalClaimSlice is an alias for a slice of pointers to AbnormalClaim. This should generally be used opposed to []AbnormalClaim.

func (AbnormalClaimSlice) DeleteAll added in v1.0.0

func (o AbnormalClaimSlice) DeleteAll(exec boil.Executor) error

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

func (AbnormalClaimSlice) DeleteAllG added in v1.0.0

func (o AbnormalClaimSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (AbnormalClaimSlice) DeleteAllGP added in v1.0.0

func (o AbnormalClaimSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (AbnormalClaimSlice) DeleteAllP added in v1.0.0

func (o AbnormalClaimSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*AbnormalClaimSlice) ReloadAll added in v1.0.0

func (o *AbnormalClaimSlice) ReloadAll(exec boil.Executor) error

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

func (*AbnormalClaimSlice) ReloadAllG added in v1.0.0

func (o *AbnormalClaimSlice) ReloadAllG() error

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

func (*AbnormalClaimSlice) ReloadAllGP added in v1.0.0

func (o *AbnormalClaimSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*AbnormalClaimSlice) ReloadAllP added in v1.0.0

func (o *AbnormalClaimSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (AbnormalClaimSlice) UpdateAll added in v1.0.0

func (o AbnormalClaimSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (AbnormalClaimSlice) UpdateAllG added in v1.0.0

func (o AbnormalClaimSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (AbnormalClaimSlice) UpdateAllGP added in v1.0.0

func (o AbnormalClaimSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (AbnormalClaimSlice) UpdateAllP added in v1.0.0

func (o AbnormalClaimSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Address

type Address struct {
	ID         uint64    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Address    string    `boil:"address" json:"address" toml:"address" yaml:"address"`
	FirstSeen  null.Time `boil:"first_seen" json:"first_seen,omitempty" toml:"first_seen" yaml:"first_seen,omitempty"`
	CreatedAt  time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	ModifiedAt time.Time `boil:"modified_at" json:"modified_at" toml:"modified_at" yaml:"modified_at"`

	R *addressR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L addressL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Address is an object representing the database table.

func FindAddress

func FindAddress(exec boil.Executor, id uint64, selectCols ...string) (*Address, error)

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

func FindAddressG

func FindAddressG(id uint64, selectCols ...string) (*Address, error)

FindAddressG retrieves a single record by ID.

func FindAddressGP

func FindAddressGP(id uint64, selectCols ...string) *Address

FindAddressGP retrieves a single record by ID, and panics on error.

func FindAddressP

func FindAddressP(exec boil.Executor, id uint64, selectCols ...string) *Address

FindAddressP retrieves a single record by ID with an executor, and panics on error.

func (*Address) AddTransactionAddresses

func (o *Address) AddTransactionAddresses(exec boil.Executor, insert bool, related ...*TransactionAddress) error

AddTransactionAddresses adds the given related objects to the existing relationships of the address, optionally inserting them as new records. Appends related to o.R.TransactionAddresses. Sets related.R.Address appropriately.

func (*Address) AddTransactionAddressesG

func (o *Address) AddTransactionAddressesG(insert bool, related ...*TransactionAddress) error

AddTransactionAddressesG adds the given related objects to the existing relationships of the address, optionally inserting them as new records. Appends related to o.R.TransactionAddresses. Sets related.R.Address appropriately. Uses the global database handle.

func (*Address) AddTransactionAddressesGP

func (o *Address) AddTransactionAddressesGP(insert bool, related ...*TransactionAddress)

AddTransactionAddressesGP adds the given related objects to the existing relationships of the address, optionally inserting them as new records. Appends related to o.R.TransactionAddresses. Sets related.R.Address appropriately. Uses the global database handle and panics on error.

func (*Address) AddTransactionAddressesP

func (o *Address) AddTransactionAddressesP(exec boil.Executor, insert bool, related ...*TransactionAddress)

AddTransactionAddressesP adds the given related objects to the existing relationships of the address, optionally inserting them as new records. Appends related to o.R.TransactionAddresses. Sets related.R.Address appropriately. Panics on error.

func (*Address) Delete

func (o *Address) Delete(exec boil.Executor) error

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

func (*Address) DeleteG

func (o *Address) DeleteG() error

DeleteG deletes a single Address record. DeleteG will match against the primary key column to find the record to delete.

func (*Address) DeleteGP

func (o *Address) DeleteGP()

DeleteGP deletes a single Address record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Address) DeleteP

func (o *Address) DeleteP(exec boil.Executor)

DeleteP deletes a single Address record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Address) Insert

func (o *Address) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Address) InsertG

func (o *Address) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Address) InsertGP

func (o *Address) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Address) InsertP

func (o *Address) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Address) Reload

func (o *Address) Reload(exec boil.Executor) error

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

func (*Address) ReloadG

func (o *Address) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Address) ReloadGP

func (o *Address) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Address) ReloadP

func (o *Address) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Address) TransactionAddresses

func (o *Address) TransactionAddresses(exec boil.Executor, mods ...qm.QueryMod) transactionAddressQuery

TransactionAddresses retrieves all the transaction_address's transaction address with an executor.

func (*Address) TransactionAddressesG

func (o *Address) TransactionAddressesG(mods ...qm.QueryMod) transactionAddressQuery

TransactionAddressesG retrieves all the transaction_address's transaction address.

func (*Address) Update

func (o *Address) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Address. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Address) UpdateG

func (o *Address) UpdateG(whitelist ...string) error

UpdateG a single Address record. See Update for whitelist behavior description.

func (*Address) UpdateGP

func (o *Address) UpdateGP(whitelist ...string)

UpdateGP a single Address record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Address) UpdateP

func (o *Address) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Address, and panics on error. See Update for whitelist behavior description.

func (*Address) Upsert

func (o *Address) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Address) UpsertG

func (o *Address) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Address) UpsertGP

func (o *Address) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Address) UpsertP

func (o *Address) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type AddressSlice

type AddressSlice []*Address

AddressSlice is an alias for a slice of pointers to Address. This should generally be used opposed to []Address.

func (AddressSlice) DeleteAll

func (o AddressSlice) DeleteAll(exec boil.Executor) error

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

func (AddressSlice) DeleteAllG

func (o AddressSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (AddressSlice) DeleteAllGP

func (o AddressSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (AddressSlice) DeleteAllP

func (o AddressSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*AddressSlice) ReloadAll

func (o *AddressSlice) ReloadAll(exec boil.Executor) error

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

func (*AddressSlice) ReloadAllG

func (o *AddressSlice) ReloadAllG() error

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

func (*AddressSlice) ReloadAllGP

func (o *AddressSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*AddressSlice) ReloadAllP

func (o *AddressSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (AddressSlice) UpdateAll

func (o AddressSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (AddressSlice) UpdateAllG

func (o AddressSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (AddressSlice) UpdateAllGP

func (o AddressSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (AddressSlice) UpdateAllP

func (o AddressSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type ApplicationStatus

type ApplicationStatus struct {
	ID          uint64 `boil:"id" json:"id" toml:"id" yaml:"id"`
	AppVersion  int    `boil:"app_version" json:"app_version" toml:"app_version" yaml:"app_version"`
	DataVersion int    `boil:"data_version" json:"data_version" toml:"data_version" yaml:"data_version"`
	APIVersion  int    `boil:"api_version" json:"api_version" toml:"api_version" yaml:"api_version"`

	R *applicationStatusR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L applicationStatusL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ApplicationStatus is an object representing the database table.

func FindApplicationStatus

func FindApplicationStatus(exec boil.Executor, id uint64, selectCols ...string) (*ApplicationStatus, error)

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

func FindApplicationStatusG

func FindApplicationStatusG(id uint64, selectCols ...string) (*ApplicationStatus, error)

FindApplicationStatusG retrieves a single record by ID.

func FindApplicationStatusGP

func FindApplicationStatusGP(id uint64, selectCols ...string) *ApplicationStatus

FindApplicationStatusGP retrieves a single record by ID, and panics on error.

func FindApplicationStatusP

func FindApplicationStatusP(exec boil.Executor, id uint64, selectCols ...string) *ApplicationStatus

FindApplicationStatusP retrieves a single record by ID with an executor, and panics on error.

func (*ApplicationStatus) Delete

func (o *ApplicationStatus) Delete(exec boil.Executor) error

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

func (*ApplicationStatus) DeleteG

func (o *ApplicationStatus) DeleteG() error

DeleteG deletes a single ApplicationStatus record. DeleteG will match against the primary key column to find the record to delete.

func (*ApplicationStatus) DeleteGP

func (o *ApplicationStatus) DeleteGP()

DeleteGP deletes a single ApplicationStatus record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*ApplicationStatus) DeleteP

func (o *ApplicationStatus) DeleteP(exec boil.Executor)

DeleteP deletes a single ApplicationStatus record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*ApplicationStatus) Insert

func (o *ApplicationStatus) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*ApplicationStatus) InsertG

func (o *ApplicationStatus) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ApplicationStatus) InsertGP

func (o *ApplicationStatus) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*ApplicationStatus) InsertP

func (o *ApplicationStatus) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*ApplicationStatus) Reload

func (o *ApplicationStatus) Reload(exec boil.Executor) error

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

func (*ApplicationStatus) ReloadG

func (o *ApplicationStatus) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*ApplicationStatus) ReloadGP

func (o *ApplicationStatus) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*ApplicationStatus) ReloadP

func (o *ApplicationStatus) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*ApplicationStatus) Update

func (o *ApplicationStatus) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the ApplicationStatus. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ApplicationStatus) UpdateG

func (o *ApplicationStatus) UpdateG(whitelist ...string) error

UpdateG a single ApplicationStatus record. See Update for whitelist behavior description.

func (*ApplicationStatus) UpdateGP

func (o *ApplicationStatus) UpdateGP(whitelist ...string)

UpdateGP a single ApplicationStatus record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*ApplicationStatus) UpdateP

func (o *ApplicationStatus) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the ApplicationStatus, and panics on error. See Update for whitelist behavior description.

func (*ApplicationStatus) Upsert

func (o *ApplicationStatus) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*ApplicationStatus) UpsertG

func (o *ApplicationStatus) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*ApplicationStatus) UpsertGP

func (o *ApplicationStatus) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*ApplicationStatus) UpsertP

func (o *ApplicationStatus) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type ApplicationStatusSlice

type ApplicationStatusSlice []*ApplicationStatus

ApplicationStatusSlice is an alias for a slice of pointers to ApplicationStatus. This should generally be used opposed to []ApplicationStatus.

func (ApplicationStatusSlice) DeleteAll

func (o ApplicationStatusSlice) DeleteAll(exec boil.Executor) error

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

func (ApplicationStatusSlice) DeleteAllG

func (o ApplicationStatusSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (ApplicationStatusSlice) DeleteAllGP

func (o ApplicationStatusSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (ApplicationStatusSlice) DeleteAllP

func (o ApplicationStatusSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*ApplicationStatusSlice) ReloadAll

func (o *ApplicationStatusSlice) ReloadAll(exec boil.Executor) error

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

func (*ApplicationStatusSlice) ReloadAllG

func (o *ApplicationStatusSlice) ReloadAllG() error

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

func (*ApplicationStatusSlice) ReloadAllGP

func (o *ApplicationStatusSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*ApplicationStatusSlice) ReloadAllP

func (o *ApplicationStatusSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (ApplicationStatusSlice) UpdateAll

func (o ApplicationStatusSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (ApplicationStatusSlice) UpdateAllG

func (o ApplicationStatusSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (ApplicationStatusSlice) UpdateAllGP

func (o ApplicationStatusSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (ApplicationStatusSlice) UpdateAllP

func (o ApplicationStatusSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Block

type Block struct {
	ID                    uint64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Bits                  string      `boil:"bits" json:"bits" toml:"bits" yaml:"bits"`
	Chainwork             string      `boil:"chainwork" json:"chainwork" toml:"chainwork" yaml:"chainwork"`
	Confirmations         uint        `boil:"confirmations" json:"confirmations" toml:"confirmations" yaml:"confirmations"`
	Difficulty            float64     `boil:"difficulty" json:"difficulty" toml:"difficulty" yaml:"difficulty"`
	Hash                  string      `boil:"hash" json:"hash" toml:"hash" yaml:"hash"`
	Height                uint64      `boil:"height" json:"height" toml:"height" yaml:"height"`
	MerkleRoot            string      `boil:"merkle_root" json:"merkle_root" toml:"merkle_root" yaml:"merkle_root"`
	NameClaimRoot         string      `boil:"name_claim_root" json:"name_claim_root" toml:"name_claim_root" yaml:"name_claim_root"`
	Nonce                 uint64      `boil:"nonce" json:"nonce" toml:"nonce" yaml:"nonce"`
	PreviousBlockHash     null.String `` /* 127-byte string literal not displayed */
	NextBlockHash         null.String `boil:"next_block_hash" json:"next_block_hash,omitempty" toml:"next_block_hash" yaml:"next_block_hash,omitempty"`
	BlockSize             uint64      `boil:"block_size" json:"block_size" toml:"block_size" yaml:"block_size"`
	BlockTime             uint64      `boil:"block_time" json:"block_time" toml:"block_time" yaml:"block_time"`
	Version               uint64      `boil:"version" json:"version" toml:"version" yaml:"version"`
	VersionHex            string      `boil:"version_hex" json:"version_hex" toml:"version_hex" yaml:"version_hex"`
	TransactionHashes     null.String `boil:"transaction_hashes" json:"transaction_hashes,omitempty" toml:"transaction_hashes" yaml:"transaction_hashes,omitempty"`
	TransactionsProcessed bool        `boil:"transactions_processed" json:"transactions_processed" toml:"transactions_processed" yaml:"transactions_processed"`
	CreatedAt             time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	ModifiedAt            time.Time   `boil:"modified_at" json:"modified_at" toml:"modified_at" yaml:"modified_at"`

	R *blockR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L blockL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Block is an object representing the database table.

func FindBlock

func FindBlock(exec boil.Executor, id uint64, selectCols ...string) (*Block, error)

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

func FindBlockG

func FindBlockG(id uint64, selectCols ...string) (*Block, error)

FindBlockG retrieves a single record by ID.

func FindBlockGP

func FindBlockGP(id uint64, selectCols ...string) *Block

FindBlockGP retrieves a single record by ID, and panics on error.

func FindBlockP

func FindBlockP(exec boil.Executor, id uint64, selectCols ...string) *Block

FindBlockP retrieves a single record by ID with an executor, and panics on error.

func (*Block) AddBlockHashTransactions added in v1.0.0

func (o *Block) AddBlockHashTransactions(exec boil.Executor, insert bool, related ...*Transaction) error

AddBlockHashTransactions adds the given related objects to the existing relationships of the block, optionally inserting them as new records. Appends related to o.R.BlockHashTransactions. Sets related.R.BlockHash appropriately.

func (*Block) AddBlockHashTransactionsG added in v1.0.0

func (o *Block) AddBlockHashTransactionsG(insert bool, related ...*Transaction) error

AddBlockHashTransactionsG adds the given related objects to the existing relationships of the block, optionally inserting them as new records. Appends related to o.R.BlockHashTransactions. Sets related.R.BlockHash appropriately. Uses the global database handle.

func (*Block) AddBlockHashTransactionsGP added in v1.0.0

func (o *Block) AddBlockHashTransactionsGP(insert bool, related ...*Transaction)

AddBlockHashTransactionsGP adds the given related objects to the existing relationships of the block, optionally inserting them as new records. Appends related to o.R.BlockHashTransactions. Sets related.R.BlockHash appropriately. Uses the global database handle and panics on error.

func (*Block) AddBlockHashTransactionsP added in v1.0.0

func (o *Block) AddBlockHashTransactionsP(exec boil.Executor, insert bool, related ...*Transaction)

AddBlockHashTransactionsP adds the given related objects to the existing relationships of the block, optionally inserting them as new records. Appends related to o.R.BlockHashTransactions. Sets related.R.BlockHash appropriately. Panics on error.

func (*Block) BlockHashTransactions added in v1.0.0

func (o *Block) BlockHashTransactions(exec boil.Executor, mods ...qm.QueryMod) transactionQuery

BlockHashTransactions retrieves all the transaction's transaction with an executor via block_hash_id column.

func (*Block) BlockHashTransactionsG added in v1.0.0

func (o *Block) BlockHashTransactionsG(mods ...qm.QueryMod) transactionQuery

BlockHashTransactionsG retrieves all the transaction's transaction via block_hash_id column.

func (*Block) Delete

func (o *Block) Delete(exec boil.Executor) error

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

func (*Block) DeleteG

func (o *Block) DeleteG() error

DeleteG deletes a single Block record. DeleteG will match against the primary key column to find the record to delete.

func (*Block) DeleteGP

func (o *Block) DeleteGP()

DeleteGP deletes a single Block record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Block) DeleteP

func (o *Block) DeleteP(exec boil.Executor)

DeleteP deletes a single Block record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Block) Insert

func (o *Block) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Block) InsertG

func (o *Block) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Block) InsertGP

func (o *Block) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Block) InsertP

func (o *Block) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Block) Reload

func (o *Block) Reload(exec boil.Executor) error

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

func (*Block) ReloadG

func (o *Block) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Block) ReloadGP

func (o *Block) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Block) ReloadP

func (o *Block) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Block) RemoveBlockHashTransactions added in v1.0.0

func (o *Block) RemoveBlockHashTransactions(exec boil.Executor, related ...*Transaction) error

RemoveBlockHashTransactions relationships from objects passed in. Removes related items from R.BlockHashTransactions (uses pointer comparison, removal does not keep order) Sets related.R.BlockHash.

func (*Block) RemoveBlockHashTransactionsG added in v1.0.0

func (o *Block) RemoveBlockHashTransactionsG(related ...*Transaction) error

RemoveBlockHashTransactionsG relationships from objects passed in. Removes related items from R.BlockHashTransactions (uses pointer comparison, removal does not keep order) Sets related.R.BlockHash. Uses the global database handle.

func (*Block) RemoveBlockHashTransactionsGP added in v1.0.0

func (o *Block) RemoveBlockHashTransactionsGP(related ...*Transaction)

RemoveBlockHashTransactionsGP relationships from objects passed in. Removes related items from R.BlockHashTransactions (uses pointer comparison, removal does not keep order) Sets related.R.BlockHash. Uses the global database handle and panics on error.

func (*Block) RemoveBlockHashTransactionsP added in v1.0.0

func (o *Block) RemoveBlockHashTransactionsP(exec boil.Executor, related ...*Transaction)

RemoveBlockHashTransactionsP relationships from objects passed in. Removes related items from R.BlockHashTransactions (uses pointer comparison, removal does not keep order) Sets related.R.BlockHash. Panics on error.

func (*Block) SetBlockHashTransactions added in v1.0.0

func (o *Block) SetBlockHashTransactions(exec boil.Executor, insert bool, related ...*Transaction) error

SetBlockHashTransactions removes all previously related items of the block replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.BlockHash's BlockHashTransactions accordingly. Replaces o.R.BlockHashTransactions with related. Sets related.R.BlockHash's BlockHashTransactions accordingly.

func (*Block) SetBlockHashTransactionsG added in v1.0.0

func (o *Block) SetBlockHashTransactionsG(insert bool, related ...*Transaction) error

SetBlockHashTransactionsG removes all previously related items of the block replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.BlockHash's BlockHashTransactions accordingly. Replaces o.R.BlockHashTransactions with related. Sets related.R.BlockHash's BlockHashTransactions accordingly. Uses the global database handle.

func (*Block) SetBlockHashTransactionsGP added in v1.0.0

func (o *Block) SetBlockHashTransactionsGP(insert bool, related ...*Transaction)

SetBlockHashTransactionsGP removes all previously related items of the block replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.BlockHash's BlockHashTransactions accordingly. Replaces o.R.BlockHashTransactions with related. Sets related.R.BlockHash's BlockHashTransactions accordingly. Uses the global database handle and panics on error.

func (*Block) SetBlockHashTransactionsP added in v1.0.0

func (o *Block) SetBlockHashTransactionsP(exec boil.Executor, insert bool, related ...*Transaction)

SetBlockHashTransactionsP removes all previously related items of the block replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.BlockHash's BlockHashTransactions accordingly. Replaces o.R.BlockHashTransactions with related. Sets related.R.BlockHash's BlockHashTransactions accordingly. Panics on error.

func (*Block) Update

func (o *Block) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Block. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Block) UpdateG

func (o *Block) UpdateG(whitelist ...string) error

UpdateG a single Block record. See Update for whitelist behavior description.

func (*Block) UpdateGP

func (o *Block) UpdateGP(whitelist ...string)

UpdateGP a single Block record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Block) UpdateP

func (o *Block) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Block, and panics on error. See Update for whitelist behavior description.

func (*Block) Upsert

func (o *Block) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Block) UpsertG

func (o *Block) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Block) UpsertGP

func (o *Block) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Block) UpsertP

func (o *Block) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type BlockSlice

type BlockSlice []*Block

BlockSlice is an alias for a slice of pointers to Block. This should generally be used opposed to []Block.

func (BlockSlice) DeleteAll

func (o BlockSlice) DeleteAll(exec boil.Executor) error

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

func (BlockSlice) DeleteAllG

func (o BlockSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (BlockSlice) DeleteAllGP

func (o BlockSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (BlockSlice) DeleteAllP

func (o BlockSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*BlockSlice) ReloadAll

func (o *BlockSlice) ReloadAll(exec boil.Executor) error

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

func (*BlockSlice) ReloadAllG

func (o *BlockSlice) ReloadAllG() error

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

func (*BlockSlice) ReloadAllGP

func (o *BlockSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*BlockSlice) ReloadAllP

func (o *BlockSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (BlockSlice) UpdateAll

func (o BlockSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (BlockSlice) UpdateAllG

func (o BlockSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (BlockSlice) UpdateAllGP

func (o BlockSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (BlockSlice) UpdateAllP

func (o BlockSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Claim

type Claim struct {
	ID                uint64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	TransactionHashID null.String `` /* 127-byte string literal not displayed */
	Vout              uint        `boil:"vout" json:"vout" toml:"vout" yaml:"vout"`
	Name              string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	ClaimID           string      `boil:"claim_id" json:"claim_id" toml:"claim_id" yaml:"claim_id"`
	ClaimType         int8        `boil:"claim_type" json:"claim_type" toml:"claim_type" yaml:"claim_type"`
	PublisherID       null.String `boil:"publisher_id" json:"publisher_id,omitempty" toml:"publisher_id" yaml:"publisher_id,omitempty"`
	PublisherSig      null.String `boil:"publisher_sig" json:"publisher_sig,omitempty" toml:"publisher_sig" yaml:"publisher_sig,omitempty"`
	Certificate       null.String `boil:"certificate" json:"certificate,omitempty" toml:"certificate" yaml:"certificate,omitempty"`
	SDHash            null.String `boil:"sd_hash" json:"sd_hash,omitempty" toml:"sd_hash" yaml:"sd_hash,omitempty"`
	TransactionTime   null.Uint64 `boil:"transaction_time" json:"transaction_time,omitempty" toml:"transaction_time" yaml:"transaction_time,omitempty"`
	Version           string      `boil:"version" json:"version" toml:"version" yaml:"version"`
	ValueAsHex        string      `boil:"value_as_hex" json:"value_as_hex" toml:"value_as_hex" yaml:"value_as_hex"`
	ValueAsJSON       null.String `boil:"value_as_json" json:"value_as_json,omitempty" toml:"value_as_json" yaml:"value_as_json,omitempty"`
	ValidAtHeight     uint        `boil:"valid_at_height" json:"valid_at_height" toml:"valid_at_height" yaml:"valid_at_height"`
	Height            uint        `boil:"height" json:"height" toml:"height" yaml:"height"`
	EffectiveAmount   uint64      `boil:"effective_amount" json:"effective_amount" toml:"effective_amount" yaml:"effective_amount"`
	Author            null.String `boil:"author" json:"author,omitempty" toml:"author" yaml:"author,omitempty"`
	Description       null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	ContentType       null.String `boil:"content_type" json:"content_type,omitempty" toml:"content_type" yaml:"content_type,omitempty"`
	IsNSFW            bool        `boil:"is_nsfw" json:"is_nsfw" toml:"is_nsfw" yaml:"is_nsfw"`
	Language          null.String `boil:"language" json:"language,omitempty" toml:"language" yaml:"language,omitempty"`
	ThumbnailURL      null.String `boil:"thumbnail_url" json:"thumbnail_url,omitempty" toml:"thumbnail_url" yaml:"thumbnail_url,omitempty"`
	Title             null.String `boil:"title" json:"title,omitempty" toml:"title" yaml:"title,omitempty"`
	Fee               float64     `boil:"fee" json:"fee" toml:"fee" yaml:"fee"`
	FeeCurrency       null.String `boil:"fee_currency" json:"fee_currency,omitempty" toml:"fee_currency" yaml:"fee_currency,omitempty"`
	FeeAddress        string      `boil:"fee_address" json:"fee_address" toml:"fee_address" yaml:"fee_address"`
	IsFiltered        bool        `boil:"is_filtered" json:"is_filtered" toml:"is_filtered" yaml:"is_filtered"`
	BidState          string      `boil:"bid_state" json:"bid_state" toml:"bid_state" yaml:"bid_state"`
	CreatedAt         time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	ModifiedAt        time.Time   `boil:"modified_at" json:"modified_at" toml:"modified_at" yaml:"modified_at"`
	ClaimAddress      string      `boil:"claim_address" json:"claim_address" toml:"claim_address" yaml:"claim_address"`

	R *claimR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L claimL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Claim is an object representing the database table.

func FindClaim

func FindClaim(exec boil.Executor, id uint64, selectCols ...string) (*Claim, error)

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

func FindClaimG

func FindClaimG(id uint64, selectCols ...string) (*Claim, error)

FindClaimG retrieves a single record by ID.

func FindClaimGP

func FindClaimGP(id uint64, selectCols ...string) *Claim

FindClaimGP retrieves a single record by ID, and panics on error.

func FindClaimP

func FindClaimP(exec boil.Executor, id uint64, selectCols ...string) *Claim

FindClaimP retrieves a single record by ID with an executor, and panics on error.

func (*Claim) Delete

func (o *Claim) Delete(exec boil.Executor) error

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

func (*Claim) DeleteG

func (o *Claim) DeleteG() error

DeleteG deletes a single Claim record. DeleteG will match against the primary key column to find the record to delete.

func (*Claim) DeleteGP

func (o *Claim) DeleteGP()

DeleteGP deletes a single Claim record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Claim) DeleteP

func (o *Claim) DeleteP(exec boil.Executor)

DeleteP deletes a single Claim record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Claim) Insert

func (o *Claim) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Claim) InsertG

func (o *Claim) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Claim) InsertGP

func (o *Claim) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Claim) InsertP

func (o *Claim) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Claim) Reload

func (o *Claim) Reload(exec boil.Executor) error

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

func (*Claim) ReloadG

func (o *Claim) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Claim) ReloadGP

func (o *Claim) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Claim) ReloadP

func (o *Claim) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Claim) RemoveTransactionHash added in v1.0.0

func (o *Claim) RemoveTransactionHash(exec boil.Executor, related *Transaction) error

RemoveTransactionHash relationship. Sets o.R.TransactionHash to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Claim) RemoveTransactionHashG added in v1.0.0

func (o *Claim) RemoveTransactionHashG(related *Transaction) error

RemoveTransactionHashG relationship. Sets o.R.TransactionHash to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*Claim) RemoveTransactionHashGP added in v1.0.0

func (o *Claim) RemoveTransactionHashGP(related *Transaction)

RemoveTransactionHashGP relationship. Sets o.R.TransactionHash to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*Claim) RemoveTransactionHashP added in v1.0.0

func (o *Claim) RemoveTransactionHashP(exec boil.Executor, related *Transaction)

RemoveTransactionHashP relationship. Sets o.R.TransactionHash to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*Claim) SetTransactionHash added in v1.0.0

func (o *Claim) SetTransactionHash(exec boil.Executor, insert bool, related *Transaction) error

SetTransactionHash of the claim to the related item. Sets o.R.TransactionHash to related. Adds o to related.R.TransactionHashClaims.

func (*Claim) SetTransactionHashG added in v1.0.0

func (o *Claim) SetTransactionHashG(insert bool, related *Transaction) error

SetTransactionHashG of the claim to the related item. Sets o.R.TransactionHash to related. Adds o to related.R.TransactionHashClaims. Uses the global database handle.

func (*Claim) SetTransactionHashGP added in v1.0.0

func (o *Claim) SetTransactionHashGP(insert bool, related *Transaction)

SetTransactionHashGP of the claim to the related item. Sets o.R.TransactionHash to related. Adds o to related.R.TransactionHashClaims. Uses the global database handle and panics on error.

func (*Claim) SetTransactionHashP added in v1.0.0

func (o *Claim) SetTransactionHashP(exec boil.Executor, insert bool, related *Transaction)

SetTransactionHashP of the claim to the related item. Sets o.R.TransactionHash to related. Adds o to related.R.TransactionHashClaims. Panics on error.

func (*Claim) TransactionHash added in v1.0.0

func (o *Claim) TransactionHash(exec boil.Executor, mods ...qm.QueryMod) transactionQuery

TransactionHash pointed to by the foreign key.

func (*Claim) TransactionHashG added in v1.0.0

func (o *Claim) TransactionHashG(mods ...qm.QueryMod) transactionQuery

TransactionHashG pointed to by the foreign key.

func (*Claim) Update

func (o *Claim) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Claim. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Claim) UpdateG

func (o *Claim) UpdateG(whitelist ...string) error

UpdateG a single Claim record. See Update for whitelist behavior description.

func (*Claim) UpdateGP

func (o *Claim) UpdateGP(whitelist ...string)

UpdateGP a single Claim record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Claim) UpdateP

func (o *Claim) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Claim, and panics on error. See Update for whitelist behavior description.

func (*Claim) Upsert

func (o *Claim) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Claim) UpsertG

func (o *Claim) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Claim) UpsertGP

func (o *Claim) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Claim) UpsertP

func (o *Claim) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type ClaimSlice

type ClaimSlice []*Claim

ClaimSlice is an alias for a slice of pointers to Claim. This should generally be used opposed to []Claim.

func (ClaimSlice) DeleteAll

func (o ClaimSlice) DeleteAll(exec boil.Executor) error

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

func (ClaimSlice) DeleteAllG

func (o ClaimSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (ClaimSlice) DeleteAllGP

func (o ClaimSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (ClaimSlice) DeleteAllP

func (o ClaimSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*ClaimSlice) ReloadAll

func (o *ClaimSlice) ReloadAll(exec boil.Executor) error

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

func (*ClaimSlice) ReloadAllG

func (o *ClaimSlice) ReloadAllG() error

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

func (*ClaimSlice) ReloadAllGP

func (o *ClaimSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*ClaimSlice) ReloadAllP

func (o *ClaimSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (ClaimSlice) UpdateAll

func (o ClaimSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (ClaimSlice) UpdateAllG

func (o ClaimSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (ClaimSlice) UpdateAllGP

func (o ClaimSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (ClaimSlice) UpdateAllP

func (o ClaimSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Input

type Input struct {
	ID                  uint64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	TransactionID       uint64       `boil:"transaction_id" json:"transaction_id" toml:"transaction_id" yaml:"transaction_id"`
	TransactionHash     string       `boil:"transaction_hash" json:"transaction_hash" toml:"transaction_hash" yaml:"transaction_hash"`
	InputAddressID      null.Uint64  `boil:"input_address_id" json:"input_address_id,omitempty" toml:"input_address_id" yaml:"input_address_id,omitempty"`
	IsCoinbase          bool         `boil:"is_coinbase" json:"is_coinbase" toml:"is_coinbase" yaml:"is_coinbase"`
	Coinbase            null.String  `boil:"coinbase" json:"coinbase,omitempty" toml:"coinbase" yaml:"coinbase,omitempty"`
	PrevoutHash         null.String  `boil:"prevout_hash" json:"prevout_hash,omitempty" toml:"prevout_hash" yaml:"prevout_hash,omitempty"`
	PrevoutN            null.Uint    `boil:"prevout_n" json:"prevout_n,omitempty" toml:"prevout_n" yaml:"prevout_n,omitempty"`
	PrevoutSpendUpdated bool         `boil:"prevout_spend_updated" json:"prevout_spend_updated" toml:"prevout_spend_updated" yaml:"prevout_spend_updated"`
	Sequence            uint         `boil:"sequence" json:"sequence" toml:"sequence" yaml:"sequence"`
	Value               null.Float64 `boil:"value" json:"value,omitempty" toml:"value" yaml:"value,omitempty"`
	ScriptSigAsm        null.String  `boil:"script_sig_asm" json:"script_sig_asm,omitempty" toml:"script_sig_asm" yaml:"script_sig_asm,omitempty"`
	ScriptSigHex        null.String  `boil:"script_sig_hex" json:"script_sig_hex,omitempty" toml:"script_sig_hex" yaml:"script_sig_hex,omitempty"`
	Created             time.Time    `boil:"created" json:"created" toml:"created" yaml:"created"`
	Modified            time.Time    `boil:"modified" json:"modified" toml:"modified" yaml:"modified"`

	R *inputR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L inputL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Input is an object representing the database table.

func FindInput

func FindInput(exec boil.Executor, id uint64, selectCols ...string) (*Input, error)

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

func FindInputG

func FindInputG(id uint64, selectCols ...string) (*Input, error)

FindInputG retrieves a single record by ID.

func FindInputGP

func FindInputGP(id uint64, selectCols ...string) *Input

FindInputGP retrieves a single record by ID, and panics on error.

func FindInputP

func FindInputP(exec boil.Executor, id uint64, selectCols ...string) *Input

FindInputP retrieves a single record by ID with an executor, and panics on error.

func (*Input) Delete

func (o *Input) Delete(exec boil.Executor) error

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

func (*Input) DeleteG

func (o *Input) DeleteG() error

DeleteG deletes a single Input record. DeleteG will match against the primary key column to find the record to delete.

func (*Input) DeleteGP

func (o *Input) DeleteGP()

DeleteGP deletes a single Input record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Input) DeleteP

func (o *Input) DeleteP(exec boil.Executor)

DeleteP deletes a single Input record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Input) Insert

func (o *Input) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Input) InsertG

func (o *Input) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Input) InsertGP

func (o *Input) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Input) InsertP

func (o *Input) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Input) Reload

func (o *Input) Reload(exec boil.Executor) error

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

func (*Input) ReloadG

func (o *Input) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Input) ReloadGP

func (o *Input) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Input) ReloadP

func (o *Input) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Input) SetTransaction

func (o *Input) SetTransaction(exec boil.Executor, insert bool, related *Transaction) error

SetTransaction of the input to the related item. Sets o.R.Transaction to related. Adds o to related.R.Inputs.

func (*Input) SetTransactionG

func (o *Input) SetTransactionG(insert bool, related *Transaction) error

SetTransactionG of the input to the related item. Sets o.R.Transaction to related. Adds o to related.R.Inputs. Uses the global database handle.

func (*Input) SetTransactionGP

func (o *Input) SetTransactionGP(insert bool, related *Transaction)

SetTransactionGP of the input to the related item. Sets o.R.Transaction to related. Adds o to related.R.Inputs. Uses the global database handle and panics on error.

func (*Input) SetTransactionP

func (o *Input) SetTransactionP(exec boil.Executor, insert bool, related *Transaction)

SetTransactionP of the input to the related item. Sets o.R.Transaction to related. Adds o to related.R.Inputs. Panics on error.

func (*Input) Transaction

func (o *Input) Transaction(exec boil.Executor, mods ...qm.QueryMod) transactionQuery

Transaction pointed to by the foreign key.

func (*Input) TransactionG

func (o *Input) TransactionG(mods ...qm.QueryMod) transactionQuery

TransactionG pointed to by the foreign key.

func (*Input) Update

func (o *Input) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Input. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Input) UpdateG

func (o *Input) UpdateG(whitelist ...string) error

UpdateG a single Input record. See Update for whitelist behavior description.

func (*Input) UpdateGP

func (o *Input) UpdateGP(whitelist ...string)

UpdateGP a single Input record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Input) UpdateP

func (o *Input) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Input, and panics on error. See Update for whitelist behavior description.

func (*Input) Upsert

func (o *Input) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Input) UpsertG

func (o *Input) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Input) UpsertGP

func (o *Input) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Input) UpsertP

func (o *Input) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type InputSlice

type InputSlice []*Input

InputSlice is an alias for a slice of pointers to Input. This should generally be used opposed to []Input.

func (InputSlice) DeleteAll

func (o InputSlice) DeleteAll(exec boil.Executor) error

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

func (InputSlice) DeleteAllG

func (o InputSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (InputSlice) DeleteAllGP

func (o InputSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (InputSlice) DeleteAllP

func (o InputSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*InputSlice) ReloadAll

func (o *InputSlice) ReloadAll(exec boil.Executor) error

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

func (*InputSlice) ReloadAllG

func (o *InputSlice) ReloadAllG() error

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

func (*InputSlice) ReloadAllGP

func (o *InputSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*InputSlice) ReloadAllP

func (o *InputSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (InputSlice) UpdateAll

func (o InputSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (InputSlice) UpdateAllG

func (o InputSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (InputSlice) UpdateAllGP

func (o InputSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (InputSlice) UpdateAllP

func (o InputSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type JobStatus

type JobStatus struct {
	JobName      string      `boil:"job_name" json:"job_name" toml:"job_name" yaml:"job_name"`
	LastSync     time.Time   `boil:"last_sync" json:"last_sync" toml:"last_sync" yaml:"last_sync"`
	IsSuccess    bool        `boil:"is_success" json:"is_success" toml:"is_success" yaml:"is_success"`
	ErrorMessage null.String `boil:"error_message" json:"error_message,omitempty" toml:"error_message" yaml:"error_message,omitempty"`

	R *jobStatusR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L jobStatusL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

JobStatus is an object representing the database table.

func FindJobStatus

func FindJobStatus(exec boil.Executor, jobName string, selectCols ...string) (*JobStatus, error)

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

func FindJobStatusG

func FindJobStatusG(jobName string, selectCols ...string) (*JobStatus, error)

FindJobStatusG retrieves a single record by ID.

func FindJobStatusGP

func FindJobStatusGP(jobName string, selectCols ...string) *JobStatus

FindJobStatusGP retrieves a single record by ID, and panics on error.

func FindJobStatusP

func FindJobStatusP(exec boil.Executor, jobName string, selectCols ...string) *JobStatus

FindJobStatusP retrieves a single record by ID with an executor, and panics on error.

func (*JobStatus) Delete

func (o *JobStatus) Delete(exec boil.Executor) error

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

func (*JobStatus) DeleteG

func (o *JobStatus) DeleteG() error

DeleteG deletes a single JobStatus record. DeleteG will match against the primary key column to find the record to delete.

func (*JobStatus) DeleteGP

func (o *JobStatus) DeleteGP()

DeleteGP deletes a single JobStatus record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*JobStatus) DeleteP

func (o *JobStatus) DeleteP(exec boil.Executor)

DeleteP deletes a single JobStatus record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*JobStatus) Insert

func (o *JobStatus) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*JobStatus) InsertG

func (o *JobStatus) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*JobStatus) InsertGP

func (o *JobStatus) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*JobStatus) InsertP

func (o *JobStatus) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*JobStatus) Reload

func (o *JobStatus) Reload(exec boil.Executor) error

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

func (*JobStatus) ReloadG

func (o *JobStatus) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*JobStatus) ReloadGP

func (o *JobStatus) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*JobStatus) ReloadP

func (o *JobStatus) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*JobStatus) Update

func (o *JobStatus) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the JobStatus. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*JobStatus) UpdateG

func (o *JobStatus) UpdateG(whitelist ...string) error

UpdateG a single JobStatus record. See Update for whitelist behavior description.

func (*JobStatus) UpdateGP

func (o *JobStatus) UpdateGP(whitelist ...string)

UpdateGP a single JobStatus record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*JobStatus) UpdateP

func (o *JobStatus) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the JobStatus, and panics on error. See Update for whitelist behavior description.

func (*JobStatus) Upsert

func (o *JobStatus) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*JobStatus) UpsertG

func (o *JobStatus) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*JobStatus) UpsertGP

func (o *JobStatus) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*JobStatus) UpsertP

func (o *JobStatus) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type JobStatusSlice

type JobStatusSlice []*JobStatus

JobStatusSlice is an alias for a slice of pointers to JobStatus. This should generally be used opposed to []JobStatus.

func (JobStatusSlice) DeleteAll

func (o JobStatusSlice) DeleteAll(exec boil.Executor) error

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

func (JobStatusSlice) DeleteAllG

func (o JobStatusSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (JobStatusSlice) DeleteAllGP

func (o JobStatusSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (JobStatusSlice) DeleteAllP

func (o JobStatusSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*JobStatusSlice) ReloadAll

func (o *JobStatusSlice) ReloadAll(exec boil.Executor) error

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

func (*JobStatusSlice) ReloadAllG

func (o *JobStatusSlice) ReloadAllG() error

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

func (*JobStatusSlice) ReloadAllGP

func (o *JobStatusSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*JobStatusSlice) ReloadAllP

func (o *JobStatusSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (JobStatusSlice) UpdateAll

func (o JobStatusSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (JobStatusSlice) UpdateAllG

func (o JobStatusSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (JobStatusSlice) UpdateAllGP

func (o JobStatusSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (JobStatusSlice) UpdateAllP

func (o JobStatusSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type M

type M map[string]interface{}

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

type Output

type Output struct {
	ID                 uint64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	TransactionID      uint64       `boil:"transaction_id" json:"transaction_id" toml:"transaction_id" yaml:"transaction_id"`
	TransactionHash    string       `boil:"transaction_hash" json:"transaction_hash" toml:"transaction_hash" yaml:"transaction_hash"`
	Value              null.Float64 `boil:"value" json:"value,omitempty" toml:"value" yaml:"value,omitempty"`
	Vout               uint         `boil:"vout" json:"vout" toml:"vout" yaml:"vout"`
	Type               null.String  `boil:"type" json:"type,omitempty" toml:"type" yaml:"type,omitempty"`
	ScriptPubKeyAsm    null.String  `boil:"script_pub_key_asm" json:"script_pub_key_asm,omitempty" toml:"script_pub_key_asm" yaml:"script_pub_key_asm,omitempty"`
	ScriptPubKeyHex    null.String  `boil:"script_pub_key_hex" json:"script_pub_key_hex,omitempty" toml:"script_pub_key_hex" yaml:"script_pub_key_hex,omitempty"`
	RequiredSignatures null.Uint    `` /* 127-byte string literal not displayed */
	AddressList        null.String  `boil:"address_list" json:"address_list,omitempty" toml:"address_list" yaml:"address_list,omitempty"`
	IsSpent            bool         `boil:"is_spent" json:"is_spent" toml:"is_spent" yaml:"is_spent"`
	SpentByInputID     null.Uint64  `boil:"spent_by_input_id" json:"spent_by_input_id,omitempty" toml:"spent_by_input_id" yaml:"spent_by_input_id,omitempty"`
	CreatedAt          time.Time    `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	ModifiedAt         time.Time    `boil:"modified_at" json:"modified_at" toml:"modified_at" yaml:"modified_at"`
	ClaimID            null.String  `boil:"claim_id" json:"claim_id,omitempty" toml:"claim_id" yaml:"claim_id,omitempty"`

	R *outputR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L outputL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Output is an object representing the database table.

func FindOutput

func FindOutput(exec boil.Executor, id uint64, selectCols ...string) (*Output, error)

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

func FindOutputG

func FindOutputG(id uint64, selectCols ...string) (*Output, error)

FindOutputG retrieves a single record by ID.

func FindOutputGP

func FindOutputGP(id uint64, selectCols ...string) *Output

FindOutputGP retrieves a single record by ID, and panics on error.

func FindOutputP

func FindOutputP(exec boil.Executor, id uint64, selectCols ...string) *Output

FindOutputP retrieves a single record by ID with an executor, and panics on error.

func (*Output) AbnormalClaims added in v1.0.0

func (o *Output) AbnormalClaims(exec boil.Executor, mods ...qm.QueryMod) abnormalClaimQuery

AbnormalClaims retrieves all the abnormal_claim's abnormal claim with an executor.

func (*Output) AbnormalClaimsG added in v1.0.0

func (o *Output) AbnormalClaimsG(mods ...qm.QueryMod) abnormalClaimQuery

AbnormalClaimsG retrieves all the abnormal_claim's abnormal claim.

func (*Output) AddAbnormalClaims added in v1.0.0

func (o *Output) AddAbnormalClaims(exec boil.Executor, insert bool, related ...*AbnormalClaim) error

AddAbnormalClaims adds the given related objects to the existing relationships of the output, optionally inserting them as new records. Appends related to o.R.AbnormalClaims. Sets related.R.Output appropriately.

func (*Output) AddAbnormalClaimsG added in v1.0.0

func (o *Output) AddAbnormalClaimsG(insert bool, related ...*AbnormalClaim) error

AddAbnormalClaimsG adds the given related objects to the existing relationships of the output, optionally inserting them as new records. Appends related to o.R.AbnormalClaims. Sets related.R.Output appropriately. Uses the global database handle.

func (*Output) AddAbnormalClaimsGP added in v1.0.0

func (o *Output) AddAbnormalClaimsGP(insert bool, related ...*AbnormalClaim)

AddAbnormalClaimsGP adds the given related objects to the existing relationships of the output, optionally inserting them as new records. Appends related to o.R.AbnormalClaims. Sets related.R.Output appropriately. Uses the global database handle and panics on error.

func (*Output) AddAbnormalClaimsP added in v1.0.0

func (o *Output) AddAbnormalClaimsP(exec boil.Executor, insert bool, related ...*AbnormalClaim)

AddAbnormalClaimsP adds the given related objects to the existing relationships of the output, optionally inserting them as new records. Appends related to o.R.AbnormalClaims. Sets related.R.Output appropriately. Panics on error.

func (*Output) Delete

func (o *Output) Delete(exec boil.Executor) error

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

func (*Output) DeleteG

func (o *Output) DeleteG() error

DeleteG deletes a single Output record. DeleteG will match against the primary key column to find the record to delete.

func (*Output) DeleteGP

func (o *Output) DeleteGP()

DeleteGP deletes a single Output record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Output) DeleteP

func (o *Output) DeleteP(exec boil.Executor)

DeleteP deletes a single Output record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Output) Insert

func (o *Output) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Output) InsertG

func (o *Output) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Output) InsertGP

func (o *Output) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Output) InsertP

func (o *Output) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Output) Reload

func (o *Output) Reload(exec boil.Executor) error

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

func (*Output) ReloadG

func (o *Output) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Output) ReloadGP

func (o *Output) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Output) ReloadP

func (o *Output) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Output) SetTransaction

func (o *Output) SetTransaction(exec boil.Executor, insert bool, related *Transaction) error

SetTransaction of the output to the related item. Sets o.R.Transaction to related. Adds o to related.R.Outputs.

func (*Output) SetTransactionG

func (o *Output) SetTransactionG(insert bool, related *Transaction) error

SetTransactionG of the output to the related item. Sets o.R.Transaction to related. Adds o to related.R.Outputs. Uses the global database handle.

func (*Output) SetTransactionGP

func (o *Output) SetTransactionGP(insert bool, related *Transaction)

SetTransactionGP of the output to the related item. Sets o.R.Transaction to related. Adds o to related.R.Outputs. Uses the global database handle and panics on error.

func (*Output) SetTransactionP

func (o *Output) SetTransactionP(exec boil.Executor, insert bool, related *Transaction)

SetTransactionP of the output to the related item. Sets o.R.Transaction to related. Adds o to related.R.Outputs. Panics on error.

func (*Output) Transaction

func (o *Output) Transaction(exec boil.Executor, mods ...qm.QueryMod) transactionQuery

Transaction pointed to by the foreign key.

func (*Output) TransactionG

func (o *Output) TransactionG(mods ...qm.QueryMod) transactionQuery

TransactionG pointed to by the foreign key.

func (*Output) Update

func (o *Output) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Output. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Output) UpdateG

func (o *Output) UpdateG(whitelist ...string) error

UpdateG a single Output record. See Update for whitelist behavior description.

func (*Output) UpdateGP

func (o *Output) UpdateGP(whitelist ...string)

UpdateGP a single Output record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Output) UpdateP

func (o *Output) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Output, and panics on error. See Update for whitelist behavior description.

func (*Output) Upsert

func (o *Output) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Output) UpsertG

func (o *Output) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Output) UpsertGP

func (o *Output) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Output) UpsertP

func (o *Output) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type OutputSlice

type OutputSlice []*Output

OutputSlice is an alias for a slice of pointers to Output. This should generally be used opposed to []Output.

func (OutputSlice) DeleteAll

func (o OutputSlice) DeleteAll(exec boil.Executor) error

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

func (OutputSlice) DeleteAllG

func (o OutputSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (OutputSlice) DeleteAllGP

func (o OutputSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (OutputSlice) DeleteAllP

func (o OutputSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*OutputSlice) ReloadAll

func (o *OutputSlice) ReloadAll(exec boil.Executor) error

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

func (*OutputSlice) ReloadAllG

func (o *OutputSlice) ReloadAllG() error

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

func (*OutputSlice) ReloadAllGP

func (o *OutputSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*OutputSlice) ReloadAllP

func (o *OutputSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (OutputSlice) UpdateAll

func (o OutputSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (OutputSlice) UpdateAllG

func (o OutputSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (OutputSlice) UpdateAllGP

func (o OutputSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (OutputSlice) UpdateAllP

func (o OutputSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Support

type Support struct {
	ID                uint64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	SupportedClaimID  string      `boil:"supported_claim_id" json:"supported_claim_id" toml:"supported_claim_id" yaml:"supported_claim_id"`
	SupportAmount     float64     `boil:"support_amount" json:"support_amount" toml:"support_amount" yaml:"support_amount"`
	BidState          string      `boil:"bid_state" json:"bid_state" toml:"bid_state" yaml:"bid_state"`
	TransactionHashID null.String `` /* 127-byte string literal not displayed */
	Vout              uint        `boil:"vout" json:"vout" toml:"vout" yaml:"vout"`
	CreatedAt         time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	ModifiedAt        time.Time   `boil:"modified_at" json:"modified_at" toml:"modified_at" yaml:"modified_at"`

	R *supportR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L supportL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Support is an object representing the database table.

func FindSupport

func FindSupport(exec boil.Executor, id uint64, selectCols ...string) (*Support, error)

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

func FindSupportG

func FindSupportG(id uint64, selectCols ...string) (*Support, error)

FindSupportG retrieves a single record by ID.

func FindSupportGP

func FindSupportGP(id uint64, selectCols ...string) *Support

FindSupportGP retrieves a single record by ID, and panics on error.

func FindSupportP

func FindSupportP(exec boil.Executor, id uint64, selectCols ...string) *Support

FindSupportP retrieves a single record by ID with an executor, and panics on error.

func (*Support) Delete

func (o *Support) Delete(exec boil.Executor) error

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

func (*Support) DeleteG

func (o *Support) DeleteG() error

DeleteG deletes a single Support record. DeleteG will match against the primary key column to find the record to delete.

func (*Support) DeleteGP

func (o *Support) DeleteGP()

DeleteGP deletes a single Support record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Support) DeleteP

func (o *Support) DeleteP(exec boil.Executor)

DeleteP deletes a single Support record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Support) Insert

func (o *Support) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Support) InsertG

func (o *Support) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Support) InsertGP

func (o *Support) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Support) InsertP

func (o *Support) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Support) Reload

func (o *Support) Reload(exec boil.Executor) error

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

func (*Support) ReloadG

func (o *Support) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Support) ReloadGP

func (o *Support) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Support) ReloadP

func (o *Support) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Support) RemoveTransactionHash added in v0.3.0

func (o *Support) RemoveTransactionHash(exec boil.Executor, related *Transaction) error

RemoveTransactionHash relationship. Sets o.R.TransactionHash to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Support) RemoveTransactionHashG added in v0.3.0

func (o *Support) RemoveTransactionHashG(related *Transaction) error

RemoveTransactionHashG relationship. Sets o.R.TransactionHash to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*Support) RemoveTransactionHashGP added in v0.3.0

func (o *Support) RemoveTransactionHashGP(related *Transaction)

RemoveTransactionHashGP relationship. Sets o.R.TransactionHash to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*Support) RemoveTransactionHashP added in v0.3.0

func (o *Support) RemoveTransactionHashP(exec boil.Executor, related *Transaction)

RemoveTransactionHashP relationship. Sets o.R.TransactionHash to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*Support) SetTransactionHash added in v0.3.0

func (o *Support) SetTransactionHash(exec boil.Executor, insert bool, related *Transaction) error

SetTransactionHash of the support to the related item. Sets o.R.TransactionHash to related. Adds o to related.R.TransactionHashSupports.

func (*Support) SetTransactionHashG added in v0.3.0

func (o *Support) SetTransactionHashG(insert bool, related *Transaction) error

SetTransactionHashG of the support to the related item. Sets o.R.TransactionHash to related. Adds o to related.R.TransactionHashSupports. Uses the global database handle.

func (*Support) SetTransactionHashGP added in v0.3.0

func (o *Support) SetTransactionHashGP(insert bool, related *Transaction)

SetTransactionHashGP of the support to the related item. Sets o.R.TransactionHash to related. Adds o to related.R.TransactionHashSupports. Uses the global database handle and panics on error.

func (*Support) SetTransactionHashP added in v0.3.0

func (o *Support) SetTransactionHashP(exec boil.Executor, insert bool, related *Transaction)

SetTransactionHashP of the support to the related item. Sets o.R.TransactionHash to related. Adds o to related.R.TransactionHashSupports. Panics on error.

func (*Support) TransactionHash

func (o *Support) TransactionHash(exec boil.Executor, mods ...qm.QueryMod) transactionQuery

TransactionHash pointed to by the foreign key.

func (*Support) TransactionHashG added in v0.3.0

func (o *Support) TransactionHashG(mods ...qm.QueryMod) transactionQuery

TransactionHashG pointed to by the foreign key.

func (*Support) Update

func (o *Support) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Support. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Support) UpdateG

func (o *Support) UpdateG(whitelist ...string) error

UpdateG a single Support record. See Update for whitelist behavior description.

func (*Support) UpdateGP

func (o *Support) UpdateGP(whitelist ...string)

UpdateGP a single Support record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Support) UpdateP

func (o *Support) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Support, and panics on error. See Update for whitelist behavior description.

func (*Support) Upsert

func (o *Support) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Support) UpsertG

func (o *Support) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Support) UpsertGP

func (o *Support) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Support) UpsertP

func (o *Support) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type SupportSlice

type SupportSlice []*Support

SupportSlice is an alias for a slice of pointers to Support. This should generally be used opposed to []Support.

func (SupportSlice) DeleteAll

func (o SupportSlice) DeleteAll(exec boil.Executor) error

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

func (SupportSlice) DeleteAllG

func (o SupportSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (SupportSlice) DeleteAllGP

func (o SupportSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (SupportSlice) DeleteAllP

func (o SupportSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*SupportSlice) ReloadAll

func (o *SupportSlice) ReloadAll(exec boil.Executor) error

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

func (*SupportSlice) ReloadAllG

func (o *SupportSlice) ReloadAllG() error

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

func (*SupportSlice) ReloadAllGP

func (o *SupportSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*SupportSlice) ReloadAllP

func (o *SupportSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (SupportSlice) UpdateAll

func (o SupportSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (SupportSlice) UpdateAllG

func (o SupportSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (SupportSlice) UpdateAllGP

func (o SupportSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (SupportSlice) UpdateAllP

func (o SupportSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Transaction

type Transaction struct {
	ID              uint64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	BlockHashID     null.String `boil:"block_hash_id" json:"block_hash_id,omitempty" toml:"block_hash_id" yaml:"block_hash_id,omitempty"`
	InputCount      uint        `boil:"input_count" json:"input_count" toml:"input_count" yaml:"input_count"`
	OutputCount     uint        `boil:"output_count" json:"output_count" toml:"output_count" yaml:"output_count"`
	Fee             float64     `boil:"fee" json:"fee" toml:"fee" yaml:"fee"`
	TransactionTime null.Uint64 `boil:"transaction_time" json:"transaction_time,omitempty" toml:"transaction_time" yaml:"transaction_time,omitempty"`
	TransactionSize uint64      `boil:"transaction_size" json:"transaction_size" toml:"transaction_size" yaml:"transaction_size"`
	Hash            string      `boil:"hash" json:"hash" toml:"hash" yaml:"hash"`
	Version         int         `boil:"version" json:"version" toml:"version" yaml:"version"`
	LockTime        uint        `boil:"lock_time" json:"lock_time" toml:"lock_time" yaml:"lock_time"`
	Raw             null.String `boil:"raw" json:"raw,omitempty" toml:"raw" yaml:"raw,omitempty"`
	CreatedAt       time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	ModifiedAt      time.Time   `boil:"modified_at" json:"modified_at" toml:"modified_at" yaml:"modified_at"`
	CreatedTime     time.Time   `boil:"created_time" json:"created_time" toml:"created_time" yaml:"created_time"`

	R *transactionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L transactionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Transaction is an object representing the database table.

func FindTransaction

func FindTransaction(exec boil.Executor, id uint64, selectCols ...string) (*Transaction, error)

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

func FindTransactionG

func FindTransactionG(id uint64, selectCols ...string) (*Transaction, error)

FindTransactionG retrieves a single record by ID.

func FindTransactionGP

func FindTransactionGP(id uint64, selectCols ...string) *Transaction

FindTransactionGP retrieves a single record by ID, and panics on error.

func FindTransactionP

func FindTransactionP(exec boil.Executor, id uint64, selectCols ...string) *Transaction

FindTransactionP retrieves a single record by ID with an executor, and panics on error.

func (*Transaction) AddInputs

func (o *Transaction) AddInputs(exec boil.Executor, insert bool, related ...*Input) error

AddInputs adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.Inputs. Sets related.R.Transaction appropriately.

func (*Transaction) AddInputsG

func (o *Transaction) AddInputsG(insert bool, related ...*Input) error

AddInputsG adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.Inputs. Sets related.R.Transaction appropriately. Uses the global database handle.

func (*Transaction) AddInputsGP

func (o *Transaction) AddInputsGP(insert bool, related ...*Input)

AddInputsGP adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.Inputs. Sets related.R.Transaction appropriately. Uses the global database handle and panics on error.

func (*Transaction) AddInputsP

func (o *Transaction) AddInputsP(exec boil.Executor, insert bool, related ...*Input)

AddInputsP adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.Inputs. Sets related.R.Transaction appropriately. Panics on error.

func (*Transaction) AddOutputs

func (o *Transaction) AddOutputs(exec boil.Executor, insert bool, related ...*Output) error

AddOutputs adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.Outputs. Sets related.R.Transaction appropriately.

func (*Transaction) AddOutputsG

func (o *Transaction) AddOutputsG(insert bool, related ...*Output) error

AddOutputsG adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.Outputs. Sets related.R.Transaction appropriately. Uses the global database handle.

func (*Transaction) AddOutputsGP

func (o *Transaction) AddOutputsGP(insert bool, related ...*Output)

AddOutputsGP adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.Outputs. Sets related.R.Transaction appropriately. Uses the global database handle and panics on error.

func (*Transaction) AddOutputsP

func (o *Transaction) AddOutputsP(exec boil.Executor, insert bool, related ...*Output)

AddOutputsP adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.Outputs. Sets related.R.Transaction appropriately. Panics on error.

func (*Transaction) AddTransactionAddresses

func (o *Transaction) AddTransactionAddresses(exec boil.Executor, insert bool, related ...*TransactionAddress) error

AddTransactionAddresses adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.TransactionAddresses. Sets related.R.Transaction appropriately.

func (*Transaction) AddTransactionAddressesG

func (o *Transaction) AddTransactionAddressesG(insert bool, related ...*TransactionAddress) error

AddTransactionAddressesG adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.TransactionAddresses. Sets related.R.Transaction appropriately. Uses the global database handle.

func (*Transaction) AddTransactionAddressesGP

func (o *Transaction) AddTransactionAddressesGP(insert bool, related ...*TransactionAddress)

AddTransactionAddressesGP adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.TransactionAddresses. Sets related.R.Transaction appropriately. Uses the global database handle and panics on error.

func (*Transaction) AddTransactionAddressesP

func (o *Transaction) AddTransactionAddressesP(exec boil.Executor, insert bool, related ...*TransactionAddress)

AddTransactionAddressesP adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.TransactionAddresses. Sets related.R.Transaction appropriately. Panics on error.

func (*Transaction) AddTransactionHashClaims added in v1.0.0

func (o *Transaction) AddTransactionHashClaims(exec boil.Executor, insert bool, related ...*Claim) error

AddTransactionHashClaims adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.TransactionHashClaims. Sets related.R.TransactionHash appropriately.

func (*Transaction) AddTransactionHashClaimsG added in v1.0.0

func (o *Transaction) AddTransactionHashClaimsG(insert bool, related ...*Claim) error

AddTransactionHashClaimsG adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.TransactionHashClaims. Sets related.R.TransactionHash appropriately. Uses the global database handle.

func (*Transaction) AddTransactionHashClaimsGP added in v1.0.0

func (o *Transaction) AddTransactionHashClaimsGP(insert bool, related ...*Claim)

AddTransactionHashClaimsGP adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.TransactionHashClaims. Sets related.R.TransactionHash appropriately. Uses the global database handle and panics on error.

func (*Transaction) AddTransactionHashClaimsP added in v1.0.0

func (o *Transaction) AddTransactionHashClaimsP(exec boil.Executor, insert bool, related ...*Claim)

AddTransactionHashClaimsP adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.TransactionHashClaims. Sets related.R.TransactionHash appropriately. Panics on error.

func (*Transaction) AddTransactionHashSupports added in v0.3.0

func (o *Transaction) AddTransactionHashSupports(exec boil.Executor, insert bool, related ...*Support) error

AddTransactionHashSupports adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.TransactionHashSupports. Sets related.R.TransactionHash appropriately.

func (*Transaction) AddTransactionHashSupportsG added in v0.3.0

func (o *Transaction) AddTransactionHashSupportsG(insert bool, related ...*Support) error

AddTransactionHashSupportsG adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.TransactionHashSupports. Sets related.R.TransactionHash appropriately. Uses the global database handle.

func (*Transaction) AddTransactionHashSupportsGP added in v0.3.0

func (o *Transaction) AddTransactionHashSupportsGP(insert bool, related ...*Support)

AddTransactionHashSupportsGP adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.TransactionHashSupports. Sets related.R.TransactionHash appropriately. Uses the global database handle and panics on error.

func (*Transaction) AddTransactionHashSupportsP added in v0.3.0

func (o *Transaction) AddTransactionHashSupportsP(exec boil.Executor, insert bool, related ...*Support)

AddTransactionHashSupportsP adds the given related objects to the existing relationships of the transaction, optionally inserting them as new records. Appends related to o.R.TransactionHashSupports. Sets related.R.TransactionHash appropriately. Panics on error.

func (*Transaction) BlockHash added in v1.0.0

func (o *Transaction) BlockHash(exec boil.Executor, mods ...qm.QueryMod) blockQuery

BlockHash pointed to by the foreign key.

func (*Transaction) BlockHashG added in v1.0.0

func (o *Transaction) BlockHashG(mods ...qm.QueryMod) blockQuery

BlockHashG pointed to by the foreign key.

func (*Transaction) Delete

func (o *Transaction) Delete(exec boil.Executor) error

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

func (*Transaction) DeleteG

func (o *Transaction) DeleteG() error

DeleteG deletes a single Transaction record. DeleteG will match against the primary key column to find the record to delete.

func (*Transaction) DeleteGP

func (o *Transaction) DeleteGP()

DeleteGP deletes a single Transaction record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Transaction) DeleteP

func (o *Transaction) DeleteP(exec boil.Executor)

DeleteP deletes a single Transaction record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Transaction) Inputs

func (o *Transaction) Inputs(exec boil.Executor, mods ...qm.QueryMod) inputQuery

Inputs retrieves all the input's input with an executor.

func (*Transaction) InputsG

func (o *Transaction) InputsG(mods ...qm.QueryMod) inputQuery

InputsG retrieves all the input's input.

func (*Transaction) Insert

func (o *Transaction) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Transaction) InsertG

func (o *Transaction) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Transaction) InsertGP

func (o *Transaction) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Transaction) InsertP

func (o *Transaction) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Transaction) Outputs

func (o *Transaction) Outputs(exec boil.Executor, mods ...qm.QueryMod) outputQuery

Outputs retrieves all the output's output with an executor.

func (*Transaction) OutputsG

func (o *Transaction) OutputsG(mods ...qm.QueryMod) outputQuery

OutputsG retrieves all the output's output.

func (*Transaction) Reload

func (o *Transaction) Reload(exec boil.Executor) error

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

func (*Transaction) ReloadG

func (o *Transaction) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Transaction) ReloadGP

func (o *Transaction) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Transaction) ReloadP

func (o *Transaction) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Transaction) RemoveBlockHash added in v1.0.0

func (o *Transaction) RemoveBlockHash(exec boil.Executor, related *Block) error

RemoveBlockHash relationship. Sets o.R.BlockHash to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Transaction) RemoveBlockHashG added in v1.0.0

func (o *Transaction) RemoveBlockHashG(related *Block) error

RemoveBlockHashG relationship. Sets o.R.BlockHash to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*Transaction) RemoveBlockHashGP added in v1.0.0

func (o *Transaction) RemoveBlockHashGP(related *Block)

RemoveBlockHashGP relationship. Sets o.R.BlockHash to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*Transaction) RemoveBlockHashP added in v1.0.0

func (o *Transaction) RemoveBlockHashP(exec boil.Executor, related *Block)

RemoveBlockHashP relationship. Sets o.R.BlockHash to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*Transaction) RemoveTransactionHashClaims added in v1.0.0

func (o *Transaction) RemoveTransactionHashClaims(exec boil.Executor, related ...*Claim) error

RemoveTransactionHashClaims relationships from objects passed in. Removes related items from R.TransactionHashClaims (uses pointer comparison, removal does not keep order) Sets related.R.TransactionHash.

func (*Transaction) RemoveTransactionHashClaimsG added in v1.0.0

func (o *Transaction) RemoveTransactionHashClaimsG(related ...*Claim) error

RemoveTransactionHashClaimsG relationships from objects passed in. Removes related items from R.TransactionHashClaims (uses pointer comparison, removal does not keep order) Sets related.R.TransactionHash. Uses the global database handle.

func (*Transaction) RemoveTransactionHashClaimsGP added in v1.0.0

func (o *Transaction) RemoveTransactionHashClaimsGP(related ...*Claim)

RemoveTransactionHashClaimsGP relationships from objects passed in. Removes related items from R.TransactionHashClaims (uses pointer comparison, removal does not keep order) Sets related.R.TransactionHash. Uses the global database handle and panics on error.

func (*Transaction) RemoveTransactionHashClaimsP added in v1.0.0

func (o *Transaction) RemoveTransactionHashClaimsP(exec boil.Executor, related ...*Claim)

RemoveTransactionHashClaimsP relationships from objects passed in. Removes related items from R.TransactionHashClaims (uses pointer comparison, removal does not keep order) Sets related.R.TransactionHash. Panics on error.

func (*Transaction) RemoveTransactionHashSupports added in v0.3.0

func (o *Transaction) RemoveTransactionHashSupports(exec boil.Executor, related ...*Support) error

RemoveTransactionHashSupports relationships from objects passed in. Removes related items from R.TransactionHashSupports (uses pointer comparison, removal does not keep order) Sets related.R.TransactionHash.

func (*Transaction) RemoveTransactionHashSupportsG added in v0.3.0

func (o *Transaction) RemoveTransactionHashSupportsG(related ...*Support) error

RemoveTransactionHashSupportsG relationships from objects passed in. Removes related items from R.TransactionHashSupports (uses pointer comparison, removal does not keep order) Sets related.R.TransactionHash. Uses the global database handle.

func (*Transaction) RemoveTransactionHashSupportsGP added in v0.3.0

func (o *Transaction) RemoveTransactionHashSupportsGP(related ...*Support)

RemoveTransactionHashSupportsGP relationships from objects passed in. Removes related items from R.TransactionHashSupports (uses pointer comparison, removal does not keep order) Sets related.R.TransactionHash. Uses the global database handle and panics on error.

func (*Transaction) RemoveTransactionHashSupportsP added in v0.3.0

func (o *Transaction) RemoveTransactionHashSupportsP(exec boil.Executor, related ...*Support)

RemoveTransactionHashSupportsP relationships from objects passed in. Removes related items from R.TransactionHashSupports (uses pointer comparison, removal does not keep order) Sets related.R.TransactionHash. Panics on error.

func (*Transaction) SetBlockHash added in v1.0.0

func (o *Transaction) SetBlockHash(exec boil.Executor, insert bool, related *Block) error

SetBlockHash of the transaction to the related item. Sets o.R.BlockHash to related. Adds o to related.R.BlockHashTransactions.

func (*Transaction) SetBlockHashG added in v1.0.0

func (o *Transaction) SetBlockHashG(insert bool, related *Block) error

SetBlockHashG of the transaction to the related item. Sets o.R.BlockHash to related. Adds o to related.R.BlockHashTransactions. Uses the global database handle.

func (*Transaction) SetBlockHashGP added in v1.0.0

func (o *Transaction) SetBlockHashGP(insert bool, related *Block)

SetBlockHashGP of the transaction to the related item. Sets o.R.BlockHash to related. Adds o to related.R.BlockHashTransactions. Uses the global database handle and panics on error.

func (*Transaction) SetBlockHashP added in v1.0.0

func (o *Transaction) SetBlockHashP(exec boil.Executor, insert bool, related *Block)

SetBlockHashP of the transaction to the related item. Sets o.R.BlockHash to related. Adds o to related.R.BlockHashTransactions. Panics on error.

func (*Transaction) SetTransactionHashClaims added in v1.0.0

func (o *Transaction) SetTransactionHashClaims(exec boil.Executor, insert bool, related ...*Claim) error

SetTransactionHashClaims removes all previously related items of the transaction replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.TransactionHash's TransactionHashClaims accordingly. Replaces o.R.TransactionHashClaims with related. Sets related.R.TransactionHash's TransactionHashClaims accordingly.

func (*Transaction) SetTransactionHashClaimsG added in v1.0.0

func (o *Transaction) SetTransactionHashClaimsG(insert bool, related ...*Claim) error

SetTransactionHashClaimsG removes all previously related items of the transaction replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.TransactionHash's TransactionHashClaims accordingly. Replaces o.R.TransactionHashClaims with related. Sets related.R.TransactionHash's TransactionHashClaims accordingly. Uses the global database handle.

func (*Transaction) SetTransactionHashClaimsGP added in v1.0.0

func (o *Transaction) SetTransactionHashClaimsGP(insert bool, related ...*Claim)

SetTransactionHashClaimsGP removes all previously related items of the transaction replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.TransactionHash's TransactionHashClaims accordingly. Replaces o.R.TransactionHashClaims with related. Sets related.R.TransactionHash's TransactionHashClaims accordingly. Uses the global database handle and panics on error.

func (*Transaction) SetTransactionHashClaimsP added in v1.0.0

func (o *Transaction) SetTransactionHashClaimsP(exec boil.Executor, insert bool, related ...*Claim)

SetTransactionHashClaimsP removes all previously related items of the transaction replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.TransactionHash's TransactionHashClaims accordingly. Replaces o.R.TransactionHashClaims with related. Sets related.R.TransactionHash's TransactionHashClaims accordingly. Panics on error.

func (*Transaction) SetTransactionHashSupports added in v0.3.0

func (o *Transaction) SetTransactionHashSupports(exec boil.Executor, insert bool, related ...*Support) error

SetTransactionHashSupports removes all previously related items of the transaction replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.TransactionHash's TransactionHashSupports accordingly. Replaces o.R.TransactionHashSupports with related. Sets related.R.TransactionHash's TransactionHashSupports accordingly.

func (*Transaction) SetTransactionHashSupportsG added in v0.3.0

func (o *Transaction) SetTransactionHashSupportsG(insert bool, related ...*Support) error

SetTransactionHashSupportsG removes all previously related items of the transaction replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.TransactionHash's TransactionHashSupports accordingly. Replaces o.R.TransactionHashSupports with related. Sets related.R.TransactionHash's TransactionHashSupports accordingly. Uses the global database handle.

func (*Transaction) SetTransactionHashSupportsGP added in v0.3.0

func (o *Transaction) SetTransactionHashSupportsGP(insert bool, related ...*Support)

SetTransactionHashSupportsGP removes all previously related items of the transaction replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.TransactionHash's TransactionHashSupports accordingly. Replaces o.R.TransactionHashSupports with related. Sets related.R.TransactionHash's TransactionHashSupports accordingly. Uses the global database handle and panics on error.

func (*Transaction) SetTransactionHashSupportsP added in v0.3.0

func (o *Transaction) SetTransactionHashSupportsP(exec boil.Executor, insert bool, related ...*Support)

SetTransactionHashSupportsP removes all previously related items of the transaction replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.TransactionHash's TransactionHashSupports accordingly. Replaces o.R.TransactionHashSupports with related. Sets related.R.TransactionHash's TransactionHashSupports accordingly. Panics on error.

func (*Transaction) TransactionAddresses

func (o *Transaction) TransactionAddresses(exec boil.Executor, mods ...qm.QueryMod) transactionAddressQuery

TransactionAddresses retrieves all the transaction_address's transaction address with an executor.

func (*Transaction) TransactionAddressesG

func (o *Transaction) TransactionAddressesG(mods ...qm.QueryMod) transactionAddressQuery

TransactionAddressesG retrieves all the transaction_address's transaction address.

func (*Transaction) TransactionHashClaims added in v1.0.0

func (o *Transaction) TransactionHashClaims(exec boil.Executor, mods ...qm.QueryMod) claimQuery

TransactionHashClaims retrieves all the claim's claim with an executor via transaction_hash_id column.

func (*Transaction) TransactionHashClaimsG added in v1.0.0

func (o *Transaction) TransactionHashClaimsG(mods ...qm.QueryMod) claimQuery

TransactionHashClaimsG retrieves all the claim's claim via transaction_hash_id column.

func (*Transaction) TransactionHashSupports added in v0.3.0

func (o *Transaction) TransactionHashSupports(exec boil.Executor, mods ...qm.QueryMod) supportQuery

TransactionHashSupports retrieves all the support's support with an executor via transaction_hash_id column.

func (*Transaction) TransactionHashSupportsG added in v0.3.0

func (o *Transaction) TransactionHashSupportsG(mods ...qm.QueryMod) supportQuery

TransactionHashSupportsG retrieves all the support's support via transaction_hash_id column.

func (*Transaction) Update

func (o *Transaction) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Transaction. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Transaction) UpdateG

func (o *Transaction) UpdateG(whitelist ...string) error

UpdateG a single Transaction record. See Update for whitelist behavior description.

func (*Transaction) UpdateGP

func (o *Transaction) UpdateGP(whitelist ...string)

UpdateGP a single Transaction record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Transaction) UpdateP

func (o *Transaction) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Transaction, and panics on error. See Update for whitelist behavior description.

func (*Transaction) Upsert

func (o *Transaction) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Transaction) UpsertG

func (o *Transaction) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Transaction) UpsertGP

func (o *Transaction) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Transaction) UpsertP

func (o *Transaction) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type TransactionAddress

type TransactionAddress struct {
	TransactionID uint64  `boil:"transaction_id" json:"transaction_id" toml:"transaction_id" yaml:"transaction_id"`
	AddressID     uint64  `boil:"address_id" json:"address_id" toml:"address_id" yaml:"address_id"`
	DebitAmount   float64 `boil:"debit_amount" json:"debit_amount" toml:"debit_amount" yaml:"debit_amount"`
	CreditAmount  float64 `boil:"credit_amount" json:"credit_amount" toml:"credit_amount" yaml:"credit_amount"`

	R *transactionAddressR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L transactionAddressL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

TransactionAddress is an object representing the database table.

func FindTransactionAddress

func FindTransactionAddress(exec boil.Executor, transactionID uint64, addressID uint64, selectCols ...string) (*TransactionAddress, error)

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

func FindTransactionAddressG

func FindTransactionAddressG(transactionID uint64, addressID uint64, selectCols ...string) (*TransactionAddress, error)

FindTransactionAddressG retrieves a single record by ID.

func FindTransactionAddressGP

func FindTransactionAddressGP(transactionID uint64, addressID uint64, selectCols ...string) *TransactionAddress

FindTransactionAddressGP retrieves a single record by ID, and panics on error.

func FindTransactionAddressP

func FindTransactionAddressP(exec boil.Executor, transactionID uint64, addressID uint64, selectCols ...string) *TransactionAddress

FindTransactionAddressP retrieves a single record by ID with an executor, and panics on error.

func (*TransactionAddress) Address

func (o *TransactionAddress) Address(exec boil.Executor, mods ...qm.QueryMod) addressQuery

Address pointed to by the foreign key.

func (*TransactionAddress) AddressG

func (o *TransactionAddress) AddressG(mods ...qm.QueryMod) addressQuery

AddressG pointed to by the foreign key.

func (*TransactionAddress) Delete

func (o *TransactionAddress) Delete(exec boil.Executor) error

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

func (*TransactionAddress) DeleteG

func (o *TransactionAddress) DeleteG() error

DeleteG deletes a single TransactionAddress record. DeleteG will match against the primary key column to find the record to delete.

func (*TransactionAddress) DeleteGP

func (o *TransactionAddress) DeleteGP()

DeleteGP deletes a single TransactionAddress record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*TransactionAddress) DeleteP

func (o *TransactionAddress) DeleteP(exec boil.Executor)

DeleteP deletes a single TransactionAddress record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*TransactionAddress) Insert

func (o *TransactionAddress) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*TransactionAddress) InsertG

func (o *TransactionAddress) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*TransactionAddress) InsertGP

func (o *TransactionAddress) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*TransactionAddress) InsertP

func (o *TransactionAddress) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*TransactionAddress) Reload

func (o *TransactionAddress) Reload(exec boil.Executor) error

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

func (*TransactionAddress) ReloadG

func (o *TransactionAddress) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*TransactionAddress) ReloadGP

func (o *TransactionAddress) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*TransactionAddress) ReloadP

func (o *TransactionAddress) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*TransactionAddress) SetAddress

func (o *TransactionAddress) SetAddress(exec boil.Executor, insert bool, related *Address) error

SetAddress of the transaction_address to the related item. Sets o.R.Address to related. Adds o to related.R.TransactionAddresses.

func (*TransactionAddress) SetAddressG

func (o *TransactionAddress) SetAddressG(insert bool, related *Address) error

SetAddressG of the transaction_address to the related item. Sets o.R.Address to related. Adds o to related.R.TransactionAddresses. Uses the global database handle.

func (*TransactionAddress) SetAddressGP

func (o *TransactionAddress) SetAddressGP(insert bool, related *Address)

SetAddressGP of the transaction_address to the related item. Sets o.R.Address to related. Adds o to related.R.TransactionAddresses. Uses the global database handle and panics on error.

func (*TransactionAddress) SetAddressP

func (o *TransactionAddress) SetAddressP(exec boil.Executor, insert bool, related *Address)

SetAddressP of the transaction_address to the related item. Sets o.R.Address to related. Adds o to related.R.TransactionAddresses. Panics on error.

func (*TransactionAddress) SetTransaction

func (o *TransactionAddress) SetTransaction(exec boil.Executor, insert bool, related *Transaction) error

SetTransaction of the transaction_address to the related item. Sets o.R.Transaction to related. Adds o to related.R.TransactionAddresses.

func (*TransactionAddress) SetTransactionG

func (o *TransactionAddress) SetTransactionG(insert bool, related *Transaction) error

SetTransactionG of the transaction_address to the related item. Sets o.R.Transaction to related. Adds o to related.R.TransactionAddresses. Uses the global database handle.

func (*TransactionAddress) SetTransactionGP

func (o *TransactionAddress) SetTransactionGP(insert bool, related *Transaction)

SetTransactionGP of the transaction_address to the related item. Sets o.R.Transaction to related. Adds o to related.R.TransactionAddresses. Uses the global database handle and panics on error.

func (*TransactionAddress) SetTransactionP

func (o *TransactionAddress) SetTransactionP(exec boil.Executor, insert bool, related *Transaction)

SetTransactionP of the transaction_address to the related item. Sets o.R.Transaction to related. Adds o to related.R.TransactionAddresses. Panics on error.

func (*TransactionAddress) Transaction

func (o *TransactionAddress) Transaction(exec boil.Executor, mods ...qm.QueryMod) transactionQuery

Transaction pointed to by the foreign key.

func (*TransactionAddress) TransactionG

func (o *TransactionAddress) TransactionG(mods ...qm.QueryMod) transactionQuery

TransactionG pointed to by the foreign key.

func (*TransactionAddress) Update

func (o *TransactionAddress) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the TransactionAddress. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*TransactionAddress) UpdateG

func (o *TransactionAddress) UpdateG(whitelist ...string) error

UpdateG a single TransactionAddress record. See Update for whitelist behavior description.

func (*TransactionAddress) UpdateGP

func (o *TransactionAddress) UpdateGP(whitelist ...string)

UpdateGP a single TransactionAddress record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*TransactionAddress) UpdateP

func (o *TransactionAddress) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the TransactionAddress, and panics on error. See Update for whitelist behavior description.

func (*TransactionAddress) Upsert

func (o *TransactionAddress) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*TransactionAddress) UpsertG

func (o *TransactionAddress) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*TransactionAddress) UpsertGP

func (o *TransactionAddress) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*TransactionAddress) UpsertP

func (o *TransactionAddress) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type TransactionAddressSlice

type TransactionAddressSlice []*TransactionAddress

TransactionAddressSlice is an alias for a slice of pointers to TransactionAddress. This should generally be used opposed to []TransactionAddress.

func (TransactionAddressSlice) DeleteAll

func (o TransactionAddressSlice) DeleteAll(exec boil.Executor) error

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

func (TransactionAddressSlice) DeleteAllG

func (o TransactionAddressSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (TransactionAddressSlice) DeleteAllGP

func (o TransactionAddressSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (TransactionAddressSlice) DeleteAllP

func (o TransactionAddressSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*TransactionAddressSlice) ReloadAll

func (o *TransactionAddressSlice) ReloadAll(exec boil.Executor) error

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

func (*TransactionAddressSlice) ReloadAllG

func (o *TransactionAddressSlice) ReloadAllG() error

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

func (*TransactionAddressSlice) ReloadAllGP

func (o *TransactionAddressSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*TransactionAddressSlice) ReloadAllP

func (o *TransactionAddressSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (TransactionAddressSlice) UpdateAll

func (o TransactionAddressSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (TransactionAddressSlice) UpdateAllG

func (o TransactionAddressSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (TransactionAddressSlice) UpdateAllGP

func (o TransactionAddressSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (TransactionAddressSlice) UpdateAllP

func (o TransactionAddressSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type TransactionSlice

type TransactionSlice []*Transaction

TransactionSlice is an alias for a slice of pointers to Transaction. This should generally be used opposed to []Transaction.

func (TransactionSlice) DeleteAll

func (o TransactionSlice) DeleteAll(exec boil.Executor) error

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

func (TransactionSlice) DeleteAllG

func (o TransactionSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (TransactionSlice) DeleteAllGP

func (o TransactionSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (TransactionSlice) DeleteAllP

func (o TransactionSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*TransactionSlice) ReloadAll

func (o *TransactionSlice) ReloadAll(exec boil.Executor) error

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

func (*TransactionSlice) ReloadAllG

func (o *TransactionSlice) ReloadAllG() error

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

func (*TransactionSlice) ReloadAllGP

func (o *TransactionSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*TransactionSlice) ReloadAllP

func (o *TransactionSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (TransactionSlice) UpdateAll

func (o TransactionSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (TransactionSlice) UpdateAllG

func (o TransactionSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (TransactionSlice) UpdateAllGP

func (o TransactionSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (TransactionSlice) UpdateAllP

func (o TransactionSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

Jump to

Keyboard shortcuts

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