Add set_key and reset_key methods to connection.

These use the sqlite3_key and sqlite3_rekey library functions.
This commit is contained in:
Charles Leifer 2024-02-12 16:00:37 -06:00
parent df2eab9f27
commit bb6becd3ef
2 changed files with 57 additions and 0 deletions

View file

@ -44,6 +44,7 @@ class SystemLibSqliteBuilder(build_ext):
def build_extension(self, ext):
log.info(self.description)
ext.libraries.append('sqlcipher')
ext.define_macros.append(('SQLITE_HAS_CODEC', '1'))
build_ext.build_extension(self, ext)