summaryrefslogtreecommitdiff
path: root/odb/mysql/connection-factory.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-21 16:27:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-21 16:27:34 +0200
commite84fa8e3b8defe24a00e14ba046e8e71b438ce0b (patch)
tree2d17fab73f0bbb1a96f365e38ecbd63e033af36f /odb/mysql/connection-factory.hxx
parent47d344f31f7a1a980d807c142e0a36b09db3b1f3 (diff)
Add odb::connection class
This abstract class represents a connection to the database. One can use it to start a transaction or to execute a native statement out of a transaction. Before we had concrete connection classes in the database runtime libraries (e.g., odb::mysql::connection). Now these classes derive from odb::connection.
Diffstat (limited to 'odb/mysql/connection-factory.hxx')
-rw-r--r--odb/mysql/connection-factory.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/mysql/connection-factory.hxx b/odb/mysql/connection-factory.hxx
index eb7380c..399fdae 100644
--- a/odb/mysql/connection-factory.hxx
+++ b/odb/mysql/connection-factory.hxx
@@ -28,7 +28,7 @@ namespace odb
class LIBODB_MYSQL_EXPORT connection_factory
{
public:
- virtual details::shared_ptr<connection>
+ virtual connection_ptr
connect () = 0;
public:
@@ -49,7 +49,7 @@ namespace odb
{
}
- virtual details::shared_ptr<connection>
+ virtual connection_ptr
connect ();
virtual void
@@ -97,7 +97,7 @@ namespace odb
// @@ check min_ <= max_
}
- virtual details::shared_ptr<connection>
+ virtual connection_ptr
connect ();
virtual void