Documentation
¶
Index ¶
- func AttachMigrationFunc(instanceName string, f func(migrator gorm.Migrator) error) error
- func GetDb(instanceName string) (*gorm.DB, error)
- func GetMongoDb(instanceName string) (*mongo.Database, error)
- func Migrate(instanceName string, models ...interface{}) error
- func SetupManager()
- type InsertModelError
- type MongoDeleteErr
- type MongoFindQueryErr
- type UpdateModelError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachMigrationFunc ¶
AttachMigrationFunc - attach migration function to be called by end user
func GetMongoDb ¶
GetMongoDb - Get *mongo.Client instance from the underlying interfaces
Types ¶
type InsertModelError ¶ added in v0.0.24
type InsertModelError = db.InsertModelErr
type MongoDeleteErr ¶ added in v0.0.24
type MongoDeleteErr = db.MongoDeleteErr
type MongoFindQueryErr ¶ added in v0.0.24
type MongoFindQueryErr = db.MongoFindQueryErr
type UpdateModelError ¶ added in v0.0.24
type UpdateModelError = db.UpdateModelErr
Click to show internal directories.
Click to hide internal directories.