summaryrefslogtreecommitdiff
path: root/src/database/type_to_sql.hpp
blob: 194226821b61abb407d14ac70188c1d25766925c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <string>

template <typename T>
struct TypeToSQLType { static const std::string type; };

template <> const std::string TypeToSQLType<int>::type;
template <> const std::string TypeToSQLType<std::size_t>::type;
template <> const std::string TypeToSQLType<long>::type;
template <> const std::string TypeToSQLType<long long>::type;
template <> const std::string TypeToSQLType<bool>::type;
template <> const std::string TypeToSQLType<std::string>::type;