Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "0.1.8"
Version is incremented using bump2version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datasource ¶
type Datasource struct { Files []string DatabaseName string Collection string Loader loaders.Loader PostLoad PostLoadHook PreDump PreDumpHook UpdateFilter UpdateFilterHook EmptyCollection bool Sanitize bool }
Datasource ...
type Import ¶
type Import struct { Connection *MongoConnection Data []*Datasource IgnoreErrors bool }
Import ...
type ImportResult ¶
type ImportResult struct { File string Collection string Succeeded int Failed int Elapsed time.Duration // contains filtered or unexported fields }
ImportResult ...
type MongoConnection ¶
type MongoConnection struct { DatabaseName string User string Password string Host string Port int }
MongoConnection ...
type PostLoadHook ¶
PostLoadHook ...
type UpdateFilterHook ¶
type UpdateFilterHook func(loaded interface{}) (interface{}, error)
UpdateFilterHook ...
Click to show internal directories.
Click to hide internal directories.