Expand description
Database export for FlowScope analysis results.
Exports AnalyzeResult to queryable database formats (DuckDB, SQLite).
Two export modes are available:
- Binary export (
export_duckdb): Creates a DuckDB database file (native only) - SQL export (
export_sql): Generates DDL + INSERT statements (WASM-compatible)
§Identifier quoting
The SQL export emits node labels and qualified names as string literals
bound through parameterized inserts (see sql_backend/duckdb_backend),
so data values cannot cause SQL injection against the export database.
However, DDL for the schema of imported tables (tables_ddl) is
string-interpolated and does not apply full identifier quoting for
arbitrary user-supplied names. The intended use is inspection/analysis of
the exported AnalyzeResult, not replaying the DDL against a production
database. Treat the generated SQL as read-only output; if you intend to
execute it against a shared database, review/adjust identifier quoting
for your target dialect first.
Modules§
- dali_
compat - Dali (sql-parser-service) compatibility adapter.
Structs§
Enums§
- Export
Error - Errors that can occur during database export.
- Export
Format - Supported export formats for filenames and UI integrations.
- Mermaid
View - Table
Type
Functions§
- export
- Export analysis result to a database file.
- export_
csv_ bundle - export_
duckdb - Export analysis result to DuckDB format.
- export_
html - export_
json - export_
mermaid - export_
sql - Export analysis result as SQL statements.
- export_
xlsx