From 4f4d8338688750e68099b2a5d8629152129ce93c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Sat, 4 Jan 2020 19:11:24 +0100 Subject: [PATCH] Add a new non static variant for getHeaderInfo() (TODO: need unit tests) --- include/SQLiteCpp/Database.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/SQLiteCpp/Database.h b/include/SQLiteCpp/Database.h index 1276109..c849443 100644 --- a/include/SQLiteCpp/Database.h +++ b/include/SQLiteCpp/Database.h @@ -477,6 +477,12 @@ public: */ static Header getHeaderInfo(const std::string& aFilename); + // Parse SQLite header data from a database file. + Header getHeaderInfo() + { + return getHeaderInfo(mFilename); + } + /** * @brief BackupType for the backup() method */