问题描述
use sqlx::{MysqLPool};
let db_pool = MysqLPool::connect("MysqL://root:123456@localhost/database"))
.await
.expect("connect Failed");
let markets = sqlx::query("select * from markets")
.fetch_all(&db_pool).await;
然后错误消息是
[ERROR] thread 'main' panicked at 'attempted to leave type `linked_hash_map::Node<std::string::String,(u32,MysqL::statement::MysqLStatementMetadata)>` uninitialized,which is invalid':
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)