summaryrefslogtreecommitdiff
path: root/odb/pgsql/connection.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/pgsql/connection.ixx')
-rw-r--r--odb/pgsql/connection.ixx44
1 files changed, 0 insertions, 44 deletions
diff --git a/odb/pgsql/connection.ixx b/odb/pgsql/connection.ixx
deleted file mode 100644
index 76d558b..0000000
--- a/odb/pgsql/connection.ixx
+++ /dev/null
@@ -1,44 +0,0 @@
-// file : odb/pgsql/connection.ixx
-// license : GNU GPL v2; see accompanying LICENSE file
-
-namespace odb
-{
- namespace pgsql
- {
- inline database& connection::
- database ()
- {
- return static_cast<connection_factory&> (factory_).database ();
- }
-
- 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 pgsql::query_base& q)
- {
- return query_<T, id_pgsql>::call (*this, n, q);
- }
-
- template <typename T>
- inline prepared_query<T> connection::
- prepare_query (const char* n, const odb::query_base& q)
- {
- // Translate to native query.
- //
- return prepare_query<T> (n, pgsql::query_base (q));
- }
- }
-}