to_sql

xorq.to_sql(expr, pretty=True)

Return the formatted SQL string for an expression.

Parameters

Name Type Description Default
expr ir.Expr Ibis expression. required
pretty bool Whether to use pretty formatting. True

Returns

Name Type Description
str Formatted SQL string