better-sqlite3
better-sqlite3 copied to clipboard
Setting memory database size limit
From sqlite.org:
SQLITE_MEMDB_DEFAULT_MAXSIZE=N
Set the default size limit (in bytes) for in-memory databases created using sqlite3_deserialize(). This is just the default. The limit can be changed at start-time using sqlite3_config(SQLITE_CONFIG_MEMDB_MAXSIZE,N) or at run-time for individual databases using the SQLITE_FCNTL_SIZE_LIMIT file-control. If no default is specified, 1073741824 is used.
Is there a way to set this limit for a specific database in better-sqlite3 other than by compiling a customized sqlite3 version?
Currently, the only way to change this setting is by compiling a customized sqlite3 version.