Skip to main content

sql_requires_query_annotation

Function sql_requires_query_annotation 

Source
pub fn sql_requires_query_annotation(sql: &str) -> bool
Expand description

True when executed SQL is missing a leading /* name */ annotation.

BEGIN / COMMIT / ROLLBACK are exempt, including when they already carry a leading block comment. Matches the runtime-query contract: /^\s*\/\*\s*\S[\s\S]*?\*\//.