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 NewDeleteModelErr(table string, data any, err error) error
- func NewInsertModelErr(table string, data any, err error) error
- func NewMongoDeleteErr(collection string, filter any, err error) error
- func NewMongoFindQueryErr(collection string, filter any, err error) error
- func NewSelectQueryErr(query string, err error) error
- func NewUpdateModelErr(table string, data any, err error) error
- func SetupManager()
- type DeleteModelErr
- type InsertModelErr
- type MongoDeleteErr
- type MongoFindQueryErr
- type SelectQueryErr
- type UpdateModelErr
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
func NewDeleteModelErr ¶ added in v0.0.26
NewDeleteModelErr - return a new instance of DeleteModelErr
func NewInsertModelErr ¶ added in v0.0.25
NewInsertModelErr - return a new instance of InsertModelErr
func NewMongoDeleteErr ¶ added in v0.0.25
NewMongoDeleteErr - return a new instance of MongoDeleteErr
func NewMongoFindQueryErr ¶ added in v0.0.25
NewMongoFindQueryErr - return a new instance of MongoFindQueryErr
func NewSelectQueryErr ¶ added in v0.0.26
NewSelectQueryErr - return a new instance of SelectQueryErr
func NewUpdateModelErr ¶ added in v0.0.25
NewUpdateModelErr - return a new instance of UpdateModelErr
Types ¶
type DeleteModelErr ¶ added in v0.0.26
type DeleteModelErr = db.DeleteModelErr
type InsertModelErr ¶ added in v0.0.25
type InsertModelErr = 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 SelectQueryErr ¶ added in v0.0.26
type SelectQueryErr = db.SelectQueryErr
type UpdateModelErr ¶ added in v0.0.25
type UpdateModelErr = db.UpdateModelErr
Click to show internal directories.
Click to hide internal directories.