pub trait Expression:
OpPrecedence
+ Send
+ Sync
+ Debug {
// Required method
fn write_query(
&self,
writer: &dyn SqlWriter,
context: &mut Context,
out: &mut String,
);
// Provided method
fn is_ordered(&self) -> bool { ... }
}Expand description
A renderable SQL expression node.
Required Methods§
Sourcefn write_query(
&self,
writer: &dyn SqlWriter,
context: &mut Context,
out: &mut String,
)
fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, out: &mut String, )
Serialize the expression into the output string using the dialect writer.
Provided Methods§
Sourcefn is_ordered(&self) -> bool
fn is_ordered(&self) -> bool
Whether this expression carries ordering (ASC/DESC) information.
Trait Implementations§
Source§impl Expression for &dyn Expression
impl Expression for &dyn Expression
Source§fn write_query(
&self,
writer: &dyn SqlWriter,
context: &mut Context,
out: &mut String,
)
fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, out: &mut String, )
Serialize the expression into the output string using the dialect writer.
Source§fn is_ordered(&self) -> bool
fn is_ordered(&self) -> bool
Whether this expression carries ordering (ASC/DESC) information.
Source§impl<'a, T: Expression> From<&'a T> for &'a dyn Expression
impl<'a, T: Expression> From<&'a T> for &'a dyn Expression
Source§impl OpPrecedence for &dyn Expression
impl OpPrecedence for &dyn Expression
Source§fn precedence(&self, writer: &dyn SqlWriter) -> i32
fn precedence(&self, writer: &dyn SqlWriter) -> i32
Lower numbers bind weaker; writers parenthesize when child precedence <= operator precedence.