Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avicennax/SQLite-Wrapper-Cpp
A lightweight C++ SQLite3 API wrapper.
https://github.com/avicennax/SQLite-Wrapper-Cpp
Last synced: 16 days ago
JSON representation
A lightweight C++ SQLite3 API wrapper.
- Host: GitHub
- URL: https://github.com/avicennax/SQLite-Wrapper-Cpp
- Owner: avicennax
- Created: 2015-01-29T00:34:20.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T03:33:04.000Z (over 6 years ago)
- Last Synced: 2024-07-31T22:58:04.184Z (3 months ago)
- Language: C
- Size: 18.3 MB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## SQLite-Wrapper
A simple C++ Wrapper for sqlite3 API
### Introduction
The 'Database' class provides a C++ wrapper object for SQL databases, that allows developers
to load, access and query a database via 'Database' member functions.
The 'Database' class provides two major avenues for SQL database queries: queryDB() and
four specialized query member functions, selectDB(), insertDB(), updateDB() and deleteDB().
The queryDB() method takes a single std::string parameter, which is a syntactically and
semantically complete SQL query, and runs it against the target database.
The four specialized query methods take set(s) of std::vector and std::string
parameters containing values relevant to the query. These methods are best used when query
values are derived from external sources, thus removing the need to construct ones own
syntactically complete query statements.SELECT queries executed from either queryDB() or selectDB() will store the returned table
in a std::vector> (multidimensional string vector), queryResults, and print
the table via std::cout if specified.Furthermore, two functions texQuo() and expBuild() are provided to assist the
developer in building std::string parameters ready for passing to 'Database' methods.