pub fn source_clause(source: &str, procedure: bool) -> String
Dollar-quote a source body as PostgreSQL does, extending the delimiter when its prefix occurs anywhere in the unchanged source. The caller supplies the final newline.
PostgreSQL