aboutsummaryrefslogtreecommitdiff
path: root/sqlite/stream/test.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-15 18:43:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-15 18:43:03 +0200
commit0a2b28b4034a6b44f7bb7a126935d9e58cc0c1f9 (patch)
tree65ecf66a742cc7f80f784b996fcb7a3e6ca14253 /sqlite/stream/test.hxx
parent0d65234bc5c6742721c00360a0e3117d51d89c5f (diff)
Implement SQLite incremental BLOB/TEXT I/O
Diffstat (limited to 'sqlite/stream/test.hxx')
-rw-r--r--sqlite/stream/test.hxx38
1 files changed, 38 insertions, 0 deletions
diff --git a/sqlite/stream/test.hxx b/sqlite/stream/test.hxx
new file mode 100644
index 0000000..32c29e3
--- /dev/null
+++ b/sqlite/stream/test.hxx
@@ -0,0 +1,38 @@
+// file : sqlite/stream/test.hxx
+// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef TEST_HXX
+#define TEST_HXX
+
+#include <vector>
+
+#include <odb/core.hxx>
+#include <odb/nullable.hxx>
+
+#include <odb/sqlite/text.hxx>
+#include <odb/sqlite/blob.hxx>
+
+#pragma db object
+struct object
+{
+ #pragma db id auto
+ unsigned long id;
+
+ odb::sqlite::text t;
+
+ #pragma db column("_123foo_bar")
+ odb::sqlite::blob b;
+
+ std::vector<odb::sqlite::blob> bv;
+
+ odb::nullable<odb::sqlite::blob> nb;
+};
+
+#pragma db view object(object)
+struct view
+{
+ odb::sqlite::blob b;
+};
+
+#endif // TEST_HXX