Rindle docs and package mapSkip to main content

GraphTableSourceExt

Trait GraphTableSourceExt 

Source
pub trait GraphTableSourceExt {
    // Required method
    fn add_table_source(&mut self, source: TableSource) -> NodeId;
}
Expand description

Adds add_table_source to [rindle::graph::Graph] — the ergonomic equivalent of the former inherent Graph::add_table_source, now that TableSource lives in this crate. Delegates to the core [Graph::add_dyn_source].

use rindle_sqlite::GraphTableSourceExt;
let id = graph.add_table_source(table_source);

Required Methods§

Source

fn add_table_source(&mut self, source: TableSource) -> NodeId

Add a SQLite TableSource as a graph leaf and return its NodeId.

Implementations on Foreign Types§

Source§

impl GraphTableSourceExt for Graph

Source§

fn add_table_source(&mut self, source: TableSource) -> NodeId

Implementors§