aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/result.hxx
blob: 1417a6ce42a8ec3cd054061ce8a063a5f798c677 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// file      : odb/sqlite/result.hxx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
// license   : GNU GPL v2; see accompanying LICENSE file

#ifndef ODB_SQLITE_RESULT_HXX
#define ODB_SQLITE_RESULT_HXX

#include <odb/pre.hxx>

#include <odb/traits.hxx>
#include <odb/result.hxx>

#include <odb/details/shared-ptr.hxx>

#include <odb/sqlite/version.hxx>
#include <odb/sqlite/forward.hxx> // query, query_params
#include <odb/sqlite/statement.hxx>

#include <odb/sqlite/details/export.hxx>

namespace odb
{
  namespace sqlite
  {
    class LIBODB_SQLITE_EXPORT result_impl_base
    {
    public:
      result_impl_base (const query&, details::shared_ptr<select_statement>);

    protected:
      // We need to hold on to the query parameters because SQLite uses
      // the parameter buffers to find each next row.
      //
      details::shared_ptr<query_params> params_;
      details::shared_ptr<select_statement> statement_;
    };

    template <typename T, class_kind kind>
    class result_impl;
  }
}

#include <odb/post.hxx>

#endif // ODB_SQLITE_RESULT_HXX

// Include result specializations so that the user code only needs
// to include this header.
//

#include <odb/sqlite/object-result.hxx>
#include <odb/sqlite/view-result.hxx>