C++ SQLite3 wrapper library for easy database operations
Smart and easy to use C++ SQLite3 wrapper
sqlitecpp$ g++ -I$(brew --prefix sqlitecpp)/include myprogram.cpp -L$(brew --prefix sqlitecpp)/lib -lsqlitecpp -lsqlite3$ cat > test.cpp << 'EOF'
#include <SQLiteCpp/SQLiteCpp.h>
int main() {
SQLite::Database db("test.db");
db.exec("CREATE TABLE test (id INTEGER, name TEXT)");
return 0;
}
EOF$ echo 'find_package(sqlitecpp REQUIRED)' >> CMakeLists.txt && echo 'target_link_libraries(myapp sqlitecpp)' >> CMakeLists.txt