aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/database.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-12-03 13:11:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-12-03 13:11:42 +0200
commitb9714c9f9a878ab363b85dc4add9eb16fe123d67 (patch)
tree0d7343352fe907e5ecddef2ae14a706d146d19cf /odb/mysql/database.hxx
parentbfe99354380c4a3a77a181cd8abaacab09a45fb5 (diff)
Add support for executing common query using static interface
Diffstat (limited to 'odb/mysql/database.hxx')
-rw-r--r--odb/mysql/database.hxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/odb/mysql/database.hxx b/odb/mysql/database.hxx
index cc26a6e..537a0e3 100644
--- a/odb/mysql/database.hxx
+++ b/odb/mysql/database.hxx
@@ -333,7 +333,11 @@ namespace odb
template <typename T>
unsigned long long
- erase_query (const mysql::query<T>&);
+ erase_query (const mysql::query_base&);
+
+ template <typename T>
+ unsigned long long
+ erase_query (const odb::query_base&);
// Query API.
//
@@ -351,7 +355,11 @@ namespace odb
template <typename T>
result<T>
- query (const mysql::query<T>&, bool cache = true);
+ query (const mysql::query_base&, bool cache = true);
+
+ template <typename T>
+ result<T>
+ query (const odb::query_base&, bool cache = true);
// Query preparation.
//
@@ -365,7 +373,11 @@ namespace odb
template <typename T>
prepared_query<T>
- prepare_query (const char* name, const mysql::query<T>&);
+ prepare_query (const char* name, const mysql::query_base&);
+
+ template <typename T>
+ prepared_query<T>
+ prepare_query (const char* name, const odb::query_base&);
// Transactions.
//