pub struct HeuristicRouter { /* private fields */ }Expand description
Backwards-compatible query router that delegates to SqlParserRouter.
This type exists solely for API compatibility. New code should use
SqlParserRouter directly; both produce identical routing decisions.
Implementations§
Source§impl HeuristicRouter
impl HeuristicRouter
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new HeuristicRouter backed by a SqlParserRouter.
Trait Implementations§
Source§impl Default for HeuristicRouter
impl Default for HeuristicRouter
Source§impl QueryRouter for HeuristicRouter
impl QueryRouter for HeuristicRouter
Source§fn route(&self, sql: &str) -> QueryTarget
fn route(&self, sql: &str) -> QueryTarget
Classify
sql and return the engine that should execute it.Auto Trait Implementations§
impl Freeze for HeuristicRouter
impl RefUnwindSafe for HeuristicRouter
impl Send for HeuristicRouter
impl Sync for HeuristicRouter
impl Unpin for HeuristicRouter
impl UnsafeUnpin for HeuristicRouter
impl UnwindSafe for HeuristicRouter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more