Setting sqlite temp store directory

后端 未结 2 751
眼角桃花
眼角桃花 2021-01-12 00:03

I have a Python binary which uses SQLite as its backend database. SQLite\'s documentation and the code suggests that setting any of the following 3 environment variables sho

2条回答
  •  无人共我
    2021-01-12 00:39

    For version 3.8.1+ (released October 2013), it's cleaner to use the new SQLITE_TMPDIR environment variable instead of TMPDIR, since the latter is used by Unix software other than SQLite.

    From the release notes:

    The directory used to hold temporary files on unix can now be set using the SQLITE_TMPDIR environment variable, which takes precedence over the TMPDIR environment variable. The sqlite3_temp_directory global variable still has higher precedence than both environment variables, however.

提交回复
热议问题