Skip to main content

extract_plpgsql_bodies

Function extract_plpgsql_bodies 

Source
pub fn extract_plpgsql_bodies(
    tree: &Tree,
    source: &str,
    pool: &ParserPool,
) -> Vec<InjectedRegion>
Expand description

Find dollar-quoted string bodies in CREATE FUNCTION/PROCEDURE statements and parse them with the PL/pgSQL grammar.

This handles the first level of injection: SQL -> PL/pgSQL.