summaryrefslogtreecommitdiffstats
path: root/common/storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/storage.h')
-rw-r--r--common/storage.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/common/storage.h b/common/storage.h
index c39b904..1967a5e 100644
--- a/common/storage.h
+++ b/common/storage.h
@@ -123,6 +123,16 @@ public:
123 123
124 qint64 getSize(); 124 qint64 getSize();
125 125
126 struct Stat {
127 size_t branchPages;
128 size_t leafPages;
129 size_t overflowPages;
130 size_t numEntries;
131 };
132 Stat stat();
133
134 bool allowsDuplicates() const;
135
126 private: 136 private:
127 friend Transaction; 137 friend Transaction;
128 NamedDatabase(NamedDatabase &other); 138 NamedDatabase(NamedDatabase &other);
@@ -150,6 +160,15 @@ public:
150 160
151 operator bool() const; 161 operator bool() const;
152 162
163 struct Stat {
164 size_t totalPages;
165 size_t freePages;
166 size_t pageSize;
167 NamedDatabase::Stat mainDbStat;
168 NamedDatabase::Stat freeDbStat;
169 };
170 Stat stat();
171
153 private: 172 private:
154 Transaction(Transaction &other); 173 Transaction(Transaction &other);
155 Transaction &operator=(Transaction &other); 174 Transaction &operator=(Transaction &other);