(self, db_path: Optional[str] = None)
| 13 | """Intelligent memory for CAD operations""" |
| 14 | |
| 15 | def __init__(self, db_path: Optional[str] = None): |
| 16 | # Store in user's FreeCAD config directory |
| 17 | if not db_path: |
| 18 | import FreeCAD |
| 19 | config_dir = Path(FreeCAD.getUserAppDataDir()) / "AICopilot" |
| 20 | config_dir.mkdir(exist_ok=True) |
| 21 | db_path = config_dir / "memory.db" |
| 22 | |
| 23 | self.db_path = db_path |
| 24 | self.conn = sqlite3.connect(str(db_path)) |
| 25 | self._init_database() |
| 26 | |
| 27 | def _init_database(self): |
| 28 | """Initialize database schema""" |
nothing calls this directly
no test coverage detected