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

filemanager: setup sea-orm with entity generation #314

Closed
mmalenic opened this issue May 21, 2024 · 0 comments · Fixed by #357
Closed

filemanager: setup sea-orm with entity generation #314

mmalenic opened this issue May 21, 2024 · 0 comments · Fixed by #357
Assignees
Labels
feature New feature filemanager an issue relating to the filemanager

Comments

@mmalenic
Copy link
Member

To ease the use of writing sqlx queries, sea-orm-cli entity generation could be used to generate types for the database tables automatically. Since this is a cli tool, it could be run before compiling code, or potentially to integrate it better with cargo build, it could be run inside build.rs.

This would also help with the querying API in #109 and #110, as there wouldn't be as much of a need to define types for values returned by the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature filemanager an issue relating to the filemanager
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant