Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
core
connection-pool.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2008 Maciej Sobczak
3
// Distributed under the Boost Software License, Version 1.0.
4
// (See accompanying file LICENSE_1_0.txt or copy at
5
// http://www.boost.org/LICENSE_1_0.txt)
6
//
7
8
#ifndef SOCI_CONNECTION_POOL_H_INCLUDED
9
#define SOCI_CONNECTION_POOL_H_INCLUDED
10
11
#include "
soci-config.h
"
12
// std
13
#include <cstddef>
14
15
namespace
soci
16
{
17
18
class
session;
19
20
class
SOCI_DECL
connection_pool
21
{
22
public
:
23
explicit
connection_pool
(std::size_t size);
24
~
connection_pool
();
25
26
session
& at(std::size_t pos);
27
28
std::size_t lease();
29
bool
try_lease(std::size_t & pos,
int
timeout);
30
void
give_back(std::size_t pos);
31
32
private
:
33
struct
connection_pool_impl
;
34
connection_pool_impl
*
pimpl_
;
35
};
36
37
}
38
39
#endif // SOCI_CONNECTION_POOL_H_INCLUDED
SOCI_DECL
#define SOCI_DECL
Definition:
soci-config.h:31
soci::connection_pool::pimpl_
connection_pool_impl * pimpl_
Definition:
connection-pool.h:33
soci::session
Definition:
session.h:40
soci::connection_pool::connection_pool_impl
Definition:
connection-pool.cpp:24
soci-config.h
soci
Definition:
db2/common.h:15
soci::connection_pool
Definition:
connection-pool.h:20
asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40