summaryrefslogtreecommitdiff
path: root/src/database/column.hpp
blob: e74d426628cbad8df482eef878a5cde3549dfdbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"; };