2023-07-25 13:00:05 +08:00
|
|
|
#pragma once
|
|
|
|
|
2021-08-02 03:49:16 +08:00
|
|
|
// generated by ../../sqlpp11/scripts/ddl2cpp ../tests/TabJson.sql ../tests/TabJson test
|
|
|
|
|
|
|
|
#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
|