feat: added ts
This commit is contained in:
8
client/src/config.ts
Normal file
8
client/src/config.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { appLocalDataDir } from '@tauri-apps/api/path';
|
||||
|
||||
/** Возвращает URL подключения к SQLite */
|
||||
export async function getDB_URL(): Promise<string> {
|
||||
|
||||
const appDir = await appLocalDataDir();
|
||||
return `sqlite:${appDir}/timer.db`;
|
||||
}
|
||||
Reference in New Issue
Block a user