dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Database integrations

Open ealmloff opened this issue 1 year ago • 1 comments

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

ealmloff avatar Mar 01 '24 17:03 ealmloff

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.

ochrons avatar Apr 22 '24 13:04 ochrons