From 578e6a3358aa670543a220b73865f5f44e52a2a7 Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Fri, 24 Oct 2025 16:30:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BF=D1=80=D0=BE=D1=81=20=D0=B8?= =?UTF-8?q?=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=20=D0=BD=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B0=D1=82=D0=B8=D0=B2=D0=BD=D1=8B=D0=B9:=20sql=20->=20execut?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/cdcdb/dblite.d | 2 +- test/app.d | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) 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()); }