Documentation ¶
Index ¶
- func CollectionFilter(collections []string, collectionsExclude []string) bson.D
- type MongoDB
- func (m *MongoDB) Close()
- func (m *MongoDB) Connect() error
- func (m *MongoDB) CreateCollection(collection string) error
- func (m *MongoDB) DropCollection(collection string) error
- func (m *MongoDB) DumpDocumentsBatch(collection string, batchSize int64) error
- func (m *MongoDB) FetchAllDocuments(collection string) ([]bson.D, error)
- func (m *MongoDB) FetchCollections(filter interface{}) ([]string, error)
- func (m *MongoDB) FetchTotalDocumentsCount(collection string, filter interface{}) (int64, error)
- func (m *MongoDB) GetURI() string
- func (m *MongoDB) InsertDocuments(collection string, documents []interface{}) error
- func (m *MongoDB) Ping() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MongoDB ¶
type MongoDB struct {
// contains filtered or unexported fields
}
func NewMongoDB ¶
func (*MongoDB) CreateCollection ¶
func (*MongoDB) DropCollection ¶
func (*MongoDB) DumpDocumentsBatch ¶
func (*MongoDB) FetchAllDocuments ¶
func (*MongoDB) FetchCollections ¶
func (*MongoDB) FetchTotalDocumentsCount ¶
func (*MongoDB) InsertDocuments ¶
Click to show internal directories.
Click to hide internal directories.