Skip to content

v1.1

Choose a tag to compare

@fnc12 fnc12 released this 17 Mar 14:26
· 2737 commits to master since this release
4b9c536

Features

  • VACUUM
    Use storage.vacuum() to call VACUUM query explicitly or use storage.pragma.auto_vacuum(...); to set PRAGMA auto_vacuum.
  • Arithmetic operators
    +, -, *, / and % are now available for using within expressions. Example: auto doubledAge = storage.select(c(&User::age) * 2); or auto 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 is add(&User:age, 5). Also sub, mul, div and mod functions are now available in sqlite_orm namespace.
  • Bug fixes
    Fixed compilation error in case sqlite_orm.h file is included in more than one place.
    Fixed incorrect query generation in remove call in case PRIMARY KEY is defined as a separate column.
  • Warning fixes
    Fixed three Visual Studio 2017 warnings (thanks to @ntkernelcom)