Skip to content

Add DuckDB catalog support as alternative backend #42

@Zie619

Description

@Zie619

Description

Add optional DuckDB backend for component catalog, similar to Cisco AIBOM approach.

Why

  • DuckDB is fast and lightweight
  • Allows more complex queries on scan results
  • Can store historical scan data
  • Enables SQL-based analysis

Implementation Ideas

  • Add --output-format duckdb flag
  • Create schema for components, relationships, workflows
  • Store scan results in .duckdb file
  • Provide SQL query examples

Schema Ideas

CREATE TABLE components (
    id TEXT PRIMARY KEY,
    name TEXT,
    category TEXT,
    file_path TEXT,
    line_number INTEGER
);

CREATE TABLE relationships (
    source_id TEXT,
    target_id TEXT,
    type TEXT
);

Acceptance Criteria

  • New --output-format duckdb option
  • Proper schema design
  • Tests with sample data
  • Documentation with SQL query examples

Labels

good first issue, enhancement

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions