Skip to main content

discover_tables

Function discover_tables 

Source
pub fn discover_tables(
    src: &mut dyn Connection,
    schema: Option<&str>,
    include: &[String],
    exclude: &[String],
) -> Result<Vec<String>, SqlError>
Expand description

Discover tables on src and apply include/exclude filters. Returns the filtered list in list_tables order (alphabetical for most backends). Caller is expected to feed this into topo_sort before issuing copies.