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

Helpers for configuring SQLite's global threading mode. More...

Go to the source code of this file.

Namespaces

namespace  sqlite
namespace  sqlite::v2

Enumerations

enum class  sqlite::v2::threading_mode { sqlite::v2::single_thread , sqlite::v2::multi_thread , sqlite::v2::serialized }
 Mirrors the sqlite3_config(SQLITE_CONFIG_*) threading options. More...

Functions

bool sqlite::v2::configure_threading (threading_mode mode)
 Calls sqlite3_config to switch SQLite into the requested threading mode.
threading_mode sqlite::v2::current_threading_mode ()
 Returns the currently configured threading_mode.

Detailed Description

Helpers for configuring SQLite's global threading mode.

SQLite needs to be configured exactly once before any connections are opened; these functions provide a type-safe way to do so from C++.

Definition in file threading.hpp.