[][src]Trait tdf_config::DataSource

pub trait DataSource {
    type C;
    fn get_url(&self) -> String;
fn get_pool(&mut self) -> Pool<Self::C>
    where
        Self::C: Connect
; }

数据源

Associated Types

type C

Loading content...

Required methods

fn get_url(&self) -> String

fn get_pool(&mut self) -> Pool<Self::C> where
    Self::C: Connect

Loading content...

Implementors

impl DataSource for MySqlDataSource[src]

type C = MySqlConnection

impl DataSource for PgDataSource[src]

type C = PgConnection

Loading content...