mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00

- Add connection_web.dart for IndexedDB via drift - Add connection_native.dart for sqlite3 - Remove direct platform-specific imports from database.dart - Enable web compilation without FFI dependencies
8 lines
225 B
Dart
8 lines
225 B
Dart
import 'package:drift/drift.dart';
|
|
import 'package:drift/web.dart';
|
|
|
|
DatabaseConnection connect() {
|
|
// IndexedDB vía drift para web
|
|
final db = WebDatabase('tunestream_db');
|
|
return DatabaseConnection.fromExecutor(db);
|
|
} |