database

package
v0.0.0-...-f14c41b Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore struct {
	Dialect  string
	Name     string
	User     string
	Password string
	// contains filtered or unexported fields
}

DataStore ...

func NewDataStore

func NewDataStore(Dialet string) *DataStore

func (*DataStore) AutoMigrate

func (d *DataStore) AutoMigrate() *gorm.DB

func (*DataStore) CloseDB

func (d *DataStore) CloseDB()

func (*DataStore) GetDB

func (d *DataStore) GetDB() *gorm.DB

func (*DataStore) OpenDB

func (d *DataStore) OpenDB() error

func (*DataStore) UpdateCurrency

func (d *DataStore) UpdateCurrency(c *common.Currency) *gorm.DB

func (*DataStore) UpdateExchanger

func (d *DataStore) UpdateExchanger(c *common.Exchanger) *gorm.DB

func (*DataStore) UpdateMarket

func (d *DataStore) UpdateMarket(c *common.Market) *gorm.DB

func (*DataStore) UpdateOrderBook

func (d *DataStore) UpdateOrderBook(c *common.OrderBook) *gorm.DB

func (*DataStore) UpdatePriceVol

func (d *DataStore) UpdatePriceVol(c *common.PriceVol) *gorm.DB

func (*DataStore) UpdateSymbol

func (d *DataStore) UpdateSymbol(c *common.Symbol) *gorm.DB

func (*DataStore) UpdateTicker

func (d *DataStore) UpdateTicker(c *common.Ticker) *gorm.DB

func (*DataStore) UpdateTrade

func (d *DataStore) UpdateTrade(c *common.Trade) *gorm.DB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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