database

package
v0.0.0-...-cc62035 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	*mongo.Client
}

func NewDatabase

func NewDatabase() *Database

NewDatabase initializes a new instance of the Database struct.

Returns a pointer to the newly created Database.

func (*Database) GetData

func (client *Database) GetData(dataset Dataset, snapshot map[string]time.Time) ([]map[string]interface{}, error)

func (*Database) GetDatasets

func (client *Database) GetDatasets() ([]Dataset, error)

type Dataset

type Dataset struct {
	Database   string `bson:"database"`
	Collection string `bson:"sample_collection"`
}

Jump to

Keyboard shortcuts

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