pub trait Driver: Sync + Send {
// Required method
fn connect(
&self,
url: &str,
) -> Result<Rc<RefCell<dyn Connection + 'static>>>;
}
Expand description
Represents database driver that can be shared between threads, and can therefore implement a connection pool