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

Separate DB operations from application layer and create a Data layer #21

Open
shreevari opened this issue Dec 6, 2021 · 0 comments
Open

Comments

@shreevari
Copy link
Contributor

Currently, all db operations happen inline embedded within application logic. Create a data layer with common db operations on every model/entity and use these appropriately in the application layer.

Example directory structure:

data
- member.ts
- message.ts
- ...

member.ts(and others) should have get, update, delete functions

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

No branches or pull requests

1 participant