pub struct Matcher {
pub id: Uuid,
pub hash: String,
pub query: Stmt,
pub cached_statements: HashMap<String, MatcherStmt>,
pub pks: IndexMap<String, Vec<String>>,
pub parsed: ParsedSelect,
pub evt_tx: Sender<QueryEvent>,
pub col_names: Vec<ColumnName>,
pub last_rowid: u64,
/* private fields */
}Fields§
§id: Uuid§hash: String§query: Stmt§cached_statements: HashMap<String, MatcherStmt>§pks: IndexMap<String, Vec<String>>§parsed: ParsedSelect§evt_tx: Sender<QueryEvent>§col_names: Vec<ColumnName>§last_rowid: u64Implementations§
Source§impl Matcher
impl Matcher
pub fn cleanup(id: Uuid, sub_path: Utf8PathBuf) -> Result<()>
pub fn sub_path(subs_path: &Utf8Path, id: Uuid) -> Utf8PathBuf
pub fn sub_db_path(subs_path: &Utf8Path, id: Uuid) -> Utf8PathBuf
pub fn restore( id: Uuid, subs_path: Utf8PathBuf, schema: &Schema, state_conn: CrConn, evt_tx: Sender<QueryEvent>, tripwire: Tripwire, ) -> Result<MatcherHandle, MatcherError>
pub fn create( id: Uuid, subs_path: Utf8PathBuf, schema: &Schema, state_conn: CrConn, evt_tx: Sender<QueryEvent>, sql: &str, tripwire: Tripwire, ) -> Result<MatcherHandle, MatcherError>
Auto Trait Implementations§
impl !Freeze for Matcher
impl !RefUnwindSafe for Matcher
impl Send for Matcher
impl !Sync for Matcher
impl Unpin for Matcher
impl !UnwindSafe for Matcher
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more