blob: f30459a5c45f214433e00afd4dc4a167c6bc75f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// file : libbrep/package-traits.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
#ifndef LIBBREP_PACKAGE_TRAITS
#define LIBBREP_PACKAGE_TRAITS
#include <cstddef> // size_t
#include <odb/pgsql/traits.hxx>
#include <libbrep/package.hxx> // weighted_text
namespace odb
{
namespace pgsql
{
template <>
class value_traits<brep::weighted_text, id_string>
{
public:
typedef brep::weighted_text value_type;
typedef value_type query_type;
typedef details::buffer image_type;
static void
set_value (value_type&, const details::buffer&, std::size_t, bool) {}
static void
set_image (details::buffer&,
std::size_t& n,
bool& is_null,
const value_type&);
};
}
}
#endif // LIBBREP_PACKAGE_TRAITS
|