* Get a file record by path
(filePath: string)
| 1497 | * Get a file record by path |
| 1498 | */ |
| 1499 | getFileByPath(filePath: string): FileRecord | null { |
| 1500 | if (!this.stmts.getFileByPath) { |
| 1501 | this.stmts.getFileByPath = this.db.prepare('SELECT * FROM files WHERE path = ?'); |
| 1502 | } |
| 1503 | const row = this.stmts.getFileByPath.get(filePath) as FileRow | undefined; |
| 1504 | return row ? rowToFileRecord(row) : null; |
| 1505 | } |
| 1506 | |
| 1507 | /** |
| 1508 | * Get all tracked files |
no test coverage detected