SQLiteBurrito is a lightweight C++ library that serves as a wrapper around SQLite3, providing an easy-to-use interface for working with SQLite databases. It aims to simplify the process of interacting with SQLite and offers a more intuitive and modern approach compared to the raw SQLite API.
-
Error Handling Options: SQLiteBurrito provides flexibility in error handling by allowing users to choose between two error handling mechanisms: exceptions and
std::error_code
. -
Optional Support: SQLiteBurrito allows the use of
std::optional
to store and retrieve data from the database, providing an abstraction forNULL
values.
- C++17 compatible compiler
- SQLite3 library (either installed in your system, or as a conan dependency).
The simplest way to include this library in your project is to use the CMake's FetchContent functionality, for example:
include(FetchContent)
FetchContent_Declare(
sqlite_burrito
GIT_REPOSITORY https://github.com/yowidin/sqlite-burrito
GIT_TAG release/x.y.z
)
FetchContent_MakeAvailable(sqlite_burrito)
target_link_libraries(my_app PUBLIC SQLiteBurrito::library)
See the example directory contents for both exception-based and std::error_code
-based usage examples.
This project is licensed under the MIT License.