the image_model.rs is working
The basic functions are all working properly. Now the model works by using diesel to connect the sql database and retrieve all the items and organize them. Then it'll ensure any additions and deletions are correct and happen first on the database before adding them to the model. There is still a C++ proxyModel inbetween QML and Rust, but this proxyModel interfaces with the Rust model instead of the C++ SqlTableModel.
This commit is contained in:
parent
caed6e6367
commit
fc2d0492fa
9 changed files with 170 additions and 79 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -272,6 +272,7 @@ dependencies = [
|
|||
"cxx-qt-lib",
|
||||
"diesel",
|
||||
"dirs",
|
||||
"libsqlite3-sys",
|
||||
"serde",
|
||||
"serde_derive",
|
||||
]
|
||||
|
@ -282,6 +283,7 @@ version = "0.24.2"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "898745e570c7d0453cc1fbc4a701eb6c662ed54e8fec8b7d14be137ebeeb9d14"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"pkg-config",
|
||||
"vcpkg",
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue