sqlitecpp

C++ SQLite3 wrapper library for easy database operations

brewmacoslinux
Try with needOr install directly
Source

About

Smart and easy to use C++ SQLite3 wrapper

Commands

sqlitecpp

Examples

Include SQLiteCpp headers in your C++ project$ g++ -I$(brew --prefix sqlitecpp)/include myprogram.cpp -L$(brew --prefix sqlitecpp)/lib -lsqlitecpp -lsqlite3
Create a simple C++ program using SQLiteCpp to open a database$ 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
Link against sqlitecpp in CMake project$ echo 'find_package(sqlitecpp REQUIRED)' >> CMakeLists.txt && echo 'target_link_libraries(myapp sqlitecpp)' >> CMakeLists.txt