models

package
v0.0.0-...-cddd04e Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: ISC Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlockBinColumns = struct {
	Height            string
	ReceiveTimeDiff   string
	InternalTimestamp string
	Bin               string
}{
	Height:            "height",
	ReceiveTimeDiff:   "receive_time_diff",
	InternalTimestamp: "internal_timestamp",
	Bin:               "bin",
}
View Source
var BlockBinRels = struct {
}{}

BlockBinRels is where relationship names are stored.

View Source
var BlockBinWhere = struct {
	Height            whereHelperint64
	ReceiveTimeDiff   whereHelperfloat64
	InternalTimestamp whereHelperint64
	Bin               whereHelperstring
}{
	Height:            whereHelperint64{/* contains filtered or unexported fields */},
	ReceiveTimeDiff:   whereHelperfloat64{/* contains filtered or unexported fields */},
	InternalTimestamp: whereHelperint64{/* contains filtered or unexported fields */},
	Bin:               whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var BlockColumns = struct {
	Height            string
	ReceiveTime       string
	InternalTimestamp string
	Hash              string
}{
	Height:            "height",
	ReceiveTime:       "receive_time",
	InternalTimestamp: "internal_timestamp",
	Hash:              "hash",
}
View Source
var BlockRels = struct {
}{}

BlockRels is where relationship names are stored.

View Source
var BlockWhere = struct {
	Height            whereHelperint
	ReceiveTime       whereHelpernull_Time
	InternalTimestamp whereHelpernull_Time
	Hash              whereHelpernull_String
}{
	Height:            whereHelperint{/* contains filtered or unexported fields */},
	ReceiveTime:       whereHelpernull_Time{/* contains filtered or unexported fields */},
	InternalTimestamp: whereHelpernull_Time{/* contains filtered or unexported fields */},
	Hash:              whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

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

View Source
var ExchangeColumns = struct {
	ID   string
	Name string
	URL  string
}{
	ID:   "id",
	Name: "name",
	URL:  "url",
}
View Source
var ExchangeRels = struct {
	ExchangeTicks string
}{
	ExchangeTicks: "ExchangeTicks",
}

ExchangeRels is where relationship names are stored.

View Source
var ExchangeTickColumns = struct {
	ID           string
	ExchangeID   string
	Interval     string
	High         string
	Low          string
	Open         string
	Close        string
	Volume       string
	CurrencyPair string
	Time         string
}{
	ID:           "id",
	ExchangeID:   "exchange_id",
	Interval:     "interval",
	High:         "high",
	Low:          "low",
	Open:         "open",
	Close:        "close",
	Volume:       "volume",
	CurrencyPair: "currency_pair",
	Time:         "time",
}
View Source
var ExchangeTickRels = struct {
	Exchange string
}{
	Exchange: "Exchange",
}

ExchangeTickRels is where relationship names are stored.

View Source
var ExchangeTickWhere = struct {
	ID           whereHelperint
	ExchangeID   whereHelperint
	Interval     whereHelperint
	High         whereHelperfloat64
	Low          whereHelperfloat64
	Open         whereHelperfloat64
	Close        whereHelperfloat64
	Volume       whereHelperfloat64
	CurrencyPair whereHelperstring
	Time         whereHelpertime_Time
}{
	ID:           whereHelperint{/* contains filtered or unexported fields */},
	ExchangeID:   whereHelperint{/* contains filtered or unexported fields */},
	Interval:     whereHelperint{/* contains filtered or unexported fields */},
	High:         whereHelperfloat64{/* contains filtered or unexported fields */},
	Low:          whereHelperfloat64{/* contains filtered or unexported fields */},
	Open:         whereHelperfloat64{/* contains filtered or unexported fields */},
	Close:        whereHelperfloat64{/* contains filtered or unexported fields */},
	Volume:       whereHelperfloat64{/* contains filtered or unexported fields */},
	CurrencyPair: whereHelperstring{/* contains filtered or unexported fields */},
	Time:         whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ExchangeWhere = struct {
	ID   whereHelperint
	Name whereHelperstring
	URL  whereHelperstring
}{
	ID:   whereHelperint{/* contains filtered or unexported fields */},
	Name: whereHelperstring{/* contains filtered or unexported fields */},
	URL:  whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var GithubColumns = struct {
	Date       string
	Repository string
	Stars      string
	Folks      string
}{
	Date:       "date",
	Repository: "repository",
	Stars:      "stars",
	Folks:      "folks",
}
View Source
var GithubRels = struct {
}{}

GithubRels is where relationship names are stored.

View Source
var GithubWhere = struct {
	Date       whereHelpertime_Time
	Repository whereHelperstring
	Stars      whereHelperint
	Folks      whereHelperint
}{
	Date:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	Repository: whereHelperstring{/* contains filtered or unexported fields */},
	Stars:      whereHelperint{/* contains filtered or unexported fields */},
	Folks:      whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var HeartbeatColumns = struct {
	Timestamp     string
	NodeID        string
	LastSeen      string
	Latency       string
	CurrentHeight string
}{
	Timestamp:     "timestamp",
	NodeID:        "node_id",
	LastSeen:      "last_seen",
	Latency:       "latency",
	CurrentHeight: "current_height",
}
View Source
var HeartbeatRels = struct {
	Node string
}{
	Node: "Node",
}

HeartbeatRels is where relationship names are stored.

View Source
var HeartbeatWhere = struct {
	Timestamp     whereHelperint64
	NodeID        whereHelperstring
	LastSeen      whereHelperint64
	Latency       whereHelperint
	CurrentHeight whereHelperint64
}{
	Timestamp:     whereHelperint64{/* contains filtered or unexported fields */},
	NodeID:        whereHelperstring{/* contains filtered or unexported fields */},
	LastSeen:      whereHelperint64{/* contains filtered or unexported fields */},
	Latency:       whereHelperint{/* contains filtered or unexported fields */},
	CurrentHeight: whereHelperint64{/* contains filtered or unexported fields */},
}
View Source
var MempoolBinColumns = struct {
	Time                 string
	Bin                  string
	NumberOfTransactions string
	Size                 string
	TotalFee             string
}{
	Time:                 "time",
	Bin:                  "bin",
	NumberOfTransactions: "number_of_transactions",
	Size:                 "size",
	TotalFee:             "total_fee",
}
View Source
var MempoolBinRels = struct {
}{}

MempoolBinRels is where relationship names are stored.

View Source
var MempoolBinWhere = struct {
	Time                 whereHelperint64
	Bin                  whereHelperstring
	NumberOfTransactions whereHelpernull_Int
	Size                 whereHelpernull_Int
	TotalFee             whereHelpernull_Float64
}{
	Time:                 whereHelperint64{/* contains filtered or unexported fields */},
	Bin:                  whereHelperstring{/* contains filtered or unexported fields */},
	NumberOfTransactions: whereHelpernull_Int{/* contains filtered or unexported fields */},
	Size:                 whereHelpernull_Int{/* contains filtered or unexported fields */},
	TotalFee:             whereHelpernull_Float64{/* contains filtered or unexported fields */},
}
View Source
var MempoolColumns = struct {
	Time                 string
	FirstSeenTime        string
	NumberOfTransactions string
	Voters               string
	Tickets              string
	Revocations          string
	Size                 string
	TotalFee             string
	Total                string
}{
	Time:                 "time",
	FirstSeenTime:        "first_seen_time",
	NumberOfTransactions: "number_of_transactions",
	Voters:               "voters",
	Tickets:              "tickets",
	Revocations:          "revocations",
	Size:                 "size",
	TotalFee:             "total_fee",
	Total:                "total",
}
View Source
var MempoolRels = struct {
}{}

MempoolRels is where relationship names are stored.

View Source
var MempoolWhere = struct {
	Time                 whereHelpertime_Time
	FirstSeenTime        whereHelpernull_Time
	NumberOfTransactions whereHelpernull_Int
	Voters               whereHelpernull_Int
	Tickets              whereHelpernull_Int
	Revocations          whereHelpernull_Int
	Size                 whereHelpernull_Int
	TotalFee             whereHelpernull_Float64
	Total                whereHelpernull_Float64
}{
	Time:                 whereHelpertime_Time{/* contains filtered or unexported fields */},
	FirstSeenTime:        whereHelpernull_Time{/* contains filtered or unexported fields */},
	NumberOfTransactions: whereHelpernull_Int{/* contains filtered or unexported fields */},
	Voters:               whereHelpernull_Int{/* contains filtered or unexported fields */},
	Tickets:              whereHelpernull_Int{/* contains filtered or unexported fields */},
	Revocations:          whereHelpernull_Int{/* contains filtered or unexported fields */},
	Size:                 whereHelpernull_Int{/* contains filtered or unexported fields */},
	TotalFee:             whereHelpernull_Float64{/* contains filtered or unexported fields */},
	Total:                whereHelpernull_Float64{/* contains filtered or unexported fields */},
}
View Source
var NetworkSnapshotBinColumns = struct {
	Timestamp      string
	Height         string
	NodeCount      string
	ReachableNodes string
	Bin            string
}{
	Timestamp:      "timestamp",
	Height:         "height",
	NodeCount:      "node_count",
	ReachableNodes: "reachable_nodes",
	Bin:            "bin",
}
View Source
var NetworkSnapshotBinRels = struct {
}{}

NetworkSnapshotBinRels is where relationship names are stored.

View Source
var NetworkSnapshotBinWhere = struct {
	Timestamp      whereHelperint64
	Height         whereHelperint64
	NodeCount      whereHelperint
	ReachableNodes whereHelperint
	Bin            whereHelperstring
}{
	Timestamp:      whereHelperint64{/* contains filtered or unexported fields */},
	Height:         whereHelperint64{/* contains filtered or unexported fields */},
	NodeCount:      whereHelperint{/* contains filtered or unexported fields */},
	ReachableNodes: whereHelperint{/* contains filtered or unexported fields */},
	Bin:            whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var NetworkSnapshotColumns = struct {
	Timestamp           string
	Height              string
	NodeCount           string
	ReachableNodes      string
	OldestNode          string
	OldestNodeTimestamp string
	Latency             string
}{
	Timestamp:           "timestamp",
	Height:              "height",
	NodeCount:           "node_count",
	ReachableNodes:      "reachable_nodes",
	OldestNode:          "oldest_node",
	OldestNodeTimestamp: "oldest_node_timestamp",
	Latency:             "latency",
}
View Source
var NetworkSnapshotRels = struct {
}{}

NetworkSnapshotRels is where relationship names are stored.

View Source
var NetworkSnapshotWhere = struct {
	Timestamp           whereHelperint64
	Height              whereHelperint64
	NodeCount           whereHelperint
	ReachableNodes      whereHelperint
	OldestNode          whereHelperstring
	OldestNodeTimestamp whereHelperint64
	Latency             whereHelperint
}{
	Timestamp:           whereHelperint64{/* contains filtered or unexported fields */},
	Height:              whereHelperint64{/* contains filtered or unexported fields */},
	NodeCount:           whereHelperint{/* contains filtered or unexported fields */},
	ReachableNodes:      whereHelperint{/* contains filtered or unexported fields */},
	OldestNode:          whereHelperstring{/* contains filtered or unexported fields */},
	OldestNodeTimestamp: whereHelperint64{/* contains filtered or unexported fields */},
	Latency:             whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var NodeColumns = struct {
	Address         string
	IPVersion       string
	Country         string
	Region          string
	City            string
	Zip             string
	LastAttempt     string
	LastSeen        string
	LastSuccess     string
	FailureCount    string
	IsDead          string
	ConnectionTime  string
	ProtocolVersion string
	UserAgent       string
	Services        string
	StartingHeight  string
	CurrentHeight   string
}{
	Address:         "address",
	IPVersion:       "ip_version",
	Country:         "country",
	Region:          "region",
	City:            "city",
	Zip:             "zip",
	LastAttempt:     "last_attempt",
	LastSeen:        "last_seen",
	LastSuccess:     "last_success",
	FailureCount:    "failure_count",
	IsDead:          "is_dead",
	ConnectionTime:  "connection_time",
	ProtocolVersion: "protocol_version",
	UserAgent:       "user_agent",
	Services:        "services",
	StartingHeight:  "starting_height",
	CurrentHeight:   "current_height",
}
View Source
var NodeLocationColumns = struct {
	Timestamp string
	Height    string
	NodeCount string
	Country   string
	Bin       string
}{
	Timestamp: "timestamp",
	Height:    "height",
	NodeCount: "node_count",
	Country:   "country",
	Bin:       "bin",
}
View Source
var NodeLocationRels = struct {
}{}

NodeLocationRels is where relationship names are stored.

View Source
var NodeLocationWhere = struct {
	Timestamp whereHelperint64
	Height    whereHelperint64
	NodeCount whereHelperint
	Country   whereHelperstring
	Bin       whereHelperstring
}{
	Timestamp: whereHelperint64{/* contains filtered or unexported fields */},
	Height:    whereHelperint64{/* contains filtered or unexported fields */},
	NodeCount: whereHelperint{/* contains filtered or unexported fields */},
	Country:   whereHelperstring{/* contains filtered or unexported fields */},
	Bin:       whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var NodeRels = struct {
	Heartbeats string
}{
	Heartbeats: "Heartbeats",
}

NodeRels is where relationship names are stored.

View Source
var NodeVersionColumns = struct {
	Timestamp string
	Height    string
	NodeCount string
	UserAgent string
	Bin       string
}{
	Timestamp: "timestamp",
	Height:    "height",
	NodeCount: "node_count",
	UserAgent: "user_agent",
	Bin:       "bin",
}
View Source
var NodeVersionRels = struct {
}{}

NodeVersionRels is where relationship names are stored.

View Source
var NodeVersionWhere = struct {
	Timestamp whereHelperint64
	Height    whereHelperint64
	NodeCount whereHelperint
	UserAgent whereHelperstring
	Bin       whereHelperstring
}{
	Timestamp: whereHelperint64{/* contains filtered or unexported fields */},
	Height:    whereHelperint64{/* contains filtered or unexported fields */},
	NodeCount: whereHelperint{/* contains filtered or unexported fields */},
	UserAgent: whereHelperstring{/* contains filtered or unexported fields */},
	Bin:       whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var NodeWhere = struct {
	Address         whereHelperstring
	IPVersion       whereHelperint
	Country         whereHelperstring
	Region          whereHelperstring
	City            whereHelperstring
	Zip             whereHelperstring
	LastAttempt     whereHelperint64
	LastSeen        whereHelperint64
	LastSuccess     whereHelperint64
	FailureCount    whereHelperint
	IsDead          whereHelperbool
	ConnectionTime  whereHelperint64
	ProtocolVersion whereHelperint
	UserAgent       whereHelperstring
	Services        whereHelperstring
	StartingHeight  whereHelperint64
	CurrentHeight   whereHelperint64
}{
	Address:         whereHelperstring{/* contains filtered or unexported fields */},
	IPVersion:       whereHelperint{/* contains filtered or unexported fields */},
	Country:         whereHelperstring{/* contains filtered or unexported fields */},
	Region:          whereHelperstring{/* contains filtered or unexported fields */},
	City:            whereHelperstring{/* contains filtered or unexported fields */},
	Zip:             whereHelperstring{/* contains filtered or unexported fields */},
	LastAttempt:     whereHelperint64{/* contains filtered or unexported fields */},
	LastSeen:        whereHelperint64{/* contains filtered or unexported fields */},
	LastSuccess:     whereHelperint64{/* contains filtered or unexported fields */},
	FailureCount:    whereHelperint{/* contains filtered or unexported fields */},
	IsDead:          whereHelperbool{/* contains filtered or unexported fields */},
	ConnectionTime:  whereHelperint64{/* contains filtered or unexported fields */},
	ProtocolVersion: whereHelperint{/* contains filtered or unexported fields */},
	UserAgent:       whereHelperstring{/* contains filtered or unexported fields */},
	Services:        whereHelperstring{/* contains filtered or unexported fields */},
	StartingHeight:  whereHelperint64{/* contains filtered or unexported fields */},
	CurrentHeight:   whereHelperint64{/* contains filtered or unexported fields */},
}
View Source
var PowBinColumns = struct {
	Time         string
	PoolHashrate string
	Workers      string
	Bin          string
	Source       string
}{
	Time:         "time",
	PoolHashrate: "pool_hashrate",
	Workers:      "workers",
	Bin:          "bin",
	Source:       "source",
}
View Source
var PowBinRels = struct {
}{}

PowBinRels is where relationship names are stored.

View Source
var PowBinWhere = struct {
	Time         whereHelperint64
	PoolHashrate whereHelpernull_String
	Workers      whereHelpernull_Int
	Bin          whereHelperstring
	Source       whereHelperstring
}{
	Time:         whereHelperint64{/* contains filtered or unexported fields */},
	PoolHashrate: whereHelpernull_String{/* contains filtered or unexported fields */},
	Workers:      whereHelpernull_Int{/* contains filtered or unexported fields */},
	Bin:          whereHelperstring{/* contains filtered or unexported fields */},
	Source:       whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var PowDatumColumns = struct {
	Time         string
	PoolHashrate string
	Workers      string
	CoinPrice    string
	BTCPrice     string
	Source       string
}{
	Time:         "time",
	PoolHashrate: "pool_hashrate",
	Workers:      "workers",
	CoinPrice:    "coin_price",
	BTCPrice:     "btc_price",
	Source:       "source",
}
View Source
var PowDatumRels = struct {
}{}

PowDatumRels is where relationship names are stored.

View Source
var PowDatumWhere = struct {
	Time         whereHelperint
	PoolHashrate whereHelpernull_String
	Workers      whereHelpernull_Int
	CoinPrice    whereHelpernull_String
	BTCPrice     whereHelpernull_String
	Source       whereHelperstring
}{
	Time:         whereHelperint{/* contains filtered or unexported fields */},
	PoolHashrate: whereHelpernull_String{/* contains filtered or unexported fields */},
	Workers:      whereHelpernull_Int{/* contains filtered or unexported fields */},
	CoinPrice:    whereHelpernull_String{/* contains filtered or unexported fields */},
	BTCPrice:     whereHelpernull_String{/* contains filtered or unexported fields */},
	Source:       whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var PropagationColumns = struct {
	Height    string
	Time      string
	Bin       string
	Source    string
	Deviation string
}{
	Height:    "height",
	Time:      "time",
	Bin:       "bin",
	Source:    "source",
	Deviation: "deviation",
}
View Source
var PropagationRels = struct {
}{}

PropagationRels is where relationship names are stored.

View Source
var PropagationWhere = struct {
	Height    whereHelperint64
	Time      whereHelperint64
	Bin       whereHelperstring
	Source    whereHelperstring
	Deviation whereHelperfloat64
}{
	Height:    whereHelperint64{/* contains filtered or unexported fields */},
	Time:      whereHelperint64{/* contains filtered or unexported fields */},
	Bin:       whereHelperstring{/* contains filtered or unexported fields */},
	Source:    whereHelperstring{/* contains filtered or unexported fields */},
	Deviation: whereHelperfloat64{/* contains filtered or unexported fields */},
}
View Source
var RedditColumns = struct {
	Date           string
	Subreddit      string
	Subscribers    string
	ActiveAccounts string
}{
	Date:           "date",
	Subreddit:      "subreddit",
	Subscribers:    "subscribers",
	ActiveAccounts: "active_accounts",
}
View Source
var RedditRels = struct {
}{}

RedditRels is where relationship names are stored.

View Source
var RedditWhere = struct {
	Date           whereHelpertime_Time
	Subreddit      whereHelperstring
	Subscribers    whereHelperint
	ActiveAccounts whereHelperint
}{
	Date:           whereHelpertime_Time{/* contains filtered or unexported fields */},
	Subreddit:      whereHelperstring{/* contains filtered or unexported fields */},
	Subscribers:    whereHelperint{/* contains filtered or unexported fields */},
	ActiveAccounts: whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Block                    string
	BlockBin                 string
	Exchange                 string
	ExchangeTick             string
	Github                   string
	Heartbeat                string
	Mempool                  string
	MempoolBin               string
	NetworkSnapshot          string
	NetworkSnapshotBin       string
	Node                     string
	NodeLocation             string
	NodeVersion              string
	PowBin                   string
	PowData                  string
	Propagation              string
	Reddit                   string
	Twitter                  string
	Vote                     string
	VoteReceiveTimeDeviation string
	VSP                      string
	VSPTick                  string
	VSPTickBin               string
	Youtube                  string
}{
	Block:                    "block",
	BlockBin:                 "block_bin",
	Exchange:                 "exchange",
	ExchangeTick:             "exchange_tick",
	Github:                   "github",
	Heartbeat:                "heartbeat",
	Mempool:                  "mempool",
	MempoolBin:               "mempool_bin",
	NetworkSnapshot:          "network_snapshot",
	NetworkSnapshotBin:       "network_snapshot_bin",
	Node:                     "node",
	NodeLocation:             "node_location",
	NodeVersion:              "node_version",
	PowBin:                   "pow_bin",
	PowData:                  "pow_data",
	Propagation:              "propagation",
	Reddit:                   "reddit",
	Twitter:                  "twitter",
	Vote:                     "vote",
	VoteReceiveTimeDeviation: "vote_receive_time_deviation",
	VSP:                      "vsp",
	VSPTick:                  "vsp_tick",
	VSPTickBin:               "vsp_tick_bin",
	Youtube:                  "youtube",
}
View Source
var TwitterColumns = struct {
	Date      string
	Handle    string
	Followers string
}{
	Date:      "date",
	Handle:    "handle",
	Followers: "followers",
}
View Source
var TwitterRels = struct {
}{}

TwitterRels is where relationship names are stored.

View Source
var TwitterWhere = struct {
	Date      whereHelpertime_Time
	Handle    whereHelperstring
	Followers whereHelperint
}{
	Date:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	Handle:    whereHelperstring{/* contains filtered or unexported fields */},
	Followers: whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var VSPColumns = struct {
	ID                   string
	Name                 string
	APIEnabled           string
	APIVersionsSupported string
	Network              string
	URL                  string
	Launched             string
}{
	ID:                   "id",
	Name:                 "name",
	APIEnabled:           "api_enabled",
	APIVersionsSupported: "api_versions_supported",
	Network:              "network",
	URL:                  "url",
	Launched:             "launched",
}
View Source
var VSPRels = struct {
	VSPTicks    string
	VSPTickBins string
}{
	VSPTicks:    "VSPTicks",
	VSPTickBins: "VSPTickBins",
}

VSPRels is where relationship names are stored.

View Source
var VSPTickBinColumns = struct {
	VSPID            string
	Bin              string
	Immature         string
	Live             string
	Voted            string
	Missed           string
	PoolFees         string
	ProportionLive   string
	ProportionMissed string
	UserCount        string
	UsersActive      string
	Time             string
}{
	VSPID:            "vsp_id",
	Bin:              "bin",
	Immature:         "immature",
	Live:             "live",
	Voted:            "voted",
	Missed:           "missed",
	PoolFees:         "pool_fees",
	ProportionLive:   "proportion_live",
	ProportionMissed: "proportion_missed",
	UserCount:        "user_count",
	UsersActive:      "users_active",
	Time:             "time",
}
View Source
var VSPTickBinRels = struct {
	VSP string
}{
	VSP: "VSP",
}

VSPTickBinRels is where relationship names are stored.

View Source
var VSPTickBinWhere = struct {
	VSPID            whereHelperint
	Bin              whereHelperstring
	Immature         whereHelpernull_Int
	Live             whereHelpernull_Int
	Voted            whereHelpernull_Int
	Missed           whereHelpernull_Int
	PoolFees         whereHelpernull_Float64
	ProportionLive   whereHelpernull_Float64
	ProportionMissed whereHelpernull_Float64
	UserCount        whereHelpernull_Int
	UsersActive      whereHelpernull_Int
	Time             whereHelperint64
}{
	VSPID:            whereHelperint{/* contains filtered or unexported fields */},
	Bin:              whereHelperstring{/* contains filtered or unexported fields */},
	Immature:         whereHelpernull_Int{/* contains filtered or unexported fields */},
	Live:             whereHelpernull_Int{/* contains filtered or unexported fields */},
	Voted:            whereHelpernull_Int{/* contains filtered or unexported fields */},
	Missed:           whereHelpernull_Int{/* contains filtered or unexported fields */},
	PoolFees:         whereHelpernull_Float64{/* contains filtered or unexported fields */},
	ProportionLive:   whereHelpernull_Float64{/* contains filtered or unexported fields */},
	ProportionMissed: whereHelpernull_Float64{/* contains filtered or unexported fields */},
	UserCount:        whereHelpernull_Int{/* contains filtered or unexported fields */},
	UsersActive:      whereHelpernull_Int{/* contains filtered or unexported fields */},
	Time:             whereHelperint64{/* contains filtered or unexported fields */},
}
View Source
var VSPTickColumns = struct {
	ID               string
	VSPID            string
	Immature         string
	Live             string
	Voted            string
	Missed           string
	PoolFees         string
	ProportionLive   string
	ProportionMissed string
	UserCount        string
	UsersActive      string
	Time             string
}{
	ID:               "id",
	VSPID:            "vsp_id",
	Immature:         "immature",
	Live:             "live",
	Voted:            "voted",
	Missed:           "missed",
	PoolFees:         "pool_fees",
	ProportionLive:   "proportion_live",
	ProportionMissed: "proportion_missed",
	UserCount:        "user_count",
	UsersActive:      "users_active",
	Time:             "time",
}
View Source
var VSPTickRels = struct {
	VSP string
}{
	VSP: "VSP",
}

VSPTickRels is where relationship names are stored.

View Source
var VSPTickWhere = struct {
	ID               whereHelperint
	VSPID            whereHelperint
	Immature         whereHelperint
	Live             whereHelperint
	Voted            whereHelperint
	Missed           whereHelperint
	PoolFees         whereHelperfloat64
	ProportionLive   whereHelperfloat64
	ProportionMissed whereHelperfloat64
	UserCount        whereHelperint
	UsersActive      whereHelperint
	Time             whereHelpertime_Time
}{
	ID:               whereHelperint{/* contains filtered or unexported fields */},
	VSPID:            whereHelperint{/* contains filtered or unexported fields */},
	Immature:         whereHelperint{/* contains filtered or unexported fields */},
	Live:             whereHelperint{/* contains filtered or unexported fields */},
	Voted:            whereHelperint{/* contains filtered or unexported fields */},
	Missed:           whereHelperint{/* contains filtered or unexported fields */},
	PoolFees:         whereHelperfloat64{/* contains filtered or unexported fields */},
	ProportionLive:   whereHelperfloat64{/* contains filtered or unexported fields */},
	ProportionMissed: whereHelperfloat64{/* contains filtered or unexported fields */},
	UserCount:        whereHelperint{/* contains filtered or unexported fields */},
	UsersActive:      whereHelperint{/* contains filtered or unexported fields */},
	Time:             whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var VSPWhere = struct {
	ID                   whereHelperint
	Name                 whereHelpernull_String
	APIEnabled           whereHelpernull_Bool
	APIVersionsSupported whereHelpertypes_Int64Array
	Network              whereHelpernull_String
	URL                  whereHelpernull_String
	Launched             whereHelpernull_Time
}{
	ID:                   whereHelperint{/* contains filtered or unexported fields */},
	Name:                 whereHelpernull_String{/* contains filtered or unexported fields */},
	APIEnabled:           whereHelpernull_Bool{/* contains filtered or unexported fields */},
	APIVersionsSupported: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	Network:              whereHelpernull_String{/* contains filtered or unexported fields */},
	URL:                  whereHelpernull_String{/* contains filtered or unexported fields */},
	Launched:             whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var VoteColumns = struct {
	Hash              string
	VotingOn          string
	BlockHash         string
	ReceiveTime       string
	BlockReceiveTime  string
	TargetedBlockTime string
	ValidatorID       string
	Validity          string
}{
	Hash:              "hash",
	VotingOn:          "voting_on",
	BlockHash:         "block_hash",
	ReceiveTime:       "receive_time",
	BlockReceiveTime:  "block_receive_time",
	TargetedBlockTime: "targeted_block_time",
	ValidatorID:       "validator_id",
	Validity:          "validity",
}
View Source
var VoteReceiveTimeDeviationColumns = struct {
	Bin                   string
	BlockHeight           string
	BlockTime             string
	ReceiveTimeDifference string
}{
	Bin:                   "bin",
	BlockHeight:           "block_height",
	BlockTime:             "block_time",
	ReceiveTimeDifference: "receive_time_difference",
}
View Source
var VoteReceiveTimeDeviationRels = struct {
}{}

VoteReceiveTimeDeviationRels is where relationship names are stored.

View Source
var VoteReceiveTimeDeviationWhere = struct {
	Bin                   whereHelperstring
	BlockHeight           whereHelperint64
	BlockTime             whereHelperint64
	ReceiveTimeDifference whereHelperfloat64
}{
	Bin:                   whereHelperstring{/* contains filtered or unexported fields */},
	BlockHeight:           whereHelperint64{/* contains filtered or unexported fields */},
	BlockTime:             whereHelperint64{/* contains filtered or unexported fields */},
	ReceiveTimeDifference: whereHelperfloat64{/* contains filtered or unexported fields */},
}
View Source
var VoteRels = struct {
}{}

VoteRels is where relationship names are stored.

View Source
var VoteWhere = struct {
	Hash              whereHelperstring
	VotingOn          whereHelpernull_Int64
	BlockHash         whereHelpernull_String
	ReceiveTime       whereHelpernull_Time
	BlockReceiveTime  whereHelpernull_Time
	TargetedBlockTime whereHelpernull_Time
	ValidatorID       whereHelpernull_Int
	Validity          whereHelpernull_String
}{
	Hash:              whereHelperstring{/* contains filtered or unexported fields */},
	VotingOn:          whereHelpernull_Int64{/* contains filtered or unexported fields */},
	BlockHash:         whereHelpernull_String{/* contains filtered or unexported fields */},
	ReceiveTime:       whereHelpernull_Time{/* contains filtered or unexported fields */},
	BlockReceiveTime:  whereHelpernull_Time{/* contains filtered or unexported fields */},
	TargetedBlockTime: whereHelpernull_Time{/* contains filtered or unexported fields */},
	ValidatorID:       whereHelpernull_Int{/* contains filtered or unexported fields */},
	Validity:          whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var YoutubeColumns = struct {
	Date        string
	Subscribers string
	ViewCount   string
	Channel     string
}{
	Date:        "date",
	Subscribers: "subscribers",
	ViewCount:   "view_count",
	Channel:     "channel",
}
View Source
var YoutubeRels = struct {
}{}

YoutubeRels is where relationship names are stored.

View Source
var YoutubeWhere = struct {
	Date        whereHelpertime_Time
	Subscribers whereHelperint
	ViewCount   whereHelperint
	Channel     whereHelperstring
}{
	Date:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	Subscribers: whereHelperint{/* contains filtered or unexported fields */},
	ViewCount:   whereHelperint{/* contains filtered or unexported fields */},
	Channel:     whereHelperstring{/* contains filtered or unexported fields */},
}

Functions

func BlockBinExists

func BlockBinExists(ctx context.Context, exec boil.ContextExecutor, height int64, bin string) (bool, error)

BlockBinExists checks if the BlockBin row exists.

func BlockBins

func BlockBins(mods ...qm.QueryMod) blockBinQuery

BlockBins retrieves all the records using an executor.

func BlockExists

func BlockExists(ctx context.Context, exec boil.ContextExecutor, height int) (bool, error)

BlockExists checks if the Block row exists.

func Blocks

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

Blocks retrieves all the records using an executor.

func ExchangeExists

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

ExchangeExists checks if the Exchange row exists.

func ExchangeTickExists

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

ExchangeTickExists checks if the ExchangeTick row exists.

func ExchangeTicks

func ExchangeTicks(mods ...qm.QueryMod) exchangeTickQuery

ExchangeTicks retrieves all the records using an executor.

func Exchanges

func Exchanges(mods ...qm.QueryMod) exchangeQuery

Exchanges retrieves all the records using an executor.

func GithubExists

func GithubExists(ctx context.Context, exec boil.ContextExecutor, date time.Time) (bool, error)

GithubExists checks if the Github row exists.

func Githubs

func Githubs(mods ...qm.QueryMod) githubQuery

Githubs retrieves all the records using an executor.

func HeartbeatExists

func HeartbeatExists(ctx context.Context, exec boil.ContextExecutor, timestamp int64, nodeID string) (bool, error)

HeartbeatExists checks if the Heartbeat row exists.

func Heartbeats

func Heartbeats(mods ...qm.QueryMod) heartbeatQuery

Heartbeats retrieves all the records using an executor.

func MempoolBinExists

func MempoolBinExists(ctx context.Context, exec boil.ContextExecutor, time int64, bin string) (bool, error)

MempoolBinExists checks if the MempoolBin row exists.

func MempoolBins

func MempoolBins(mods ...qm.QueryMod) mempoolBinQuery

MempoolBins retrieves all the records using an executor.

func MempoolExists

func MempoolExists(ctx context.Context, exec boil.ContextExecutor, time time.Time) (bool, error)

MempoolExists checks if the Mempool row exists.

func Mempools

func Mempools(mods ...qm.QueryMod) mempoolQuery

Mempools retrieves all the records using an executor.

func NetworkSnapshotBinExists

func NetworkSnapshotBinExists(ctx context.Context, exec boil.ContextExecutor, timestamp int64, bin string) (bool, error)

NetworkSnapshotBinExists checks if the NetworkSnapshotBin row exists.

func NetworkSnapshotBins

func NetworkSnapshotBins(mods ...qm.QueryMod) networkSnapshotBinQuery

NetworkSnapshotBins retrieves all the records using an executor.

func NetworkSnapshotExists

func NetworkSnapshotExists(ctx context.Context, exec boil.ContextExecutor, timestamp int64) (bool, error)

NetworkSnapshotExists checks if the NetworkSnapshot row exists.

func NetworkSnapshots

func NetworkSnapshots(mods ...qm.QueryMod) networkSnapshotQuery

NetworkSnapshots retrieves all the records using an executor.

func NewQuery

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

NewQuery initializes a new Query using the passed in QueryMods

func NodeExists

func NodeExists(ctx context.Context, exec boil.ContextExecutor, address string) (bool, error)

NodeExists checks if the Node row exists.

func NodeLocationExists

func NodeLocationExists(ctx context.Context, exec boil.ContextExecutor, timestamp int64, bin string, country string) (bool, error)

NodeLocationExists checks if the NodeLocation row exists.

func NodeLocations

func NodeLocations(mods ...qm.QueryMod) nodeLocationQuery

NodeLocations retrieves all the records using an executor.

func NodeVersionExists

func NodeVersionExists(ctx context.Context, exec boil.ContextExecutor, timestamp int64, bin string, userAgent string) (bool, error)

NodeVersionExists checks if the NodeVersion row exists.

func NodeVersions

func NodeVersions(mods ...qm.QueryMod) nodeVersionQuery

NodeVersions retrieves all the records using an executor.

func Nodes

func Nodes(mods ...qm.QueryMod) nodeQuery

Nodes retrieves all the records using an executor.

func PowBinExists

func PowBinExists(ctx context.Context, exec boil.ContextExecutor, time int64, source string, bin string) (bool, error)

PowBinExists checks if the PowBin row exists.

func PowBins

func PowBins(mods ...qm.QueryMod) powBinQuery

PowBins retrieves all the records using an executor.

func PowData

func PowData(mods ...qm.QueryMod) powDatumQuery

PowData retrieves all the records using an executor.

func PowDatumExists

func PowDatumExists(ctx context.Context, exec boil.ContextExecutor, time int, source string) (bool, error)

PowDatumExists checks if the PowDatum row exists.

func PropagationExists

func PropagationExists(ctx context.Context, exec boil.ContextExecutor, height int64, source string, bin string) (bool, error)

PropagationExists checks if the Propagation row exists.

func Propagations

func Propagations(mods ...qm.QueryMod) propagationQuery

Propagations retrieves all the records using an executor.

func RedditExists

func RedditExists(ctx context.Context, exec boil.ContextExecutor, date time.Time) (bool, error)

RedditExists checks if the Reddit row exists.

func Reddits

func Reddits(mods ...qm.QueryMod) redditQuery

Reddits retrieves all the records using an executor.

func TwitterExists

func TwitterExists(ctx context.Context, exec boil.ContextExecutor, date time.Time) (bool, error)

TwitterExists checks if the Twitter row exists.

func Twitters

func Twitters(mods ...qm.QueryMod) twitterQuery

Twitters retrieves all the records using an executor.

func VSPExists

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

VSPExists checks if the VSP row exists.

func VSPS

func VSPS(mods ...qm.QueryMod) vspQuery

VSPS retrieves all the records using an executor.

func VSPTickBinExists

func VSPTickBinExists(ctx context.Context, exec boil.ContextExecutor, vSPID int, time int64, bin string) (bool, error)

VSPTickBinExists checks if the VSPTickBin row exists.

func VSPTickBins

func VSPTickBins(mods ...qm.QueryMod) vspTickBinQuery

VSPTickBins retrieves all the records using an executor.

func VSPTickExists

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

VSPTickExists checks if the VSPTick row exists.

func VSPTicks

func VSPTicks(mods ...qm.QueryMod) vspTickQuery

VSPTicks retrieves all the records using an executor.

func VoteExists

func VoteExists(ctx context.Context, exec boil.ContextExecutor, hash string) (bool, error)

VoteExists checks if the Vote row exists.

func VoteReceiveTimeDeviationExists

func VoteReceiveTimeDeviationExists(ctx context.Context, exec boil.ContextExecutor, blockTime int64, bin string) (bool, error)

VoteReceiveTimeDeviationExists checks if the VoteReceiveTimeDeviation row exists.

func VoteReceiveTimeDeviations

func VoteReceiveTimeDeviations(mods ...qm.QueryMod) voteReceiveTimeDeviationQuery

VoteReceiveTimeDeviations retrieves all the records using an executor.

func Votes

func Votes(mods ...qm.QueryMod) voteQuery

Votes retrieves all the records using an executor.

func YoutubeExists

func YoutubeExists(ctx context.Context, exec boil.ContextExecutor, date time.Time) (bool, error)

YoutubeExists checks if the Youtube row exists.

func Youtubes

func Youtubes(mods ...qm.QueryMod) youtubeQuery

Youtubes retrieves all the records using an executor.

Types

type Block

type Block struct {
	Height            int         `boil:"height" json:"height" toml:"height" yaml:"height"`
	ReceiveTime       null.Time   `boil:"receive_time" json:"receive_time,omitempty" toml:"receive_time" yaml:"receive_time,omitempty"`
	InternalTimestamp null.Time   `boil:"internal_timestamp" json:"internal_timestamp,omitempty" toml:"internal_timestamp" yaml:"internal_timestamp,omitempty"`
	Hash              null.String `boil:"hash" json:"hash,omitempty" toml:"hash" yaml:"hash,omitempty"`

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

Block is an object representing the database table.

func FindBlock

func FindBlock(ctx context.Context, exec boil.ContextExecutor, height int, selectCols ...string) (*Block, error)

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

func (*Block) Delete

func (o *Block) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, 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) Insert

func (o *Block) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Block) Reload

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

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

func (*Block) Update

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

Update uses an executor to update the Block. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Block) Upsert

func (o *Block) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type BlockBin

type BlockBin struct {
	Height            int64   `boil:"height" json:"height" toml:"height" yaml:"height"`
	ReceiveTimeDiff   float64 `boil:"receive_time_diff" json:"receive_time_diff" toml:"receive_time_diff" yaml:"receive_time_diff"`
	InternalTimestamp int64   `boil:"internal_timestamp" json:"internal_timestamp" toml:"internal_timestamp" yaml:"internal_timestamp"`
	Bin               string  `boil:"bin" json:"bin" toml:"bin" yaml:"bin"`

	R *blockBinR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L blockBinL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

BlockBin is an object representing the database table.

func FindBlockBin

func FindBlockBin(ctx context.Context, exec boil.ContextExecutor, height int64, bin string, selectCols ...string) (*BlockBin, error)

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

func (*BlockBin) Delete

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

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

func (*BlockBin) Insert

func (o *BlockBin) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*BlockBin) Reload

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

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

func (*BlockBin) Update

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

Update uses an executor to update the BlockBin. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*BlockBin) Upsert

func (o *BlockBin) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type BlockBinSlice

type BlockBinSlice []*BlockBin

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

func (BlockBinSlice) DeleteAll

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

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

func (*BlockBinSlice) ReloadAll

func (o *BlockBinSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (BlockBinSlice) UpdateAll

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

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

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(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*BlockSlice) ReloadAll

func (o *BlockSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (BlockSlice) UpdateAll

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

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

type Exchange

type Exchange struct {
	ID   int    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
	URL  string `boil:"url" json:"url" toml:"url" yaml:"url"`

	R *exchangeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L exchangeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Exchange is an object representing the database table.

func FindExchange

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

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

func (*Exchange) AddExchangeTicks

func (o *Exchange) AddExchangeTicks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ExchangeTick) error

AddExchangeTicks adds the given related objects to the existing relationships of the exchange, optionally inserting them as new records. Appends related to o.R.ExchangeTicks. Sets related.R.Exchange appropriately.

func (*Exchange) Delete

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

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

func (*Exchange) ExchangeTicks

func (o *Exchange) ExchangeTicks(mods ...qm.QueryMod) exchangeTickQuery

ExchangeTicks retrieves all the exchange_tick's ExchangeTicks with an executor.

func (*Exchange) Insert

func (o *Exchange) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Exchange) Reload

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

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

func (*Exchange) Update

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

Update uses an executor to update the Exchange. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Exchange) Upsert

func (o *Exchange) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ExchangeSlice

type ExchangeSlice []*Exchange

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

func (ExchangeSlice) DeleteAll

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

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

func (*ExchangeSlice) ReloadAll

func (o *ExchangeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (ExchangeSlice) UpdateAll

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

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

type ExchangeTick

type ExchangeTick struct {
	ID           int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	ExchangeID   int       `boil:"exchange_id" json:"exchange_id" toml:"exchange_id" yaml:"exchange_id"`
	Interval     int       `boil:"interval" json:"interval" toml:"interval" yaml:"interval"`
	High         float64   `boil:"high" json:"high" toml:"high" yaml:"high"`
	Low          float64   `boil:"low" json:"low" toml:"low" yaml:"low"`
	Open         float64   `boil:"open" json:"open" toml:"open" yaml:"open"`
	Close        float64   `boil:"close" json:"close" toml:"close" yaml:"close"`
	Volume       float64   `boil:"volume" json:"volume" toml:"volume" yaml:"volume"`
	CurrencyPair string    `boil:"currency_pair" json:"currency_pair" toml:"currency_pair" yaml:"currency_pair"`
	Time         time.Time `boil:"time" json:"time" toml:"time" yaml:"time"`

	R *exchangeTickR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L exchangeTickL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ExchangeTick is an object representing the database table.

func FindExchangeTick

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

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

func (*ExchangeTick) Delete

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

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

func (*ExchangeTick) Exchange

func (o *ExchangeTick) Exchange(mods ...qm.QueryMod) exchangeQuery

Exchange pointed to by the foreign key.

func (*ExchangeTick) Insert

func (o *ExchangeTick) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*ExchangeTick) Reload

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

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

func (*ExchangeTick) SetExchange

func (o *ExchangeTick) SetExchange(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Exchange) error

SetExchange of the exchangeTick to the related item. Sets o.R.Exchange to related. Adds o to related.R.ExchangeTicks.

func (*ExchangeTick) Update

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

Update uses an executor to update the ExchangeTick. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ExchangeTick) Upsert

func (o *ExchangeTick) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ExchangeTickSlice

type ExchangeTickSlice []*ExchangeTick

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

func (ExchangeTickSlice) DeleteAll

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

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

func (*ExchangeTickSlice) ReloadAll

func (o *ExchangeTickSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (ExchangeTickSlice) UpdateAll

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

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

type Github

type Github struct {
	Date       time.Time `boil:"date" json:"date" toml:"date" yaml:"date"`
	Repository string    `boil:"repository" json:"repository" toml:"repository" yaml:"repository"`
	Stars      int       `boil:"stars" json:"stars" toml:"stars" yaml:"stars"`
	Folks      int       `boil:"folks" json:"folks" toml:"folks" yaml:"folks"`

	R *githubR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L githubL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Github is an object representing the database table.

func FindGithub

func FindGithub(ctx context.Context, exec boil.ContextExecutor, date time.Time, selectCols ...string) (*Github, error)

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

func (*Github) Delete

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

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

func (*Github) Insert

func (o *Github) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Github) Reload

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

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

func (*Github) Update

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

Update uses an executor to update the Github. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Github) Upsert

func (o *Github) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type GithubSlice

type GithubSlice []*Github

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

func (GithubSlice) DeleteAll

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

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

func (*GithubSlice) ReloadAll

func (o *GithubSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (GithubSlice) UpdateAll

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

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

type Heartbeat

type Heartbeat struct {
	Timestamp     int64  `boil:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
	NodeID        string `boil:"node_id" json:"node_id" toml:"node_id" yaml:"node_id"`
	LastSeen      int64  `boil:"last_seen" json:"last_seen" toml:"last_seen" yaml:"last_seen"`
	Latency       int    `boil:"latency" json:"latency" toml:"latency" yaml:"latency"`
	CurrentHeight int64  `boil:"current_height" json:"current_height" toml:"current_height" yaml:"current_height"`

	R *heartbeatR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L heartbeatL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Heartbeat is an object representing the database table.

func FindHeartbeat

func FindHeartbeat(ctx context.Context, exec boil.ContextExecutor, timestamp int64, nodeID string, selectCols ...string) (*Heartbeat, error)

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

func (*Heartbeat) Delete

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

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

func (*Heartbeat) Insert

func (o *Heartbeat) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Heartbeat) Node

func (o *Heartbeat) Node(mods ...qm.QueryMod) nodeQuery

Node pointed to by the foreign key.

func (*Heartbeat) Reload

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

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

func (*Heartbeat) SetNode

func (o *Heartbeat) SetNode(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Node) error

SetNode of the heartbeat to the related item. Sets o.R.Node to related. Adds o to related.R.Heartbeats.

func (*Heartbeat) Update

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

Update uses an executor to update the Heartbeat. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Heartbeat) Upsert

func (o *Heartbeat) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type HeartbeatSlice

type HeartbeatSlice []*Heartbeat

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

func (HeartbeatSlice) DeleteAll

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

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

func (*HeartbeatSlice) ReloadAll

func (o *HeartbeatSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (HeartbeatSlice) UpdateAll

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

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

type M

type M map[string]interface{}

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

type Mempool

type Mempool struct {
	Time                 time.Time    `boil:"time" json:"time" toml:"time" yaml:"time"`
	FirstSeenTime        null.Time    `boil:"first_seen_time" json:"first_seen_time,omitempty" toml:"first_seen_time" yaml:"first_seen_time,omitempty"`
	NumberOfTransactions null.Int     `` /* 139-byte string literal not displayed */
	Voters               null.Int     `boil:"voters" json:"voters,omitempty" toml:"voters" yaml:"voters,omitempty"`
	Tickets              null.Int     `boil:"tickets" json:"tickets,omitempty" toml:"tickets" yaml:"tickets,omitempty"`
	Revocations          null.Int     `boil:"revocations" json:"revocations,omitempty" toml:"revocations" yaml:"revocations,omitempty"`
	Size                 null.Int     `boil:"size" json:"size,omitempty" toml:"size" yaml:"size,omitempty"`
	TotalFee             null.Float64 `boil:"total_fee" json:"total_fee,omitempty" toml:"total_fee" yaml:"total_fee,omitempty"`
	Total                null.Float64 `boil:"total" json:"total,omitempty" toml:"total" yaml:"total,omitempty"`

	R *mempoolR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L mempoolL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Mempool is an object representing the database table.

func FindMempool

func FindMempool(ctx context.Context, exec boil.ContextExecutor, time time.Time, selectCols ...string) (*Mempool, error)

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

func (*Mempool) Delete

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

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

func (*Mempool) Insert

func (o *Mempool) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Mempool) Reload

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

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

func (*Mempool) Update

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

Update uses an executor to update the Mempool. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Mempool) Upsert

func (o *Mempool) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type MempoolBin

type MempoolBin struct {
	Time                 int64        `boil:"time" json:"time" toml:"time" yaml:"time"`
	Bin                  string       `boil:"bin" json:"bin" toml:"bin" yaml:"bin"`
	NumberOfTransactions null.Int     `` /* 139-byte string literal not displayed */
	Size                 null.Int     `boil:"size" json:"size,omitempty" toml:"size" yaml:"size,omitempty"`
	TotalFee             null.Float64 `boil:"total_fee" json:"total_fee,omitempty" toml:"total_fee" yaml:"total_fee,omitempty"`

	R *mempoolBinR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L mempoolBinL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MempoolBin is an object representing the database table.

func FindMempoolBin

func FindMempoolBin(ctx context.Context, exec boil.ContextExecutor, time int64, bin string, selectCols ...string) (*MempoolBin, error)

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

func (*MempoolBin) Delete

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

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

func (*MempoolBin) Insert

func (o *MempoolBin) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*MempoolBin) Reload

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

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

func (*MempoolBin) Update

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

Update uses an executor to update the MempoolBin. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*MempoolBin) Upsert

func (o *MempoolBin) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type MempoolBinSlice

type MempoolBinSlice []*MempoolBin

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

func (MempoolBinSlice) DeleteAll

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

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

func (*MempoolBinSlice) ReloadAll

func (o *MempoolBinSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (MempoolBinSlice) UpdateAll

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

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

type MempoolSlice

type MempoolSlice []*Mempool

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

func (MempoolSlice) DeleteAll

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

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

func (*MempoolSlice) ReloadAll

func (o *MempoolSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (MempoolSlice) UpdateAll

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

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

type NetworkSnapshot

type NetworkSnapshot struct {
	Timestamp           int64  `boil:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
	Height              int64  `boil:"height" json:"height" toml:"height" yaml:"height"`
	NodeCount           int    `boil:"node_count" json:"node_count" toml:"node_count" yaml:"node_count"`
	ReachableNodes      int    `boil:"reachable_nodes" json:"reachable_nodes" toml:"reachable_nodes" yaml:"reachable_nodes"`
	OldestNode          string `boil:"oldest_node" json:"oldest_node" toml:"oldest_node" yaml:"oldest_node"`
	OldestNodeTimestamp int64  `boil:"oldest_node_timestamp" json:"oldest_node_timestamp" toml:"oldest_node_timestamp" yaml:"oldest_node_timestamp"`
	Latency             int    `boil:"latency" json:"latency" toml:"latency" yaml:"latency"`

	R *networkSnapshotR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L networkSnapshotL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

NetworkSnapshot is an object representing the database table.

func FindNetworkSnapshot

func FindNetworkSnapshot(ctx context.Context, exec boil.ContextExecutor, timestamp int64, selectCols ...string) (*NetworkSnapshot, error)

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

func (*NetworkSnapshot) Delete

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

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

func (*NetworkSnapshot) Insert

func (o *NetworkSnapshot) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*NetworkSnapshot) Reload

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

func (*NetworkSnapshot) Update

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

Update uses an executor to update the NetworkSnapshot. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*NetworkSnapshot) Upsert

func (o *NetworkSnapshot) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type NetworkSnapshotBin

type NetworkSnapshotBin struct {
	Timestamp      int64  `boil:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
	Height         int64  `boil:"height" json:"height" toml:"height" yaml:"height"`
	NodeCount      int    `boil:"node_count" json:"node_count" toml:"node_count" yaml:"node_count"`
	ReachableNodes int    `boil:"reachable_nodes" json:"reachable_nodes" toml:"reachable_nodes" yaml:"reachable_nodes"`
	Bin            string `boil:"bin" json:"bin" toml:"bin" yaml:"bin"`

	R *networkSnapshotBinR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L networkSnapshotBinL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

NetworkSnapshotBin is an object representing the database table.

func FindNetworkSnapshotBin

func FindNetworkSnapshotBin(ctx context.Context, exec boil.ContextExecutor, timestamp int64, bin string, selectCols ...string) (*NetworkSnapshotBin, error)

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

func (*NetworkSnapshotBin) Delete

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

func (*NetworkSnapshotBin) Insert

func (o *NetworkSnapshotBin) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*NetworkSnapshotBin) Reload

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

func (*NetworkSnapshotBin) Update

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

Update uses an executor to update the NetworkSnapshotBin. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*NetworkSnapshotBin) Upsert

func (o *NetworkSnapshotBin) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type NetworkSnapshotBinSlice

type NetworkSnapshotBinSlice []*NetworkSnapshotBin

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

func (NetworkSnapshotBinSlice) DeleteAll

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

func (*NetworkSnapshotBinSlice) ReloadAll

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

func (NetworkSnapshotBinSlice) UpdateAll

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

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

type NetworkSnapshotSlice

type NetworkSnapshotSlice []*NetworkSnapshot

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

func (NetworkSnapshotSlice) DeleteAll

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

func (*NetworkSnapshotSlice) ReloadAll

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

func (NetworkSnapshotSlice) UpdateAll

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

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

type Node

type Node struct {
	Address         string `boil:"address" json:"address" toml:"address" yaml:"address"`
	IPVersion       int    `boil:"ip_version" json:"ip_version" toml:"ip_version" yaml:"ip_version"`
	Country         string `boil:"country" json:"country" toml:"country" yaml:"country"`
	Region          string `boil:"region" json:"region" toml:"region" yaml:"region"`
	City            string `boil:"city" json:"city" toml:"city" yaml:"city"`
	Zip             string `boil:"zip" json:"zip" toml:"zip" yaml:"zip"`
	LastAttempt     int64  `boil:"last_attempt" json:"last_attempt" toml:"last_attempt" yaml:"last_attempt"`
	LastSeen        int64  `boil:"last_seen" json:"last_seen" toml:"last_seen" yaml:"last_seen"`
	LastSuccess     int64  `boil:"last_success" json:"last_success" toml:"last_success" yaml:"last_success"`
	FailureCount    int    `boil:"failure_count" json:"failure_count" toml:"failure_count" yaml:"failure_count"`
	IsDead          bool   `boil:"is_dead" json:"is_dead" toml:"is_dead" yaml:"is_dead"`
	ConnectionTime  int64  `boil:"connection_time" json:"connection_time" toml:"connection_time" yaml:"connection_time"`
	ProtocolVersion int    `boil:"protocol_version" json:"protocol_version" toml:"protocol_version" yaml:"protocol_version"`
	UserAgent       string `boil:"user_agent" json:"user_agent" toml:"user_agent" yaml:"user_agent"`
	Services        string `boil:"services" json:"services" toml:"services" yaml:"services"`
	StartingHeight  int64  `boil:"starting_height" json:"starting_height" toml:"starting_height" yaml:"starting_height"`
	CurrentHeight   int64  `boil:"current_height" json:"current_height" toml:"current_height" yaml:"current_height"`

	R *nodeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L nodeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Node is an object representing the database table.

func FindNode

func FindNode(ctx context.Context, exec boil.ContextExecutor, address string, selectCols ...string) (*Node, error)

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

func (*Node) AddHeartbeats

func (o *Node) AddHeartbeats(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Heartbeat) error

AddHeartbeats adds the given related objects to the existing relationships of the node, optionally inserting them as new records. Appends related to o.R.Heartbeats. Sets related.R.Node appropriately.

func (*Node) Delete

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

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

func (*Node) Heartbeats

func (o *Node) Heartbeats(mods ...qm.QueryMod) heartbeatQuery

Heartbeats retrieves all the heartbeat's Heartbeats with an executor.

func (*Node) Insert

func (o *Node) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Node) Reload

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

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

func (*Node) Update

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

Update uses an executor to update the Node. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Node) Upsert

func (o *Node) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type NodeLocation

type NodeLocation struct {
	Timestamp int64  `boil:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
	Height    int64  `boil:"height" json:"height" toml:"height" yaml:"height"`
	NodeCount int    `boil:"node_count" json:"node_count" toml:"node_count" yaml:"node_count"`
	Country   string `boil:"country" json:"country" toml:"country" yaml:"country"`
	Bin       string `boil:"bin" json:"bin" toml:"bin" yaml:"bin"`

	R *nodeLocationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L nodeLocationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

NodeLocation is an object representing the database table.

func FindNodeLocation

func FindNodeLocation(ctx context.Context, exec boil.ContextExecutor, timestamp int64, bin string, country string, selectCols ...string) (*NodeLocation, error)

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

func (*NodeLocation) Delete

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

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

func (*NodeLocation) Insert

func (o *NodeLocation) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*NodeLocation) Reload

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

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

func (*NodeLocation) Update

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

Update uses an executor to update the NodeLocation. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*NodeLocation) Upsert

func (o *NodeLocation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type NodeLocationSlice

type NodeLocationSlice []*NodeLocation

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

func (NodeLocationSlice) DeleteAll

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

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

func (*NodeLocationSlice) ReloadAll

func (o *NodeLocationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (NodeLocationSlice) UpdateAll

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

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

type NodeSlice

type NodeSlice []*Node

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

func (NodeSlice) DeleteAll

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

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

func (*NodeSlice) ReloadAll

func (o *NodeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (NodeSlice) UpdateAll

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

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

type NodeVersion

type NodeVersion struct {
	Timestamp int64  `boil:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
	Height    int64  `boil:"height" json:"height" toml:"height" yaml:"height"`
	NodeCount int    `boil:"node_count" json:"node_count" toml:"node_count" yaml:"node_count"`
	UserAgent string `boil:"user_agent" json:"user_agent" toml:"user_agent" yaml:"user_agent"`
	Bin       string `boil:"bin" json:"bin" toml:"bin" yaml:"bin"`

	R *nodeVersionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L nodeVersionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

NodeVersion is an object representing the database table.

func FindNodeVersion

func FindNodeVersion(ctx context.Context, exec boil.ContextExecutor, timestamp int64, bin string, userAgent string, selectCols ...string) (*NodeVersion, error)

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

func (*NodeVersion) Delete

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

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

func (*NodeVersion) Insert

func (o *NodeVersion) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*NodeVersion) Reload

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

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

func (*NodeVersion) Update

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

Update uses an executor to update the NodeVersion. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*NodeVersion) Upsert

func (o *NodeVersion) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type NodeVersionSlice

type NodeVersionSlice []*NodeVersion

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

func (NodeVersionSlice) DeleteAll

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

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

func (*NodeVersionSlice) ReloadAll

func (o *NodeVersionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (NodeVersionSlice) UpdateAll

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

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

type PowBin

type PowBin struct {
	Time         int64       `boil:"time" json:"time" toml:"time" yaml:"time"`
	PoolHashrate null.String `boil:"pool_hashrate" json:"pool_hashrate,omitempty" toml:"pool_hashrate" yaml:"pool_hashrate,omitempty"`
	Workers      null.Int    `boil:"workers" json:"workers,omitempty" toml:"workers" yaml:"workers,omitempty"`
	Bin          string      `boil:"bin" json:"bin" toml:"bin" yaml:"bin"`
	Source       string      `boil:"source" json:"source" toml:"source" yaml:"source"`

	R *powBinR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L powBinL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PowBin is an object representing the database table.

func FindPowBin

func FindPowBin(ctx context.Context, exec boil.ContextExecutor, time int64, source string, bin string, selectCols ...string) (*PowBin, error)

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

func (*PowBin) Delete

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

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

func (*PowBin) Insert

func (o *PowBin) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*PowBin) Reload

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

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

func (*PowBin) Update

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

Update uses an executor to update the PowBin. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*PowBin) Upsert

func (o *PowBin) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type PowBinSlice

type PowBinSlice []*PowBin

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

func (PowBinSlice) DeleteAll

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

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

func (*PowBinSlice) ReloadAll

func (o *PowBinSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (PowBinSlice) UpdateAll

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

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

type PowDatum

type PowDatum struct {
	Time         int         `boil:"time" json:"time" toml:"time" yaml:"time"`
	PoolHashrate null.String `boil:"pool_hashrate" json:"pool_hashrate,omitempty" toml:"pool_hashrate" yaml:"pool_hashrate,omitempty"`
	Workers      null.Int    `boil:"workers" json:"workers,omitempty" toml:"workers" yaml:"workers,omitempty"`
	CoinPrice    null.String `boil:"coin_price" json:"coin_price,omitempty" toml:"coin_price" yaml:"coin_price,omitempty"`
	BTCPrice     null.String `boil:"btc_price" json:"btc_price,omitempty" toml:"btc_price" yaml:"btc_price,omitempty"`
	Source       string      `boil:"source" json:"source" toml:"source" yaml:"source"`

	R *powDatumR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L powDatumL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PowDatum is an object representing the database table.

func FindPowDatum

func FindPowDatum(ctx context.Context, exec boil.ContextExecutor, time int, source string, selectCols ...string) (*PowDatum, error)

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

func (*PowDatum) Delete

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

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

func (*PowDatum) Insert

func (o *PowDatum) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*PowDatum) Reload

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

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

func (*PowDatum) Update

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

Update uses an executor to update the PowDatum. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*PowDatum) Upsert

func (o *PowDatum) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type PowDatumSlice

type PowDatumSlice []*PowDatum

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

func (PowDatumSlice) DeleteAll

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

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

func (*PowDatumSlice) ReloadAll

func (o *PowDatumSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (PowDatumSlice) UpdateAll

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

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

type Propagation

type Propagation struct {
	Height    int64   `boil:"height" json:"height" toml:"height" yaml:"height"`
	Time      int64   `boil:"time" json:"time" toml:"time" yaml:"time"`
	Bin       string  `boil:"bin" json:"bin" toml:"bin" yaml:"bin"`
	Source    string  `boil:"source" json:"source" toml:"source" yaml:"source"`
	Deviation float64 `boil:"deviation" json:"deviation" toml:"deviation" yaml:"deviation"`

	R *propagationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L propagationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Propagation is an object representing the database table.

func FindPropagation

func FindPropagation(ctx context.Context, exec boil.ContextExecutor, height int64, source string, bin string, selectCols ...string) (*Propagation, error)

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

func (*Propagation) Delete

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

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

func (*Propagation) Insert

func (o *Propagation) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Propagation) Reload

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

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

func (*Propagation) Update

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

Update uses an executor to update the Propagation. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Propagation) Upsert

func (o *Propagation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type PropagationSlice

type PropagationSlice []*Propagation

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

func (PropagationSlice) DeleteAll

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

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

func (*PropagationSlice) ReloadAll

func (o *PropagationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (PropagationSlice) UpdateAll

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

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

type Reddit

type Reddit struct {
	Date           time.Time `boil:"date" json:"date" toml:"date" yaml:"date"`
	Subreddit      string    `boil:"subreddit" json:"subreddit" toml:"subreddit" yaml:"subreddit"`
	Subscribers    int       `boil:"subscribers" json:"subscribers" toml:"subscribers" yaml:"subscribers"`
	ActiveAccounts int       `boil:"active_accounts" json:"active_accounts" toml:"active_accounts" yaml:"active_accounts"`

	R *redditR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L redditL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Reddit is an object representing the database table.

func FindReddit

func FindReddit(ctx context.Context, exec boil.ContextExecutor, date time.Time, selectCols ...string) (*Reddit, error)

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

func (*Reddit) Delete

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

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

func (*Reddit) Insert

func (o *Reddit) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Reddit) Reload

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

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

func (*Reddit) Update

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

Update uses an executor to update the Reddit. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Reddit) Upsert

func (o *Reddit) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type RedditSlice

type RedditSlice []*Reddit

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

func (RedditSlice) DeleteAll

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

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

func (*RedditSlice) ReloadAll

func (o *RedditSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (RedditSlice) UpdateAll

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

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

type Twitter

type Twitter struct {
	Date      time.Time `boil:"date" json:"date" toml:"date" yaml:"date"`
	Handle    string    `boil:"handle" json:"handle" toml:"handle" yaml:"handle"`
	Followers int       `boil:"followers" json:"followers" toml:"followers" yaml:"followers"`

	R *twitterR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L twitterL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Twitter is an object representing the database table.

func FindTwitter

func FindTwitter(ctx context.Context, exec boil.ContextExecutor, date time.Time, selectCols ...string) (*Twitter, error)

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

func (*Twitter) Delete

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

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

func (*Twitter) Insert

func (o *Twitter) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Twitter) Reload

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

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

func (*Twitter) Update

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

Update uses an executor to update the Twitter. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Twitter) Upsert

func (o *Twitter) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type TwitterSlice

type TwitterSlice []*Twitter

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

func (TwitterSlice) DeleteAll

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

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

func (*TwitterSlice) ReloadAll

func (o *TwitterSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (TwitterSlice) UpdateAll

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

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

type VSP

type VSP struct {
	ID                   int              `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name                 null.String      `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`
	APIEnabled           null.Bool        `boil:"api_enabled" json:"api_enabled,omitempty" toml:"api_enabled" yaml:"api_enabled,omitempty"`
	APIVersionsSupported types.Int64Array `` /* 139-byte string literal not displayed */
	Network              null.String      `boil:"network" json:"network,omitempty" toml:"network" yaml:"network,omitempty"`
	URL                  null.String      `boil:"url" json:"url,omitempty" toml:"url" yaml:"url,omitempty"`
	Launched             null.Time        `boil:"launched" json:"launched,omitempty" toml:"launched" yaml:"launched,omitempty"`

	R *vspR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L vspL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

VSP is an object representing the database table.

func FindVSP

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

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

func (*VSP) AddVSPTickBins

func (o *VSP) AddVSPTickBins(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*VSPTickBin) error

AddVSPTickBins adds the given related objects to the existing relationships of the vsp, optionally inserting them as new records. Appends related to o.R.VSPTickBins. Sets related.R.VSP appropriately.

func (*VSP) AddVSPTicks

func (o *VSP) AddVSPTicks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*VSPTick) error

AddVSPTicks adds the given related objects to the existing relationships of the vsp, optionally inserting them as new records. Appends related to o.R.VSPTicks. Sets related.R.VSP appropriately.

func (*VSP) Delete

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

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

func (*VSP) Insert

func (o *VSP) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*VSP) Reload

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

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

func (*VSP) Update

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

Update uses an executor to update the VSP. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*VSP) Upsert

func (o *VSP) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*VSP) VSPTickBins

func (o *VSP) VSPTickBins(mods ...qm.QueryMod) vspTickBinQuery

VSPTickBins retrieves all the vsp_tick_bin's VSPTickBins with an executor.

func (*VSP) VSPTicks

func (o *VSP) VSPTicks(mods ...qm.QueryMod) vspTickQuery

VSPTicks retrieves all the vsp_tick's VSPTicks with an executor.

type VSPSlice

type VSPSlice []*VSP

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

func (VSPSlice) DeleteAll

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

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

func (*VSPSlice) ReloadAll

func (o *VSPSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (VSPSlice) UpdateAll

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

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

type VSPTick

type VSPTick struct {
	ID               int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	VSPID            int       `boil:"vsp_id" json:"vsp_id" toml:"vsp_id" yaml:"vsp_id"`
	Immature         int       `boil:"immature" json:"immature" toml:"immature" yaml:"immature"`
	Live             int       `boil:"live" json:"live" toml:"live" yaml:"live"`
	Voted            int       `boil:"voted" json:"voted" toml:"voted" yaml:"voted"`
	Missed           int       `boil:"missed" json:"missed" toml:"missed" yaml:"missed"`
	PoolFees         float64   `boil:"pool_fees" json:"pool_fees" toml:"pool_fees" yaml:"pool_fees"`
	ProportionLive   float64   `boil:"proportion_live" json:"proportion_live" toml:"proportion_live" yaml:"proportion_live"`
	ProportionMissed float64   `boil:"proportion_missed" json:"proportion_missed" toml:"proportion_missed" yaml:"proportion_missed"`
	UserCount        int       `boil:"user_count" json:"user_count" toml:"user_count" yaml:"user_count"`
	UsersActive      int       `boil:"users_active" json:"users_active" toml:"users_active" yaml:"users_active"`
	Time             time.Time `boil:"time" json:"time" toml:"time" yaml:"time"`

	R *vspTickR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L vspTickL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

VSPTick is an object representing the database table.

func FindVSPTick

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

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

func (*VSPTick) Delete

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

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

func (*VSPTick) Insert

func (o *VSPTick) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*VSPTick) Reload

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

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

func (*VSPTick) SetVSP

func (o *VSPTick) SetVSP(ctx context.Context, exec boil.ContextExecutor, insert bool, related *VSP) error

SetVSP of the vspTick to the related item. Sets o.R.VSP to related. Adds o to related.R.VSPTicks.

func (*VSPTick) Update

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

Update uses an executor to update the VSPTick. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*VSPTick) Upsert

func (o *VSPTick) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*VSPTick) VSP

func (o *VSPTick) VSP(mods ...qm.QueryMod) vspQuery

VSP pointed to by the foreign key.

type VSPTickBin

type VSPTickBin struct {
	VSPID            int          `boil:"vsp_id" json:"vsp_id" toml:"vsp_id" yaml:"vsp_id"`
	Bin              string       `boil:"bin" json:"bin" toml:"bin" yaml:"bin"`
	Immature         null.Int     `boil:"immature" json:"immature,omitempty" toml:"immature" yaml:"immature,omitempty"`
	Live             null.Int     `boil:"live" json:"live,omitempty" toml:"live" yaml:"live,omitempty"`
	Voted            null.Int     `boil:"voted" json:"voted,omitempty" toml:"voted" yaml:"voted,omitempty"`
	Missed           null.Int     `boil:"missed" json:"missed,omitempty" toml:"missed" yaml:"missed,omitempty"`
	PoolFees         null.Float64 `boil:"pool_fees" json:"pool_fees,omitempty" toml:"pool_fees" yaml:"pool_fees,omitempty"`
	ProportionLive   null.Float64 `boil:"proportion_live" json:"proportion_live,omitempty" toml:"proportion_live" yaml:"proportion_live,omitempty"`
	ProportionMissed null.Float64 `boil:"proportion_missed" json:"proportion_missed,omitempty" toml:"proportion_missed" yaml:"proportion_missed,omitempty"`
	UserCount        null.Int     `boil:"user_count" json:"user_count,omitempty" toml:"user_count" yaml:"user_count,omitempty"`
	UsersActive      null.Int     `boil:"users_active" json:"users_active,omitempty" toml:"users_active" yaml:"users_active,omitempty"`
	Time             int64        `boil:"time" json:"time" toml:"time" yaml:"time"`

	R *vspTickBinR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L vspTickBinL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

VSPTickBin is an object representing the database table.

func FindVSPTickBin

func FindVSPTickBin(ctx context.Context, exec boil.ContextExecutor, vSPID int, time int64, bin string, selectCols ...string) (*VSPTickBin, error)

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

func (*VSPTickBin) Delete

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

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

func (*VSPTickBin) Insert

func (o *VSPTickBin) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*VSPTickBin) Reload

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

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

func (*VSPTickBin) SetVSP

func (o *VSPTickBin) SetVSP(ctx context.Context, exec boil.ContextExecutor, insert bool, related *VSP) error

SetVSP of the vspTickBin to the related item. Sets o.R.VSP to related. Adds o to related.R.VSPTickBins.

func (*VSPTickBin) Update

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

Update uses an executor to update the VSPTickBin. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*VSPTickBin) Upsert

func (o *VSPTickBin) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*VSPTickBin) VSP

func (o *VSPTickBin) VSP(mods ...qm.QueryMod) vspQuery

VSP pointed to by the foreign key.

type VSPTickBinSlice

type VSPTickBinSlice []*VSPTickBin

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

func (VSPTickBinSlice) DeleteAll

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

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

func (*VSPTickBinSlice) ReloadAll

func (o *VSPTickBinSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (VSPTickBinSlice) UpdateAll

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

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

type VSPTickSlice

type VSPTickSlice []*VSPTick

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

func (VSPTickSlice) DeleteAll

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

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

func (*VSPTickSlice) ReloadAll

func (o *VSPTickSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (VSPTickSlice) UpdateAll

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

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

type Vote

type Vote struct {
	Hash              string      `boil:"hash" json:"hash" toml:"hash" yaml:"hash"`
	VotingOn          null.Int64  `boil:"voting_on" json:"voting_on,omitempty" toml:"voting_on" yaml:"voting_on,omitempty"`
	BlockHash         null.String `boil:"block_hash" json:"block_hash,omitempty" toml:"block_hash" yaml:"block_hash,omitempty"`
	ReceiveTime       null.Time   `boil:"receive_time" json:"receive_time,omitempty" toml:"receive_time" yaml:"receive_time,omitempty"`
	BlockReceiveTime  null.Time   `boil:"block_receive_time" json:"block_receive_time,omitempty" toml:"block_receive_time" yaml:"block_receive_time,omitempty"`
	TargetedBlockTime null.Time   `` /* 127-byte string literal not displayed */
	ValidatorID       null.Int    `boil:"validator_id" json:"validator_id,omitempty" toml:"validator_id" yaml:"validator_id,omitempty"`
	Validity          null.String `boil:"validity" json:"validity,omitempty" toml:"validity" yaml:"validity,omitempty"`

	R *voteR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L voteL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Vote is an object representing the database table.

func FindVote

func FindVote(ctx context.Context, exec boil.ContextExecutor, hash string, selectCols ...string) (*Vote, error)

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

func (*Vote) Delete

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

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

func (*Vote) Insert

func (o *Vote) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Vote) Reload

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

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

func (*Vote) Update

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

Update uses an executor to update the Vote. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Vote) Upsert

func (o *Vote) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type VoteReceiveTimeDeviation

type VoteReceiveTimeDeviation struct {
	Bin                   string  `boil:"bin" json:"bin" toml:"bin" yaml:"bin"`
	BlockHeight           int64   `boil:"block_height" json:"block_height" toml:"block_height" yaml:"block_height"`
	BlockTime             int64   `boil:"block_time" json:"block_time" toml:"block_time" yaml:"block_time"`
	ReceiveTimeDifference float64 `boil:"receive_time_difference" json:"receive_time_difference" toml:"receive_time_difference" yaml:"receive_time_difference"`

	R *voteReceiveTimeDeviationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L voteReceiveTimeDeviationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

VoteReceiveTimeDeviation is an object representing the database table.

func FindVoteReceiveTimeDeviation

func FindVoteReceiveTimeDeviation(ctx context.Context, exec boil.ContextExecutor, blockTime int64, bin string, selectCols ...string) (*VoteReceiveTimeDeviation, error)

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

func (*VoteReceiveTimeDeviation) Delete

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

func (*VoteReceiveTimeDeviation) Insert

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

func (*VoteReceiveTimeDeviation) Reload

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

func (*VoteReceiveTimeDeviation) Update

Update uses an executor to update the VoteReceiveTimeDeviation. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*VoteReceiveTimeDeviation) Upsert

func (o *VoteReceiveTimeDeviation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type VoteReceiveTimeDeviationSlice

type VoteReceiveTimeDeviationSlice []*VoteReceiveTimeDeviation

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

func (VoteReceiveTimeDeviationSlice) DeleteAll

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

func (*VoteReceiveTimeDeviationSlice) ReloadAll

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

func (VoteReceiveTimeDeviationSlice) UpdateAll

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

type VoteSlice

type VoteSlice []*Vote

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

func (VoteSlice) DeleteAll

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

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

func (*VoteSlice) ReloadAll

func (o *VoteSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (VoteSlice) UpdateAll

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

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

type Youtube

type Youtube struct {
	Date        time.Time `boil:"date" json:"date" toml:"date" yaml:"date"`
	Subscribers int       `boil:"subscribers" json:"subscribers" toml:"subscribers" yaml:"subscribers"`
	ViewCount   int       `boil:"view_count" json:"view_count" toml:"view_count" yaml:"view_count"`
	Channel     string    `boil:"channel" json:"channel" toml:"channel" yaml:"channel"`

	R *youtubeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L youtubeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Youtube is an object representing the database table.

func FindYoutube

func FindYoutube(ctx context.Context, exec boil.ContextExecutor, date time.Time, selectCols ...string) (*Youtube, error)

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

func (*Youtube) Delete

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

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

func (*Youtube) Insert

func (o *Youtube) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Youtube) Reload

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

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

func (*Youtube) Update

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

Update uses an executor to update the Youtube. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Youtube) Upsert

func (o *Youtube) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type YoutubeSlice

type YoutubeSlice []*Youtube

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

func (YoutubeSlice) DeleteAll

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

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

func (*YoutubeSlice) ReloadAll

func (o *YoutubeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (YoutubeSlice) UpdateAll

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL