use diesel::Connection;
pub trait WundergraphContext {
type Connection: Connection + 'static;
fn get_connection(&self) -> &Self::Connection;
}
impl<Conn> WundergraphContext for Conn
where
Conn: Connection + 'static,
{
type Connection = Self;
fn get_connection(&self) -> &Self {
self
}
}