diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-24 19:01:19 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-24 19:01:19 +0300 |
commit | e5d0186db99492a139237067bab841a5b83463af (patch) | |
tree | 61719595e998314e58383c5081da16d7457a63e7 /libodb-sqlite/odb/sqlite/text-stream.hxx | |
parent | c53136bd7d266fccaca679d0471dd8ac0ce91373 (diff) |
Turn libodb-sqlite repository into package for muti-package repositorylibodb-sqlite
Diffstat (limited to 'libodb-sqlite/odb/sqlite/text-stream.hxx')
-rw-r--r-- | libodb-sqlite/odb/sqlite/text-stream.hxx | 31 |
1 files changed, 31 insertions, 0 deletions
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 <odb/pre.hxx> + +#include <odb/sqlite/text.hxx> +#include <odb/sqlite/stream.hxx> + +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 <odb/post.hxx> + +#endif // ODB_SQLITE_TEXT_STREAM_HXX |