blob: 64fdc57efc92eff4ee54f3f8241abaa3754878ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// file : odb/mysql/connection-factory.cxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <odb/mysql/connection-factory.hxx>
namespace odb
{
namespace mysql
{
//
// connection_factory
//
connection_factory::
~connection_factory ()
{
}
//
// new_connection_factory
//
shared_ptr<connection> new_connection_factory::
connect ()
{
return shared_ptr<connection> (new (shared) connection (*db_));
}
void new_connection_factory::
database (database_type& db)
{
db_ = &db;
}
}
}
|