* Get statistics about the knowledge graph
()
| 1218 | * Get statistics about the knowledge graph |
| 1219 | */ |
| 1220 | getStats(): GraphStats { |
| 1221 | const stats = this.queries.getStats(); |
| 1222 | stats.dbSizeBytes = this.db.getSize(); |
| 1223 | stats.walSizeBytes = this.db.getWalSizeBytes(); |
| 1224 | return stats; |
| 1225 | } |
| 1226 | |
| 1227 | /** |
| 1228 | * Active SQLite backend for this project's connection (`node-sqlite` — Node's |