diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-12 17:24:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-19 11:40:30 +0200 |
commit | d94948b8bccfd8748245726487d54c41bb199baf (patch) | |
tree | c83176902ed8cb3c49532078e0705e2fc6621555 /odb/sqlite/connection.ixx | |
parent | 1c8dc77a0feae8b33e8c06f7ba076bd26d278054 (diff) |
Completion of prepared query support
Diffstat (limited to 'odb/sqlite/connection.ixx')
-rw-r--r-- | odb/sqlite/connection.ixx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/odb/sqlite/connection.ixx b/odb/sqlite/connection.ixx new file mode 100644 index 0000000..9117bd4 --- /dev/null +++ b/odb/sqlite/connection.ixx @@ -0,0 +1,30 @@ +// file : odb/sqlite/connection.ixx +// copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +namespace odb +{ + namespace sqlite + { + template <typename T> + inline prepared_query<T> connection:: + prepare_query (const char* n, const char* q) + { + return prepare_query<T> (n, query<T> (q)); + } + + template <typename T> + inline prepared_query<T> connection:: + prepare_query (const char* n, const std::string& q) + { + return prepare_query<T> (n, query<T> (q)); + } + + template <typename T> + inline prepared_query<T> connection:: + prepare_query (const char* n, const query<T>& q) + { + return query_<T, id_sqlite>::call (*this, n, q); + } + } +} |