Documentation ¶
Index ¶
- Variables
- func WithInstance(instance *mongo.Client, config *Config) (database.Driver, error)
- type Config
- type Mongo
- func (m *Mongo) Close() error
- func (m *Mongo) Drop() error
- func (m *Mongo) Lock() error
- func (m *Mongo) Open(dsn string) (database.Driver, error)
- func (m *Mongo) Run(migration io.Reader) error
- func (m *Mongo) SetVersion(version int, dirty bool) error
- func (m *Mongo) Unlock() error
- func (m *Mongo) Version() (version int, dirty bool, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoDatabaseName = fmt.Errorf("no database name") ErrNilConfig = fmt.Errorf("no config") )
View Source
var DefaultMigrationsCollection = "schema_migrations"
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.