diff options
author | drh <drh@noemail.net> | 2019-01-31 15:38:53 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-01-31 15:38:53 +0000 |
commit | 23a885956e6f6798bf0b75ddf083e77c77ed41cd (patch) | |
tree | 3837daf7789e47681e4a4f4d80fe479ae0510ffd /src/main.c | |
parent | b92b019fe3d0669504a94dd8c26b63d5dd52441e (diff) | |
download | sqlite-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/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index efffc2b63..c40e6e877 100644 --- a/src/main.c +++ b/src/main.c @@ -653,6 +653,13 @@ int sqlite3_config(int op, ...){ } #endif /* SQLITE_ENABLE_SORTER_REFERENCES */ +#ifdef SQLITE_ENABLE_DESERIALIZE + case SQLITE_CONFIG_MEMDB_MAXSIZE: { + sqlite3GlobalConfig.mxMemdbSize = va_arg(ap, sqlite3_int64); + break; + } +#endif /* SQLITE_ENABLE_DESERIALIZE */ + default: { rc = SQLITE_ERROR; break; |