pub fn export_sql(
result: &AnalyzeResult,
schema: Option<&str>,
) -> Result<String, ExportError>Expand description
Export analysis result as SQL statements.
Returns DDL (CREATE TABLE/VIEW) + INSERT statements that can be executed by duckdb-wasm in the browser.
This is the WASM-compatible export path.
If schema is provided, all tables and views will be prefixed with that schema
(e.g., “myschema.tablename”) and a CREATE SCHEMA IF NOT EXISTS statement will be added.