mongodb

package
v0.0.0-...-62087f9 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const TimeOut = 5 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	utils.Connection

	IsDisconnected bool
	// contains filtered or unexported fields
}

func GetDB

func GetDB() (*DB, error)

func (*DB) GetAllTransactions

func (db *DB) GetAllTransactions() (*[]entities.Transaction, error)

func (*DB) GetTransactionBySubcategory

func (db *DB) GetTransactionBySubcategory(subRegex string) (
	*[]entities.Transaction,
	error,
)

func (*DB) StoreTransactions

func (db *DB) StoreTransactions(transactions ...entities.Transaction) (
	int,
	error,
)

Jump to

Keyboard shortcuts

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