Skip to main content

rls_sql_with_timeout

Function rls_sql_with_timeout 

Source
pub fn rls_sql_with_timeout(ctx: &RlsContext, timeout_ms: u32) -> String
Expand description

Generate the RLS SQL string for pipelined execution.

Returns the BEGIN; SET LOCAL statement_timeout = ...; SELECT set_config(...) string that can be passed to PooledConnection::fetch_all_with_rls().