Bejárás mód: minden rögzített geometria megjelenítése egy listában.

This commit is contained in:
2026-06-21 13:52:48 +02:00
parent 026d7799f9
commit 32821dabc7
4 changed files with 454 additions and 2 deletions
+17
View File
@@ -549,6 +549,14 @@ class AppDatabase {
where: 'note_item_id = ?', whereArgs: [noteItemId]);
}
Future<int> countNotePhotos(int noteItemId) async {
final db = await database;
final res = await db.rawQuery(
'SELECT COUNT(*) FROM note_item_photos WHERE note_item_id = ?',
[noteItemId],
);
return Sqflite.firstIntValue(res) ?? 0;
}
// -------------- NoteItemAudio
Future<int> insertNoteAudio(NoteItemAudio audio) async {
@@ -578,6 +586,15 @@ class AppDatabase {
return rows.map(NoteItemAudio.fromMap).toList();
}
Future<int> countNoteAudios(int noteItemId) async {
final db = await database;
final res = await db.rawQuery(
'SELECT COUNT(*) FROM note_item_audios WHERE note_item_id = ?',
[noteItemId],
);
return Sqflite.firstIntValue(res) ?? 0;
}
// ----------- Layer meta adatok
Future<void> insertImportedLayer(ImportedLayerMeta meta) async {
final db = await database;