altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

feat: [Phase 3] Schema cache (FTS5) + FinOps SQL templates

Open anandgupta42 opened this issue 8 months ago • 1 comments

Phase 3: Schema Cache + FinOps

Parent: #214 Depends on: Phase 2

What

Port the SQLite schema cache (FTS5) and all 10 FinOps SQL template modules from Python to TypeScript.

Sub-tasks

  • [ ] native/schema/cache.ts — better-sqlite3 with FTS5, port DDL from Python
  • [ ] native/schema/pii-detector.ts — pattern matching + altimateCore.classifyPii()
  • [ ] native/schema/tags.ts — Snowflake TAG_REFERENCES queries
  • [ ] native/finops/credit-analyzer.ts — SQL templates verbatim from Python
  • [ ] native/finops/query-history.ts
  • [ ] native/finops/warehouse-advisor.ts
  • [ ] native/finops/unused-resources.ts
  • [ ] native/finops/role-access.ts
  • [ ] Register 16 dispatcher methods (6 schema + 10 finops)
  • [ ] Unit tests for SQL template generation per warehouse type
  • [ ] Schema cache search/index integration tests

anandgupta42 avatar Mar 17 '26 18:03 anandgupta42

Completed in PR #221.

anandgupta42 avatar Mar 18 '26 00:03 anandgupta42