Skip to main content

query_set_clause

Function query_set_clause 

Source
fn query_set_clause(cluster: &str, cluster_replica: Option<&str>) -> String
Expand description

Builds the SET clause for execute_query: always SET CLUSTER, plus SET CLUSTER_REPLICA when a replica is requested (e.g. for EXPLAIN ANALYZE on a cluster with multiple replicas). Both names pass through escaped_string_literal since they are interpolated into SQL string literals.