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

LRU cache for prepared statements shared across sqlite::connection. More...

#include <cstddef>
#include <list>
#include <memory>
#include <mutex>
#include <string>
#include <string_view>
#include <unordered_map>
Include dependency graph for statement_cache.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sqlite::v2::statement_cache_config
 Configuration knobs for the built-in LRU statement cache. More...
class  sqlite::v2::statement_cache
 Tracks prepared statements by SQL text and hands them out on demand. More...
struct  sqlite::v2::statement_cache::entry

Namespaces

namespace  sqlite
namespace  sqlite::v2

Detailed Description

LRU cache for prepared statements shared across sqlite::connection.

Keeping commonly used statements around avoids parse/prepare overhead and honors SQLite's recommendation to reuse sqlite3_stmt* objects whenever possible.

Definition in file statement_cache.hpp.