use diesel::mysql::MysqlConnection; use diesel::prelude::*; use dotenv::dotenv; pub fn establish_connection() -> MysqlConnection { let database_url = "mysql://[user]:[password]@host[:port][/database]"; MysqlConnection::establish(&database_url) .expect(&format!("Error connecting to {}", database_url)) } use crate::utils::establish_connection; use diesel::deserialize::QueryableByName; use diesel::my
