# Functions
ConnectInitializedDatabase creates a database with the required metadata tables.
query helper functions
*/ QueryDbVersion queries for the version of the database.
# Constants
SqlMarketsInsertTemplate inserts into the markets table.
SqlQueryDailyValuesTemplate queries the trades table to get the values for a given day.
queries
*/ SqlQueryMarketsById queries the markets table.
SqlTradesInsertTemplate inserts into the trades table.
# Structs
UpgradeScript encapsulates a script to be run to upgrade the database from one version to the next.