Skip to content

SQLITE_TEMP_STORE needs to be >=2 #2

@mgrandi

Description

@mgrandi

The prebuilt Mac OS X library and the build scripts are not correctly setting SQLITE_TEMP_STORE to either 2 or 3, which is required because these files are not encrypted (https://www.zetetic.net/sqlcipher/design/ , see section on "Database Encryption and Temporary Files")

I have attempted to do this myself but i'm not the best at bash / makefiles and i can't seem to get it right. in the sqlcipher repo though, their Makefile.in file has

# Flags controlling use of the in memory btree implementation
#
# SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to
# default to file, 2 to default to memory, and 3 to force temporary
# tables to always be in memory.
#
TEMP_STORE = -DSQLITE_TEMP_STORE=@TEMP_STORE@

any idea on how to properly have the makefile pass this variable to sqlcipher's makefile?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions