GithubHelp home page GithubHelp logo

yowidin / sqlite-burrito Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 186 KB

A silly wrapper for the SQLite library

License: MIT License

CMake 0.72% C++ 98.64% Python 0.64%
cplusplus cplusplus-17 cpp cpp17 sqlite sqlite3

sqlite-burrito's Introduction

release

SQLiteBurrito

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.

Features

  • 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 for NULL values.

Getting Started

Prerequisites

  • C++17 compatible compiler
  • SQLite3 library (either installed in your system, or as a conan dependency).

Installation

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)

Usage

See the example directory contents for both exception-based and std::error_code-based usage examples.

License

This project is licensed under the MIT License.

sqlite-burrito's People

Contributors

yowidin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.