Documentation Source Text

Check-in [cb850cf9a5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add documentation for SQLITE_CONFIG_MEMDB_MAXSIZE.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:cb850cf9a57b1f8de2a19f2d484adba1f2f1198b3801f14eda5b5aba897e314e
User & Date: drh 2019-01-31 17:51:45
Context
2019-02-01
14:44
Fix a typo on the index page. check-in: 139fa7c746 user: drh tags: trunk
2019-01-31
17:51
Add documentation for SQLITE_CONFIG_MEMDB_MAXSIZE. check-in: cb850cf9a5 user: drh tags: trunk
2019-01-28
20:31
Updates to the change log for version 3.27.0. check-in: 03bca65239 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to pages/changes.in.

    34     34   Use that option to prevent circular references to [shadow tables] from
    35     35   causing resource leaks.
    36     36   <li>Enhancements to the [sqlite3_deserialize()] interface:
    37     37   <ol type="a">
    38     38   <li> Add the [SQLITE_FCNTL_SIZE_LIMIT] [sqlite3_file_control|file-control] for
    39     39        setting an upper bound on the size of the in-memory database created
    40     40        by sqlite3_deserialize.  The default upper bound is 1GiB, or whatever
    41         -     alternative value is specified by [SQLITE_MEMDB_DEFAULT_MAXSIZE].
           41  +     alternative value is specified by
           42  +     [sqlite3_config]([SQLITE_CONFIG_MEMDB_MAXSIZE])
           43  +     and/or [SQLITE_MEMDB_DEFAULT_MAXSIZE].
    42     44   <li> Honor the [SQLITE_DESERIALIZE_READONLY] flag, which was previously described
    43     45        in the documentation, but was previously a no-op.
    44     46   <li> Enhance the "deserialize" command of the [TCL Interface] to give it
    45     47        new "--maxsize N" and "--readonly BOOLEAN" options.
    46     48   </ol>
    47     49   <li>Enhancements to the [CLI], mostly to support testing and debugging
    48     50   of the SQLite library itself:

Changes to pages/compile.in.

   487    487     [prepared statement] will use to aid with CPU-intensive computations
   488    488     (mostly sorting).  See also the [SQLITE_DEFAULT_WORKER_THREADS] options.
   489    489   }
   490    490   
   491    491   COMPILE_OPTION {SQLITE_MEMDB_DEFAULT_MAXSIZE=<i>N</i>} {
   492    492     Set the default size limit (in bytes) for in-memory databases created using
   493    493     [sqlite3_deserialize()].  This is just the default.  The limit can be
   494         -  changed at run-time for individual databases using the
          494  +  changed at start-time using
          495  +  [sqlite3_config]([SQLITE_CONFIG_MEMDB_MAXSIZE],N)
          496  +  or at run-time for individual databases using the
   495    497     [SQLITE_FCNTL_SIZE_LIMIT] [sqlite3_file_control|file-control].
   496    498     If no default is specified, 1073741824 is used.
   497    499   }
   498    500   
   499    501   COMPILE_OPTION {SQLITE_MINIMUM_FILE_DESCRIPTOR=<i>N</i>} {
   500    502     The unix [VFS] will never use a file descriptor less than <i>N</i>.  The
   501    503     default value of <i>N</i> is 3.