Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Sequelize as base repository from loopback4-sequelize package #118

Closed
shubhamp-sf opened this issue Jan 18, 2023 · 1 comment · Fixed by #119
Closed

Add support for Sequelize as base repository from loopback4-sequelize package #118

shubhamp-sf opened this issue Jan 18, 2023 · 1 comment · Fixed by #119
Assignees
Labels

Comments

@shubhamp-sf
Copy link
Contributor

Problem

Potential projects utilizing loopback4-sequelize package won't be able to use soft-delete capabilities as for now, because the base here is DefaultCrudRepository which needs to be changed.

Solution

  1. Export a repository factory that can be used in place of SoftCrudRepository (from loopback4-soft-delete) but with utilizing sequelize capabilities.
  2. Export a repository factory that can be used in place of DefaultUserModifyCrudRepository (from @sourceloop/core package) but with utilizing sequelize capabilities.

Alternatives

Solution no. 2 can be also implemented in @sourceloop/core repository.

@shubhamp-sf shubhamp-sf self-assigned this Jan 18, 2023
shubhamp-sf added a commit that referenced this issue Jan 18, 2023
adds `sequelizeSoftCrud` function providing soft-delete capabilities
with sequelize as underlying repository

adds `sequelizeUserModifyCrudRepository` function providing
`DefaultUserModifyCrudRepository` (from `@sourceloop/core`) like capabilities
with sequelize as underlying repository

GH-118
shubhamp-sf added a commit that referenced this issue Jan 19, 2023
adds `sequelizeSoftCrud` function providing soft-delete capabilities
with sequelize as underlying repository

adds `sequelizeUserModifyCrudRepository` function providing
`DefaultUserModifyCrudRepository` (from `@sourceloop/core`) like capabilities
with sequelize as underlying repository

GH-118
shubhamp-sf added a commit that referenced this issue Jan 19, 2023
Export `sequelizeSoftCrud` function providing soft-delete capabilities
with sequelize as underlying repository

Export `sequelizeUserModifyCrudRepository` function providing
`DefaultUserModifyCrudRepository` (from `@sourceloop/core`) like capabilities
with sequelize as underlying repository

GH-118
shubhamp-sf added a commit that referenced this issue Feb 28, 2023
Export `SequelizeSoftCrudRepository` providing soft-delete capabilities with sequelize as underlying
repository

GH-118
shubhamp-sf added a commit that referenced this issue Feb 28, 2023
Export `SequelizeSoftCrudRepository` providing soft-delete capabilities with sequelize as underlying
repository

GH-118
shubhamp-sf added a commit that referenced this issue Feb 28, 2023
Export `SequelizeSoftCrudRepository` providing soft-delete capabilities with sequelize as underlying
repository

GH-118
yeshamavani pushed a commit that referenced this issue Feb 28, 2023
Export `SequelizeSoftCrudRepository` providing soft-delete capabilities with sequelize as underlying
repository

GH-118
@sfdevops
Copy link
Contributor

🎉 This issue has been resolved in version 7.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants