VSQLite++ 0.3
Loading...
Searching...
No Matches
connection_pool.hpp File Reference

Cooperative pool that multiplexes a bounded number of sqlite::connection instances. More...

#include <condition_variable>
#include <cstddef>
#include <functional>
#include <memory>
#include <mutex>
#include <vector>
#include <sqlite/connection.hpp>
Include dependency graph for connection_pool.hpp:

Go to the source code of this file.

Classes

class  sqlite::v2::connection_pool
 Thread-safe pool for leasing reusable SQLite connections. More...
class  sqlite::v2::connection_pool::lease

Namespaces

namespace  sqlite
namespace  sqlite::v2

Detailed Description

Cooperative pool that multiplexes a bounded number of sqlite::connection instances.

The pool hands out scoped leases that automatically return the connection to the pool when destroyed, allowing applications to share a small set of connections across many callers.

Definition in file connection_pool.hpp.