update todo with sqlx info

This commit is contained in:
Chris Cochrun 2024-09-24 15:27:37 -05:00
parent 8bc07e20ca
commit e0d7159328

View file

@ -44,6 +44,12 @@ I've got SlideType enums working
*** Move logic of changing slides to slide_model *** Move logic of changing slides to slide_model
Since the slide_object is merely supposed to be the view of the current slide, deciding which slide to switch to should be entirely on the slide_model, not the slide_object. This way slide_object doesn't need to know anything about the which slide is next and instead have a function to update everything to the slide returned from slide_model's new slide. Since the slide_object is merely supposed to be the view of the current slide, deciding which slide to switch to should be entirely on the slide_model, not the slide_object. This way slide_object doesn't need to know anything about the which slide is next and instead have a function to update everything to the slide returned from slide_model's new slide.
** TODO [#A] Consider converting diesel to raw sqlx instead
From what I can gather, sometimes an orm is just too hard to work around rather than doing raw sql queries. The only issue is that my queries have been rather small. I only really need to select everything into the app and then run it from there. However, it could still be a consideration as things age. Perhaps when there are hundreds or even thousands of items in the database, it'll be more effective to use something like SQLx.
Progress is moving on this. SQLx works for the song model already, I'll just copy the kind of work over to the others.
** TODO [#B] start and end times for videos :feature: ** TODO [#B] start and end times for videos :feature:
This is something I couldn't get right in my head and plans and I hope rust will help me to solve it. This is something I couldn't get right in my head and plans and I hope rust will help me to solve it.
@ -158,8 +164,6 @@ Need to experiment with it more.
[[file:~/dev/lumina/src/rust/song_model.rs::AudioRole,]] [[file:~/dev/lumina/src/rust/song_model.rs::AudioRole,]]
*** TODO Need to work on all warnings and errors to cleanup logs *** TODO Need to work on all warnings and errors to cleanup logs
[[file:~/dev/lumina/src/rust/song_model.rs::AudioRole,]] [[file:~/dev/lumina/src/rust/song_model.rs::AudioRole,]]
** TODO Consider converting diesel to raw sqlx instead
From what I can gather, sometimes an orm is just too hard to work around rather than doing raw sql queries. The only issue is that my queries have been rather small. I only really need to select everything into the app and then run it from there. However, it could still be a consideration as things age. Perhaps when there are hundreds or even thousands of items in the database, it'll be more effective to use something like SQLx.
** TODO Figure out qml hot reload :maintenance: ** TODO Figure out qml hot reload :maintenance:
https://www.reddit.com/r/QtFramework/comments/11plifj/qhot_now_with_qt6_support/ https://www.reddit.com/r/QtFramework/comments/11plifj/qhot_now_with_qt6_support/
** TODO Switch to using rust only deletion functions. :bug: ** TODO Switch to using rust only deletion functions. :bug: