pub struct Parser { /* private fields */ }Trait Implementations§
Source§impl QueryParser for Parser
impl QueryParser for Parser
type Statement = (String, Option<(Statement, LogicalPlan)>)
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 Parser
impl !RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl !UnwindSafe for Parser
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
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