Skip to main content

QUERY_SQL_ATTRIBUTE

Constant QUERY_SQL_ATTRIBUTE 

pub const QUERY_SQL_ATTRIBUTE: &'static str;
Expand description

The attribute a query block’s SQL body is written in.

Only @@sql — there is deliberately no @@server_sql/@@embedded_sql split the way View has one. A query is Postgres-only in v1 (design §4): the escape hatch exists precisely to write Postgres spellings like FILTER (WHERE …) and ::bigint that no portable dialect layer can credibly translate, so a second “embedded” body would be promising something the construct cannot deliver.