Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectDatabase ¶
func ConnectDatabase(ctx *database.DatabaseContext) (database.Database, error)
ConnectDatabase creates database connection with configuration set inside config.yaml file. It returns a database connection handle or an error if the connection fails.
Types ¶
type Database ¶
Database defines a wrapper around a SQL database and implements functionality for data aggregation and exporting.
func (*Database) GetTokensPriceID ¶
GetTokensPriceID returns the slice of prices id for all tokens stored inside database
func (*Database) SaveIBCToken ¶
SaveIBCToken allows to save the given IBC token details inside database
func (*Database) SaveTokens ¶
func (db *Database) SaveTokens(token []types.ChainRegistryAsset) error
SaveTokens allows to save the given tokens details inside database
func (*Database) SaveTokensPrices ¶
func (db *Database) SaveTokensPrices(prices []types.TokenPrice) error
SaveTokensPrices allows to store the latest tokens price inside database
Click to show internal directories.
Click to hide internal directories.