Skip to main content

rewrite_sql

Function rewrite_sql 

Source
pub fn rewrite_sql(sql: &str) -> Result<String>
Expand description

Rewrite the markers in sql and return the derivative SQL as text, without running it.

Useful for logging what will execute, for feeding another tool, or for the ddxdb Python shim, which does exactly this and then calls a stock Context.sql().