feat: added ts

This commit is contained in:
Arduinum authored and Arduinum628 committed 2026-02-19 16:26:16 +03:00
1 parent ec3d712a82
commit d26310ddad
21 files changed
+135 -149

No files matched your search

+8
View 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`;
}