databases

package
v0.0.0-...-b30aab1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertRate

func InsertRate(exchange_rate *models.ExchangeRate) error

Insere os dados de cotação no DB

func Migrate

func Migrate(db *sql.DB) error
Cria as tabelas necessárias no DB

Utilizar gorm simplificaria aqui consideravelmente.

func RateHistory

func RateHistory() ([]models.ExchangeRate, error)

Lê todos os dados de cotação do DB

func Setup

func Setup() (*sql.DB, error)

Inicia a instância do DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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