pub fn global_sql_cache() -> &'static SqlTemplateCacheExpand description
Global SQL template cache for common query patterns.
This provides a shared cache across the application for frequently used SQL templates, reducing memory usage and improving performance.
ยงExample
use prax_query::sql::{global_sql_cache, DatabaseType};
let sql = global_sql_cache().get_or_insert("find_user_by_id", DatabaseType::PostgreSQL, || {
"SELECT * FROM users WHERE id = $1".to_string()
});