mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
// generated by ../../sqlpp11/scripts/ddl2cpp ../tests/TabJson.sql ../tests/TabJson test
|
|
#ifndef TEST_TABJSON_H
|
|
#define TEST_TABJSON_H
|
|
|
|
#include <sqlpp11/table.h>
|
|
#include <sqlpp11/data_types.h>
|
|
#include <sqlpp11/char_sequence.h>
|
|
|
|
namespace test
|
|
{
|
|
namespace TabJson_
|
|
{
|
|
struct Data
|
|
{
|
|
struct _alias_t
|
|
{
|
|
static constexpr const char _literal[] = "data";
|
|
using _name_t = sqlpp::make_char_sequence<sizeof(_literal), _literal>;
|
|
template<typename T>
|
|
struct _member_t
|
|
{
|
|
T data;
|
|
T& operator()() { return data; }
|
|
const T& operator()() const { return data; }
|
|
};
|
|
};
|
|
using _traits = sqlpp::make_traits<sqlpp::text, sqlpp::tag::require_insert>;
|
|
};
|
|
} // namespace TabJson_
|
|
|
|
struct TabJson: sqlpp::table_t<TabJson,
|
|
TabJson_::Data>
|
|
{
|
|
struct _alias_t
|
|
{
|
|
static constexpr const char _literal[] = "tab_json";
|
|
using _name_t = sqlpp::make_char_sequence<sizeof(_literal), _literal>;
|
|
template<typename T>
|
|
struct _member_t
|
|
{
|
|
T tabJson;
|
|
T& operator()() { return tabJson; }
|
|
const T& operator()() const { return tabJson; }
|
|
};
|
|
};
|
|
};
|
|
} // namespace test
|
|
#endif
|