9ec8eb952e
All checks were successful
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m11s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m22s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m27s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m29s
linux-x64-gcc / linux-gcc (push) Successful in 1m55s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 3m17s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (pull_request) Successful in 1m9s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (pull_request) Successful in 1m14s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (pull_request) Successful in 1m20s
linux-x64-gcc / linux-gcc (pull_request) Successful in 1m24s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 4m26s
linux-mips64-gcc / linux-gcc-mips64el (pull_request) Successful in 1m43s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (pull_request) Successful in 1m55s
linux-hisiv500-gcc / linux-gcc-hisiv500 (pull_request) Successful in 4m8s
110 lines
2.5 KiB
C++
110 lines
2.5 KiB
C++
#pragma once
|
|
|
|
#include <sqlpp11/table.h>
|
|
#include <sqlpp11/char_sequence.h>
|
|
#include <sqlpp11/column_types.h>
|
|
|
|
namespace model
|
|
{
|
|
namespace TabDateTime_
|
|
{
|
|
struct C_timepoint
|
|
{
|
|
struct _alias_t
|
|
{
|
|
static constexpr const char _literal[] = "c_timepoint";
|
|
using _name_t = sqlpp::make_char_sequence<sizeof(_literal), _literal>;
|
|
template <typename T>
|
|
struct _member_t
|
|
{
|
|
T c_timepoint;
|
|
T& operator()()
|
|
{
|
|
return c_timepoint;
|
|
}
|
|
const T& operator()() const
|
|
{
|
|
return c_timepoint;
|
|
}
|
|
};
|
|
};
|
|
|
|
using _traits = ::sqlpp::make_traits<::sqlpp::time_point, sqlpp::tag::can_be_null>;
|
|
};
|
|
|
|
struct C_day
|
|
{
|
|
struct _alias_t
|
|
{
|
|
static constexpr const char _literal[] = "c_day";
|
|
using _name_t = sqlpp::make_char_sequence<sizeof(_literal), _literal>;
|
|
template <typename T>
|
|
struct _member_t
|
|
{
|
|
T c_day;
|
|
T& operator()()
|
|
{
|
|
return c_day;
|
|
}
|
|
const T& operator()() const
|
|
{
|
|
return c_day;
|
|
}
|
|
};
|
|
};
|
|
|
|
using _traits = ::sqlpp::make_traits<::sqlpp::day_point, sqlpp::tag::can_be_null>;
|
|
};
|
|
|
|
struct C_time
|
|
{
|
|
struct _alias_t
|
|
{
|
|
static constexpr const char _literal[] = "c_time";
|
|
using _name_t = sqlpp::make_char_sequence<sizeof(_literal), _literal>;
|
|
template <typename T>
|
|
struct _member_t
|
|
{
|
|
T c_time;
|
|
T& operator()()
|
|
{
|
|
return c_time;
|
|
}
|
|
const T& operator()() const
|
|
{
|
|
return c_time;
|
|
}
|
|
};
|
|
};
|
|
using _traits = sqlpp::make_traits<sqlpp::time_of_day, sqlpp::tag::can_be_null>;
|
|
};
|
|
|
|
} // namespace TabDatetime_
|
|
|
|
struct TabDateTime : sqlpp::table_t<TabDateTime,
|
|
TabDateTime_::C_time,
|
|
TabDateTime_::C_day,
|
|
TabDateTime_::C_timepoint>
|
|
{
|
|
using _value_type = sqlpp::no_value_t;
|
|
struct _alias_t
|
|
{
|
|
static constexpr const char _literal[] = "TabDatetime";
|
|
using _name_t = sqlpp::make_char_sequence<sizeof(_literal), _literal>;
|
|
template <typename T>
|
|
struct _member_t
|
|
{
|
|
T TabDateTime;
|
|
T& operator()()
|
|
{
|
|
return TabDateTime;
|
|
}
|
|
const T& operator()() const
|
|
{
|
|
return TabDateTime;
|
|
}
|
|
};
|
|
};
|
|
};
|
|
}
|