drizzle-core 0.1.5

A type-safe SQL query builder for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Profiling utilities for drizzle SQL rendering and operations
//!
//! This module provides integration with the puffin profiler to track
//! SQL rendering and database operation performance when the "profiling" feature is enabled.

/// Re-export puffin macros for convenience
pub use puffin::{profile_function, profile_scope};

/// Profile SQL rendering operations (append, append_raw, etc.)
#[macro_export]
macro_rules! profile_sql {
    ($operation:literal) => {
        #[cfg(feature = "profiling")]
        puffin::profile_scope!("sql_render", $operation);
    };
}