Skip to main content

Module contexts

Module contexts 

Source
Expand description

Context-aware special completions.

Catches situations the phase state machine doesn’t model:

  • CREATE INDEX ... USING <method>
  • CREATE INDEX ... ON t (col <opclass>)
  • CREATE TRIGGER ... BEFORE|AFTER|INSTEAD OF <event>
  • CREATE TRIGGER ... ON <table>
  • CREATE TRIGGER ... EXECUTE [FUNCTION|PROCEDURE] <fn>
  • CALL <proc>
  • CREATE POLICY ... FOR <cmd>
  • CREATE POLICY ... TO <role>
  • ALTER TABLE t ALTER COLUMN c TYPE <type>

Runs before the phase state machine: returns Some(items) to short-circuit; None to fall through.

Functions§

detect