admin管理员组

文章数量:1344508

I'm still quite new to Rust, and just for integrity checking, I'm wanting to check some values of what should be a list of tables versus the action tables. For this, I have a sea_orm connection.

fn my_function(my_connection :DatabaseConnection) -> Vec<Vec<String>> { //could be a Hashmap, I'm not super picky
    let pre-result = myDB.db_connection.execute_unprepared(".tables;").await?;
    result = unwrap(parse(wtf(bbq(pre-result)))); // the magic mojo I need happens here
    return result;   
}

The problem I"m facing is that execute_unprepared (a native Sea_Orm method) returns a Pin that contains a Box that contains a Future that contains a result that contains an ExecResult...

I'm wanting to just return a nice neat vector or hashmap with a list of tables in the database... not... whatever monstrosity that execute_unprepared is returning. With is the ideal way to turn this into something straight forward & idomatic to use?

本文标签: