diff --git a/source/cdcdb/dblite.d b/source/cdcdb/dblite.d index 7010505..b0514e1 100644 --- a/source/cdcdb/dblite.d +++ b/source/cdcdb/dblite.d @@ -198,7 +198,7 @@ public: /// BEGIN IMMEDIATE. void beginImmediate() { - sql("BEGIN IMMEDIATE"); + _db.execute("BEGIN IMMEDIATE"); } /// COMMIT. diff --git a/test/app.d b/test/app.d index d48a384..821aee9 100644 --- a/test/app.d +++ b/test/app.d @@ -72,13 +72,13 @@ void main() } // Удаление файла - // if (storage.deleteFile("example_file")) - // writeln("Файл example_file удален."); + if (storage.deleteFile("example_file")) + writeln("Файл example_file удален."); - // // Проверка: снимки удалены - // auto remaining = storage.getSnapshots("example_file"); - // assert(remaining.length == 0); - // writeln("Все снимки удалены."); + // Проверка: снимки удалены + auto remaining = storage.getSnapshots("example_file"); + assert(remaining.length == 0); + writeln("Все снимки удалены."); - // writeln("Версия библиотеки: ", storage.getVersion()); + writeln("Версия библиотеки: ", storage.getVersion()); }