rbatis-codegen 4.8.0

The Rust SQL Toolkit and ORM Library. An async, pure Rust SQL crate featuring compile-time Dynamic SQL gen system
Documentation
use crate::codegen::syntax_tree_pysql::{Name, ToHtml};

/// Represents a `continue` node in py_sql.
/// It's used to skip the current iteration of a loop and proceed to the next one, typically within a `foreach` block.
///
/// # Example
///
/// PySQL syntax:
/// ```py
/// for item in collection:
///   if item == 'skip_this':
///     continue
///   # process item
/// ```
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct ContinueNode {}

impl ToHtml for ContinueNode {
    fn as_html(&self) -> String {
        format!("<continue></continue>")
    }
}

impl Name for ContinueNode {
    fn name() -> &'static str {
        "continue"
    }
}