v1.1
版本发布时间: 2018-03-17 22:26:57
fnc12/sqlite_orm最新发布版本:v1.9(2024-08-24 10:26:18)
Features
-
VACUUM
Use
storage.vacuum()
to callVACUUM
query explicitly or usestorage.pragma.auto_vacuum(...);
to setPRAGMA auto_vacuum
. -
Arithmetic operators
+
,-
,*
,/
and%
are now available for using within expressions. Example:auto doubledAge = storage.select(c(&User::age) * 2);
orauto doubledAge = storage.select(mul(c(&User::age), 2));
. As you can see every operator has a function in case you like functions more than operators:c(&User::age) + 5
isadd(&User:age, 5)
. Alsosub
,mul
,div
andmod
functions are now available insqlite_orm
namespace. -
Bug fixes
Fixed compilation error in case
sqlite_orm.h
file is included in more than one place. Fixed incorrect query generation inremove
call in casePRIMARY KEY
is defined as a separate column. - Warning fixes Fixed three Visual Studio 2017 warnings (thanks to @ntkernelcom)
1、 sqlite_orm.h 270.71KB