Documentation ¶
Index ¶
- func NewGenericMongoRepository[TEntity interface{}](db *mongo.Client, databaseName string, collectionName string) data.GenericRepository[TEntity]
- func NewGenericMongoRepositoryWithDataModel[TDataModel interface{}, TEntity interface{}](db *mongo.Client, databaseName string, collectionName string) data.GenericRepositoryWithDataModel[TDataModel, TEntity]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGenericMongoRepository ¶
func NewGenericMongoRepository[TEntity interface{}]( db *mongo.Client, databaseName string, collectionName string, ) data.GenericRepository[TEntity]
NewGenericMongoRepository create new gorm generic repository
func NewGenericMongoRepositoryWithDataModel ¶
func NewGenericMongoRepositoryWithDataModel[TDataModel interface{}, TEntity interface{}]( db *mongo.Client, databaseName string, collectionName string, ) data.GenericRepositoryWithDataModel[TDataModel, TEntity]
NewGenericMongoRepositoryWithDataModel create new gorm generic repository
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.