pub struct NoopQueryParser;Expand description
A demo parser implementation. Never use it in serious application.
Implementations§
Trait Implementations§
Source§impl Debug for NoopQueryParser
impl Debug for NoopQueryParser
Source§impl Default for NoopQueryParser
impl Default for NoopQueryParser
Source§fn default() -> NoopQueryParser
fn default() -> NoopQueryParser
Returns the “default value” for a type. Read more
Source§impl QueryParser for NoopQueryParser
impl QueryParser for NoopQueryParser
type Statement = String
Source§fn parse_sql<'life0, 'life1, 'life2, 'life3, 'async_trait, C>(
&'life0 self,
_client: &'life1 C,
sql: &'life2 str,
_types: &'life3 [Option<Type>],
) -> Pin<Box<dyn Future<Output = PgWireResult<Self::Statement>> + Send + 'async_trait>>where
C: ClientInfo + Unpin + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn parse_sql<'life0, 'life1, 'life2, 'life3, 'async_trait, C>(
&'life0 self,
_client: &'life1 C,
sql: &'life2 str,
_types: &'life3 [Option<Type>],
) -> Pin<Box<dyn Future<Output = PgWireResult<Self::Statement>> + Send + 'async_trait>>where
C: ClientInfo + Unpin + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Convert sql string into the internal type of query execution Read more
Source§fn get_parameter_types(
&self,
_stmt: &Self::Statement,
) -> PgWireResult<Vec<Type>>
fn get_parameter_types( &self, _stmt: &Self::Statement, ) -> PgWireResult<Vec<Type>>
Get parameter type information from parsed statement Read more
Source§fn get_result_schema(
&self,
_stmt: &Self::Statement,
_column_format: Option<&Format>,
) -> PgWireResult<Vec<FieldInfo>>
fn get_result_schema( &self, _stmt: &Self::Statement, _column_format: Option<&Format>, ) -> PgWireResult<Vec<FieldInfo>>
Get query result type information from parsed statement Read more
Auto Trait Implementations§
impl Freeze for NoopQueryParser
impl RefUnwindSafe for NoopQueryParser
impl Send for NoopQueryParser
impl Sync for NoopQueryParser
impl Unpin for NoopQueryParser
impl UnsafeUnpin for NoopQueryParser
impl UnwindSafe for NoopQueryParser
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