SqliteModernCpp / sqlite_modern_cpp

The C++14 wrapper around sqlite library
MIT License
903 stars 156 forks source link

Database encryption #230

Open nikita-vedre opened 12 months ago

nikita-vedre commented 12 months ago

I am getting error 'sqlite3_key': identifier not found 'sqlite3_key_v2': identifier not found 'sqlite3_rekey': identifier not found 'sqlite3_rekey_v2': identifier not found can anyone suggest solution?

codethinki commented 11 months ago

more context would be useful i think

wkingnet commented 3 weeks ago

same to me. I think because sqlite3 has deleted these functions.

Simplify the code by removing the unsupported and undocumented SQLITE_HAS_CODEC compile-time option (check-in: 5a877221 user: drh tags: trunk)` https://www.sqlite.org/src/timeline?c=5a877221ce90e752

I try to do:

  1. compile sqlcipher
  2. copy sqlcipher.dll and libcrypto-3.dll to project, and link sqlcipher.lib
  3. open "sqlite_modern_cpp.h", delete#include <sqlite3.h>, add #include "sqlcipher/sqlite3.h"