You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Handlers should be provided a Db instance created from the pool (probably from an extractor). An associated middleware will ensure an appropriate transaction + lock is established and committed (or rolled back) at the end of the request
The text was updated successfully, but these errors were encountered:
adds a transaction/collection lock middleware + a Db extractor
tokio_threadpool::blocking won't work under actix, so:
- manage our own ThreadPool, satisfying our async interface via cloning the
MysqlDb before sending it over to the ThreadPool
- unfortunately requires wrapping the inner state in Arc (and RefCell for the
mutable parts) and an accompanying unsafe Send and
Issue #65
- get/post_collection -> get/post_bsos
- fix the ownership todo in post_bsos
- fix get_collection_modified's handling of empty sets
- add clone to Box<dyn Db> for sharing Dbs among handlers & req.extensions
w/out an Rc
- have the pool run migrations and fix an unwrap() in run_embedded_migrations
Closes#65
The Handlers should be provided a Db instance created from the pool (probably from an extractor). An associated middleware will ensure an appropriate transaction + lock is established and committed (or rolled back) at the end of the request
The text was updated successfully, but these errors were encountered: