dioxus
dioxus copied to clipboard
Database integrations
Specific Demand
Currently dioxus fullstack requires a lot of boilerplate to set up a database. Dioxus should provide integration for different databases that make it easier to get started with storage
Implement Suggestion
There are a few different directions we could go here:
- Choose a specific database like surrealdb and create a very high quality rust and dioxus integration provides a type safe interface with a simpler template/API to get started with the database
- Support multiple adapters for different databases like the old approach to fullstack with a trait
- Create higher quality templates for different databases without a new library
I would prefer focusing on good documentation and examples, without doing any code level support for databases in Dioxus. The database is a very orthogonal concern to UI building, so it should not be in Dioxus' scope.
As long as utilizing DB drivers can be done in a similar fashion to any other Rust app (like Axum web server), it should be good enough.