* Get a file record by path
(filePath: string)
| 2159 | * Get a file record by path |
| 2160 | */ |
| 2161 | getFileByPath(filePath: string): FileRecord | null { |
| 2162 | if (!this.stmts.getFileByPath) { |
| 2163 | this.stmts.getFileByPath = this.db.prepare('SELECT * FROM files WHERE path = ?'); |
| 2164 | } |
| 2165 | const row = this.stmts.getFileByPath.get(filePath) as FileRow | undefined; |
| 2166 | return row ? rowToFileRecord(row) : null; |
| 2167 | } |
| 2168 | |
| 2169 | /** |
| 2170 | * Get all tracked files |
no test coverage detected