mysql - Error querying database using Diesel, r2d2, and r2d2-diesel -
i've set system using connection pooling system utilizing diesel , r2d2 , , r2d2-diesel serve api host web application. i've been following blog post basis has helped me set things up. however, i've made modification of switching mysql database backend; i've added necessary diesel features , assumed wouldn't issue. here's code use set connection pool (very same blog post): use diesel::prelude::*; use diesel::mysql::mysqlconnection; use r2d2::{ gettimeout, pool, pooledconnection, config }; use r2d2_diesel::connectionmanager; pub struct db(pooledconnection<connectionmanager<mysqlconnection>>); impl db { pub fn conn(&self) -> &mysqlconnection { &*self.0 } } pub fn create_db_pool() -> pool<connectionmanager<mysqlconnection>> { let config = config::default(); let manager = connectionmanager::<mysqlconnection>::new(format!("{}", db_credentials)); pool::new(config, mana...