Skip to content

Commit

Permalink
Merge pull request #1350 from akrisfx/issue/1349
Browse files Browse the repository at this point in the history
add setter and getter for max_page_count pragma
  • Loading branch information
fnc12 authored Sep 19, 2024
2 parents a2b5fcd + ce2a491 commit 2ce3dcf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dev/pragma.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ namespace sqlite_orm {
this->set_pragma("auto_vacuum", value);
}

int max_page_count() {
return this->get_pragma<int>("max_page_count");
}

void max_page_count(int value) {
this->set_pragma("max_page_count", value);
}

std::vector<std::string> integrity_check() {
return this->get_pragma<std::vector<std::string>>("integrity_check");
}
Expand Down
8 changes: 8 additions & 0 deletions include/sqlite_orm/sqlite_orm.h
Original file line number Diff line number Diff line change
Expand Up @@ -16513,6 +16513,14 @@ namespace sqlite_orm {
this->set_pragma("auto_vacuum", value);
}

int max_page_count() {
return this->get_pragma<int>("max_page_count");
}

void max_page_count(int value) {
this->set_pragma("max_page_count", value);
}

std::vector<std::string> integrity_check() {
return this->get_pragma<std::vector<std::string>>("integrity_check");
}
Expand Down

0 comments on commit 2ce3dcf

Please sign in to comment.