models

package
v0.0.0-...-05b8940 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: ISC Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 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 NetworkSnapshotColumns = struct {
	Timestamp           string
	Height              string
	NodeCount           string
	ReachableNodes      string
	OldestNodeTimestamp string
	OldestNode          string
	Latency             string
}{
	Timestamp:           "timestamp",
	Height:              "height",
	NodeCount:           "node_count",
	ReachableNodes:      "reachable_nodes",
	OldestNodeTimestamp: "oldest_node_timestamp",
	OldestNode:          "oldest_node",
	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
	OldestNodeTimestamp whereHelperint64
	OldestNode          whereHelperstring
	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 */},
	OldestNodeTimestamp: whereHelperint64{/* contains filtered or unexported fields */},
	OldestNode:          whereHelperstring{/* 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
	IsDead          string
	ConnectionTime  string
	ProtocolVersion string
	UserAgent       string
	Services        string
	StartingHeight  string
	CurrentHeight   string
	FailureCount    string
}{
	Address:         "address",
	IPVersion:       "ip_version",
	Country:         "country",
	Region:          "region",
	City:            "city",
	Zip:             "zip",
	LastAttempt:     "last_attempt",
	LastSeen:        "last_seen",
	LastSuccess:     "last_success",
	IsDead:          "is_dead",
	ConnectionTime:  "connection_time",
	ProtocolVersion: "protocol_version",
	UserAgent:       "user_agent",
	Services:        "services",
	StartingHeight:  "starting_height",
	CurrentHeight:   "current_height",
	FailureCount:    "failure_count",
}
View Source
var NodeRels = struct {
	Heartbeats string
}{
	Heartbeats: "Heartbeats",
}

NodeRels is where relationship names are stored.

View Source
var NodeWhere = struct {
	Address         whereHelperstring
	IPVersion       whereHelperint
	Country         whereHelperstring
	Region          whereHelperstring
	City            whereHelperstring
	Zip             whereHelperstring
	LastAttempt     whereHelperint64
	LastSeen        whereHelperint64
	LastSuccess     whereHelperint64
	IsDead          whereHelperbool
	ConnectionTime  whereHelperint64
	ProtocolVersion whereHelperint
	UserAgent       whereHelperstring
	Services        whereHelperstring
	StartingHeight  whereHelperint64
	CurrentHeight   whereHelperint64
	FailureCount    whereHelperint
}{
	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 */},
	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 */},
	FailureCount:    whereHelperint{/* 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 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
	Exchange        string
	ExchangeTick    string
	Github          string
	Heartbeat       string
	Mempool         string
	NetworkSnapshot string
	Node            string
	PowData         string
	Reddit          string
	Twitter         string
	Vote            string
	VSP             string
	VSPTick         string
	Youtube         string
}{
	Block:           "block",
	Exchange:        "exchange",
	ExchangeTick:    "exchange_tick",
	Github:          "github",
	Heartbeat:       "heartbeat",
	Mempool:         "mempool",
	NetworkSnapshot: "network_snapshot",
	Node:            "node",
	PowData:         "pow_data",
	Reddit:          "reddit",
	Twitter:         "twitter",
	Vote:            "vote",
	VSP:             "vsp",
	VSPTick:         "vsp_tick",
	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
}{
	VSPTicks: "VSPTicks",
}

VSPRels is where relationship names are stored.

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 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 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 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 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 Nodes

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

Nodes 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 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 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 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 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 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"`
	OldestNodeTimestamp int64  `boil:"oldest_node_timestamp" json:"oldest_node_timestamp" toml:"oldest_node_timestamp" yaml:"oldest_node_timestamp"`
	OldestNode          string `boil:"oldest_node" json:"oldest_node" toml:"oldest_node" yaml:"oldest_node"`
	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 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"`
	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"`
	FailureCount    int    `boil:"failure_count" json:"failure_count" toml:"failure_count" yaml:"failure_count"`

	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 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 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 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) 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) 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 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 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