From ce2a49125b613e693becd319cfda1626e31904f7 Mon Sep 17 00:00:00 2001 From: Vladislav Potachin Date: Wed, 18 Sep 2024 19:24:12 +0300 Subject: [PATCH] add setter and getter for max_page_count pragma --- dev/pragma.h | 8 ++++++++ include/sqlite_orm/sqlite_orm.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/dev/pragma.h b/dev/pragma.h index 8f9ab7d3..394af430 100644 --- a/dev/pragma.h +++ b/dev/pragma.h @@ -113,6 +113,14 @@ namespace sqlite_orm { this->set_pragma("auto_vacuum", value); } + int max_page_count() { + return this->get_pragma("max_page_count"); + } + + void max_page_count(int value) { + this->set_pragma("max_page_count", value); + } + std::vector integrity_check() { return this->get_pragma>("integrity_check"); } diff --git a/include/sqlite_orm/sqlite_orm.h b/include/sqlite_orm/sqlite_orm.h index 7e18b652..410b2c0a 100644 --- a/include/sqlite_orm/sqlite_orm.h +++ b/include/sqlite_orm/sqlite_orm.h @@ -16513,6 +16513,14 @@ namespace sqlite_orm { this->set_pragma("auto_vacuum", value); } + int max_page_count() { + return this->get_pragma("max_page_count"); + } + + void max_page_count(int value) { + this->set_pragma("max_page_count", value); + } + std::vector integrity_check() { return this->get_pragma>("integrity_check"); }