Bejárás mód: minden rögzített geometria megjelenítése egy listában.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user