(db: DatabaseLike, sql: string)
| 185 | } |
| 186 | |
| 187 | function stmt<T>(db: DatabaseLike, sql: string): StatementLike<T> { |
| 188 | return db.prepare(sql) as unknown as StatementLike<T>; |
| 189 | } |
| 190 | |
| 191 | export function projectPathToPiDirSlug(projectPath: string): string { |
| 192 | return `--${projectPath.replace(/^\/+|\/+$/g, "").replaceAll("/", "-")}--`; |
no test coverage detected