Documentation ¶
Index ¶
- func InitDatabase(enableDb, enableDbWrite bool, host, port, username, password, database string) error
- type Database
- func (d *Database) Exec(commandName, exec string, args ...interface{}) error
- func (d *Database) Execute(writes []interface{}, deletes []interface{}) error
- func (d *Database) GetEffects() ([]objects.Effect, error)
- func (d *Database) GetItems() ([]objects.Item, error)
- func (d *Database) GetLedgers() ([]objects.Ledger, error)
- func (d *Database) GetNotification() ([]objects.Notification, error)
- func (d *Database) GetPortfolios() ([]objects.Portfolio, error)
- func (d *Database) GetRecords() ([]objects.Record, error)
- func (d *Database) GetStocks() ([]objects.Stock, error)
- func (d *Database) GetUsers() ([]objects.User, error)
- func (d *Database) InitLedger() error
- func (d *Database) InitNotification() error
- func (d *Database) InitPortfolio() error
- func (d *Database) InitRecord() error
- func (d *Database) InitStocks() error
- func (d *Database) MakeHistoryLimitQuery(table, uuid, field string, limit int) ([][]interface{}, error)
- func (d *Database) MakeHistoryTimeQuery(table, uuid, timeLength, field, intervalLength string) ([][]interface{}, error)
- func (d *Database) MakePortfolioHistoryLimitQuery(uuid, field string, limit int) ([][]interface{}, error)
- func (d *Database) MakePortfolioHistoryTimeQuery(uuid, timeLength, field, intervalLength string) ([][]interface{}, error)
- func (d *Database) MakeStockHistoryLimitQuery(uuid, field string, limit int) ([][]interface{}, error)
- func (d *Database) MakeStockHistoryTimeQuery(uuid, timeLength, field, intervalLength string) ([][]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDatabase ¶
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
var Db *Database
func (*Database) GetNotification ¶
func (d *Database) GetNotification() ([]objects.Notification, error)
func (*Database) InitLedger ¶
func (*Database) InitNotification ¶
func (*Database) InitPortfolio ¶
func (*Database) InitRecord ¶
func (*Database) InitStocks ¶
func (*Database) MakeHistoryLimitQuery ¶
func (*Database) MakeHistoryTimeQuery ¶
func (*Database) MakePortfolioHistoryLimitQuery ¶
func (*Database) MakePortfolioHistoryTimeQuery ¶
func (*Database) MakeStockHistoryLimitQuery ¶
func (*Database) MakeStockHistoryTimeQuery ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.