* Get statistics about the knowledge graph
()
| 2406 | * Get statistics about the knowledge graph |
| 2407 | */ |
| 2408 | getStats(): GraphStats { |
| 2409 | const stats = this.queries.getStats(); |
| 2410 | stats.dbSizeBytes = this.db.getSize(); |
| 2411 | stats.walSizeBytes = this.db.getWalSizeBytes(); |
| 2412 | return stats; |
| 2413 | } |
| 2414 | |
| 2415 | /** |
| 2416 | * Active SQLite backend for this project's connection (`node-sqlite` — Node's |