Struct mz_sqllogictest::parser::Parser
source · Fields§
§contents: &'a str
§fname: String
§curline: usize
§mode: Mode
Implementations§
source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
pub fn new(fname: &str, contents: &'a str) -> Self
pub fn is_done(&self) -> bool
pub fn location(&self) -> Location
fn consume(&mut self, upto: usize)
pub fn split_at(&mut self, sep: &Regex) -> Result<&'a str, Error>
pub fn parse_record(&mut self) -> Result<Record<'a>, Error>
pub fn parse_records(&mut self) -> Result<Vec<Record<'a>>, Error>
fn parse_statement(
&mut self,
words: impl Iterator<Item = &'a str>,
first_line: &'a str
) -> Result<Record<'a>, Error>
fn parse_query(
&mut self,
words: Peekable<impl Iterator<Item = &'a str>>,
first_line: &'a str
) -> Result<Record<'a>, Error>
fn parse_simple(
&mut self,
words: Peekable<impl Iterator<Item = &'a str>>
) -> Result<Record<'a>, Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'a>
Blanket Implementations§
source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage + 'static, Global>
source§impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
fn clone_storage(&self) -> Box<dyn CloneableStorage + 'static, Global>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.