aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2019-01-31 15:38:53 +0000
committerdrh <drh@noemail.net>2019-01-31 15:38:53 +0000
commit23a885956e6f6798bf0b75ddf083e77c77ed41cd (patch)
tree3837daf7789e47681e4a4f4d80fe479ae0510ffd /src/sqliteInt.h
parentb92b019fe3d0669504a94dd8c26b63d5dd52441e (diff)
downloadsqlite-23a885956e6f6798bf0b75ddf083e77c77ed41cd.tar.gz
sqlite-23a885956e6f6798bf0b75ddf083e77c77ed41cd.zip
Add the SQLITE_CONFIG_MEMDB_MAXSIZE configuration option for configuring
the default maximum size of an in-memory database created using sqlite3_deserialize(). This is necessary to make the interface reasonably testable. FossilOrigin-Name: cb72ee0478ce98c48aae059fd5de4e36caf2b8c953e08fcb799bfd119ad46b73
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index b67b3ed76..e8211a142 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -3428,6 +3428,9 @@ struct Sqlite3Config {
void (*xVdbeBranch)(void*,unsigned iSrcLine,u8 eThis,u8 eMx); /* Callback */
void *pVdbeBranchArg; /* 1st argument */
#endif
+#ifdef SQLITE_ENABLE_DESERIALIZE
+ sqlite3_int64 mxMemdbSize; /* Default max memdb size */
+#endif
#ifndef SQLITE_UNTESTABLE
int (*xTestCallback)(int); /* Invoked by sqlite3FaultSim() */
#endif