From e5d0186db99492a139237067bab841a5b83463af Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 24 Jan 2024 19:01:19 +0300 Subject: Turn libodb-sqlite repository into package for muti-package repository --- libodb-sqlite/odb/sqlite/text-stream.hxx | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 libodb-sqlite/odb/sqlite/text-stream.hxx (limited to 'libodb-sqlite/odb/sqlite/text-stream.hxx') diff --git a/libodb-sqlite/odb/sqlite/text-stream.hxx b/libodb-sqlite/odb/sqlite/text-stream.hxx new file mode 100644 index 0000000..7a9b467 --- /dev/null +++ b/libodb-sqlite/odb/sqlite/text-stream.hxx @@ -0,0 +1,31 @@ +// file : odb/sqlite/text-stream.hxx +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_SQLITE_TEXT_STREAM_HXX +#define ODB_SQLITE_TEXT_STREAM_HXX + +#include + +#include +#include + +namespace odb +{ + namespace sqlite + { + class text_stream: public stream + { + public: + text_stream (const text& b, bool rw) + : stream (b.db ().c_str (), + b.table ().c_str (), + b.column ().c_str (), + b.rowid (), + rw) {} + }; + } +} + +#include + +#endif // ODB_SQLITE_TEXT_STREAM_HXX -- cgit v1.1