aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/database.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-12-03 13:12:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-12-03 13:12:15 +0200
commitde82079ff82a62e69ed3e70122ba9af6ecefcacf (patch)
treedc1ef0d4e2dbd609f53038d3cabcccb732f117ae /odb/pgsql/database.hxx
parent18add9bb3064d8a994cc1b0c3a50c5df2dff3bf9 (diff)
Add support for executing common query using static interface
Diffstat (limited to 'odb/pgsql/database.hxx')
-rw-r--r--odb/pgsql/database.hxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/odb/pgsql/database.hxx b/odb/pgsql/database.hxx
index 02aa240..714dcfe 100644
--- a/odb/pgsql/database.hxx
+++ b/odb/pgsql/database.hxx
@@ -246,7 +246,11 @@ namespace odb
template <typename T>
unsigned long long
- erase_query (const pgsql::query<T>&);
+ erase_query (const pgsql::query_base&);
+
+ template <typename T>
+ unsigned long long
+ erase_query (const odb::query_base&);
// Query API.
//
@@ -264,7 +268,11 @@ namespace odb
template <typename T>
result<T>
- query (const pgsql::query<T>&);
+ query (const pgsql::query_base&);
+
+ template <typename T>
+ result<T>
+ query (const odb::query_base&);
// Query preparation.
//
@@ -278,7 +286,11 @@ namespace odb
template <typename T>
prepared_query<T>
- prepare_query (const char* name, const pgsql::query<T>&);
+ prepare_query (const char* name, const pgsql::query_base&);
+
+ template <typename T>
+ prepared_query<T>
+ prepare_query (const char* name, const odb::query_base&);
// Transactions.
//