Skip to content

Commit

Permalink
feat(core): add user modify crud repository for sequelize
Browse files Browse the repository at this point in the history
Export `SequelizeUserModifyCrudRepository` extending `SequelizeSoftCrudRepository`

GH-1329
  • Loading branch information
shubhamp-sf committed Mar 2, 2023
1 parent 39e1f7a commit d46a8cc
Show file tree
Hide file tree
Showing 5 changed files with 305 additions and 7,010 deletions.
16 changes: 15 additions & 1 deletion packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ Repositories are adding behavior to Models. Models describe the shape of data, R
![Repository](https://loopback.io/pages/en/lb4/imgs/repository.png)
DefaultUserModifyCrudRepository -A repository Class which will provide CRUD operations for default user modifications adding modifiedby field along with it for the modified user.
#### DefaultUserModifyCrudRepository
A repository Class which will provide CRUD operations for default user modifications adding modifiedby field along with it for the modified user.
Extend repositories with DefaultUserModifyCrudRepository Class replacing DefaultCrudRepository. For example,
Expand Down Expand Up @@ -324,6 +326,18 @@ export class UserRepository extends DefaultUserModifyCrudRepository<
![Connector](https://loopback.io/images/9830486.png)
#### SequelizeUserModifyCrudRepository
Similar to [DefaultUserModifyCrudRepository](#defaultusermodifycrudrepository) for projects using sequelize as the underlying ORM using [loopback4-sequelize](https://www.npmjs.com/package/loopback4-sequelize) extension.
In order to use this follow the below import syntax:
```ts
import {SequelizeUserModifyCrudRepository} from '@sourceloop/core/sequelize';
```
and make sure you've [loopback4-sequelize](https://www.npmjs.com/package/loopback4-sequelize) installed.
### Sequence Handlers
Sourceloop Core has sequences that can be used in application providing casbin-secure sequence,secure-sequence and service sequence.
Expand Down
Loading

0 comments on commit d46a8cc

Please sign in to comment.