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

Update DB to match proposed App Metadata Schema and Improve type safety #26

Open
francisduvivier opened this issue Nov 7, 2024 · 0 comments
Assignees

Comments

@francisduvivier
Copy link
Collaborator

Currently we are just writing sql in the routes specification directly and we don't have a lot of type safety for the things that we do with the DB.

This could be improved by putting an abstraction layer in between to protect the API logic from DB interaction logic. And then in the DB interaction logic, we can use interfaces that exactly match the DB table structure.
To be even more typesafe and in order not to repeat the database specification and typing, we could use sequelize typescript.

@francisduvivier francisduvivier self-assigned this Nov 7, 2024
@francisduvivier francisduvivier changed the title Improve type safety for DB queries Update DB to match proposed App Metadata Schema and Improve type safety Nov 7, 2024
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

When branches are created from issues, their pull requests are automatically linked.

1 participant