diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-25 14:15:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-25 14:15:11 +0200 |
commit | acee0bb337fe1895a4d06166effccfbade095a1c (patch) | |
tree | dc70b1ba08e3b88b99c83255d89e872f49c2b8e8 /odb/sqlite/query.hxx | |
parent | b5d76bf8ab11e73b260cbc4343c1f947c0da2699 (diff) |
Make queries without by-reference parameters immutable
This makes it possible to share such queries between multiple threads
without the need for synchronization.
Diffstat (limited to 'odb/sqlite/query.hxx')
-rw-r--r-- | odb/sqlite/query.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/sqlite/query.hxx b/odb/sqlite/query.hxx index 517fd2f..f694b2e 100644 --- a/odb/sqlite/query.hxx +++ b/odb/sqlite/query.hxx @@ -92,6 +92,12 @@ namespace odb query_params& operator= (const query_params&); + query_params& + operator+= (const query_params&); + + void + add (details::shared_ptr<query_param>); + private: typedef std::vector<details::shared_ptr<query_param> > params; |