Skip to main content

cache_key

Function cache_key 

Source
pub fn cache_key(sql: &str, params: &[DecodedValue]) -> Result<String>
Expand description

sha256(sql) + bound parameter values, hex-encoded — see the cache layer plan’s key-simplification note: compiled.sql is already a canonical, whitespace-insensitive form, so hashing it directly (rather than a separately normalized AST) is both simpler and precise.