sqlite_orm v1.1 Release Notes

Release Date: 2018-03-17 // about 6 years ago
  • ๐Ÿ”‹ 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)