pub struct SqlNode {
pub id: String,
pub childs: Vec<NodeType>,
}
Expand description
Represents a reusable SQL fragment node in py_sql, defined by a <sql>
tag in XML or an equivalent in py_sql.
It allows defining a piece of SQL that can be included elsewhere.
§Example
PySQL syntax (conceptual, as direct py_sql for <sql>
might be less common than XML):
# define a reusable sql fragment
sql id='columns':
column1, column2
Fields§
§id: String
§childs: Vec<NodeType>
Trait Implementations§
impl Eq for SqlNode
impl StructuralPartialEq for SqlNode
Auto Trait Implementations§
impl Freeze for SqlNode
impl RefUnwindSafe for SqlNode
impl Send for SqlNode
impl Sync for SqlNode
impl Unpin for SqlNode
impl UnwindSafe for SqlNode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.