(filename: string)
| 71 | } |
| 72 | |
| 73 | async function getDatabaseLocation(filename: string): Promise<string> { |
| 74 | const platform = getPlatformService(); |
| 75 | if (!platform.isDesktop) { |
| 76 | return filename; |
| 77 | } |
| 78 | |
| 79 | return `sqlite:${await getDatabaseFilePath(filename)}`; |
| 80 | } |
| 81 | |
| 82 | async function configureDatabaseConnection(database: IDatabase): Promise<void> { |
| 83 | try { |
no test coverage detected