Skip to main content

forbidden_command

Function forbidden_command 

Source
pub fn forbidden_command(
    context: &QueryEffectContext<'_>,
    plan: &UnifiedPlan,
) -> Result<Option<&'static str>, SQLError>
Expand description

The tag of a command a read-only transaction rejects, or None when the command may run: ClassifyUtilityCommandAsReadOnly rejects every utility command that changes persistent state, and ExecCheckXactReadOnly rejects a query that writes to a permanent relation.