Comments (8)
It's been a while i wanted to integrate SQLCipher.
Also supporting other databases (mysql for example) will be another option to consider.
what do you think ?
from sqlite_modern_cpp.
The SQLCipher stuff looks interesting but i dont think i will need it.
As for more DBs i dread the incompatibilitys but i welcome more options, and indeed i will need mysql or postgress support in a few month ...
Whats youre opinion on breaking changes? I'm a fan of major breaks every major release so we can keep it modern. So this version would be v1.5 but if we had introduced the new operators and removed the current operator>> it would have bin v2.
from sqlite_modern_cpp.
That does make sense, major versions would be because of major API changes.
and yes incompatibilitys will be a big challenge .
from sqlite_modern_cpp.
IIRC sqlcipher just needs an extra call (to set the encryption keyword), everything else is api compatible to sqlite, i.e. you can replace sqlite3.c & sqlite3.h from those from sqlcipher and insert the extra call in the right sequence and nothing else is required for compiling. But for link you need the openssl's libcrypto.
from sqlite_modern_cpp.
So it took almost a year but now we got a new Version. ;)
from sqlite_modern_cpp.
Seems like there have been quite a few changes since the 3.2 release - time for another one? 😉
from sqlite_modern_cpp.
// overload >> for Rvalue containers (1)
auto numbers = db << "select numbers from tbl where id = ?" << 1 >> vector<int>();
// support operator >> for Rvalue containers of std::tuple (2)
auto poeple = db << "select age,name from tbl;" >> vector<tupe<int,string>>();
// single row blob (3)
vector<int> vblob;
db << "select numbers from tbl where id = 1" >> blob_t(vblob);
// multiple row int
vector<int> vrows;
db << "select age from tbl;" >> vrows;
For v4
i was thinking to get 1,2 & 3 implemented, cause 3 is a breaking change.
(The interface above is "my" summery of #122)
If anyone wants to work on the above please give me a heads up, so we don't work on the same thing :-)
Let's put end of October as the deadline! If we have the above i'll release it as v4
otherwise it'll be v3.3
.
from sqlite_modern_cpp.
The deadline is passed, i still want to get those features in before a new release but lack the motivation to work on it.
btw, a piece of good news, we are now listed on https://github.com/rigtorp/awesome-modern-cpp
from sqlite_modern_cpp.
Related Issues (20)
- typo in the std::variant<std::string, ...> supprt HOT 1
- std::optional and std::variant not supported with MSVC 2019 HOT 4
- unnecessary calls to sqlite3_{column,value}_bytes{,16} in getting text HOT 4
- ability to change database name HOT 1
- Ability to interrupt queries
- Does this library support the JSON1 extension? HOT 1
- Usage of `std::optional` fails under MSVC 14.2 / VS 2019 HOT 2
- How to get a binary blob and it's size HOT 1
- about latest release HOT 1
- I dont know how to compile my C++ files with this library HOT 2
- [question] about data update wrapper HOT 2
- with C++20 HOT 1
- Serialized Mode of Sqlite3
- Invalid range expression of type 'database_binder'; no viable 'begin' function available HOT 3
- Are JOIN operations suported? HOT 1
- Set `std::optional` to `std::nullopt` instead of throwing `sqlite::errors::no_rows`
- Project does not work in VS2022 HOT 1
- Unknown number of columns HOT 1
- Database encryption HOT 1
- Possible to use via FetchContent or CPM? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlite_modern_cpp.