()
| 24 | } |
| 25 | |
| 26 | init() { |
| 27 | // Ensure root directory exists |
| 28 | this.db |
| 29 | .insert(gitObjects) |
| 30 | .values({ |
| 31 | path: '', |
| 32 | parent_path: '', |
| 33 | data: '', |
| 34 | is_dir: 1, |
| 35 | mtime: Date.now(), |
| 36 | }) |
| 37 | .onConflictDoNothing() |
| 38 | .run(); |
| 39 | |
| 40 | // promises property required by isomorphic-git |
| 41 | Object.defineProperty(this, 'promises', { |
| 42 | value: this, |
| 43 | enumerable: true, |
| 44 | writable: false, |
| 45 | configurable: false, |
| 46 | }); |
| 47 | } |
| 48 | |
| 49 | getStorageStats(): { |
| 50 | totalObjects: number; |
no test coverage detected