https://github.com/rbock/sqlpp17
Started to re-write sqlpp11 to sqlpp17 (not even remotely ready yet)
https://github.com/rbock/sqlpp17
Last synced: over 1 year ago
JSON representation
Started to re-write sqlpp11 to sqlpp17 (not even remotely ready yet)
- Host: GitHub
- URL: https://github.com/rbock/sqlpp17
- Owner: rbock
- License: bsd-2-clause
- Created: 2016-10-28T07:29:23.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2025-03-30T09:53:42.000Z (over 1 year ago)
- Last Synced: 2025-03-30T10:28:36.640Z (over 1 year ago)
- Language: C++
- Size: 1.07 MB
- Stars: 53
- Watchers: 13
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqlpp17
This is an experimental rewrite of [sqlpp11](https://github.com/rbock/sqlpp11) to C++17.
___
> [!IMPORTANT]
>
> ***This repository is discontinued infavor of https://github.com/rbock/sqlpp23***
___
It is done from scratch. C++17 makes a lot of things much simpler. Some aspects I described in my CppCon 2017 talk:
https://www.youtube.com/watch?reload=9&v=bA7b1HEFVFk
However, C++17 is also lacking a couple of really important things, e.g.
- constexpr containers (C++20 will have string and vector)
- constexpr typeid (C++20)
- concepts (C++20)
- reflection (C++??)
Most of the required functionality is present in sqlpp17, but it is not well tested. And seeing what can be expected from C++20, I currently don't believe that I will finish sqlpp17, but rather advance to C++20, soon.
Usage:
-----
**Use with cmake**: The library officially supports two ways how it can be used with cmake. You can find examples for both methods in the example folder.
1. Fetch content (**Recommended**, no installation required): See `examples//usage_fetchContent`
1. Find package (installation required, see above): See `examples//usage_findPackage`
Build and Install:
-----
**Build from Source:**
Download and unpack the latest release from https://github.com/rbock/sqlpp17/releases or clone the repository. Inside the directory run the following commands:
```cmake
cmake -B build
cmake --build build --target install
```
**Note**: You might need admin rights for the last comman
Note:
-----
If you are looking for a production-ready embedded domain specific language for SQL in C++, use sqlpp11.
License:
-----
sqlpp17 is published under the [BSD 2-Clause License](https://github.com/rbock/sqlpp17/blob/master/LICENSE).