Implement our own database ORM, and update the whole code to use it

Entirely replace LiteSQL

fix #3271
This commit is contained in:
louiz’
2017-06-14 00:19:15 +02:00
parent 7ca95a0974
commit 50cadf3dac
21 changed files with 872 additions and 326 deletions
+13
View File
@@ -0,0 +1,13 @@
#pragma once
#include <cstdint>
template <typename T>
struct Column
{
using real_type = T;
T value;
};
struct Id: Column<std::size_t> { static constexpr auto name = "id_";
static constexpr auto options = "PRIMARY KEY AUTOINCREMENT"; };