Documentation ¶
Index ¶
- type MongoDB3k
- func (r *MongoDB3k) ExportCSV() *os.File
- func (r *MongoDB3k) ExportXLSX()
- func (r *MongoDB3k) ImportCSV(csvPath string, idColumn int)
- func (r *MongoDB3k) Ping() error
- func (r *MongoDB3k) SetCollection(collectionName string)
- func (r *MongoDB3k) SetDatabase(databaseName string)
- func (r *MongoDB3k) VerifyCollection() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB3k ¶
type MongoDB3k struct { Client *mongo.Client `json:"client,omitempty"` Context context.Context `json:"context,omitempty"` Database *mongo.Database `json:"database,omitempty"` Collection *mongo.Collection `json:"collection,omitempty"` }
func (*MongoDB3k) ExportXLSX ¶
func (r *MongoDB3k) ExportXLSX()
ExportXLSX This method is used to export the collection to a xlsx file
func (*MongoDB3k) ImportCSV ¶
ImportCSV This method is used to import a csv file into the collection
func (*MongoDB3k) SetCollection ¶
SetCollection This method is used to set the collection
func (*MongoDB3k) SetDatabase ¶
SetDatabase This method is used to set the database
func (*MongoDB3k) VerifyCollection ¶
VerifyCollection This method is used to verify that the collection is set
Click to show internal directories.
Click to hide internal directories.