Lightweight 0.20261105.1
Loading...
Searching...
No Matches
Lightweight::Driver::Sqlite3::Connection Struct Reference

The SQLite3 driver's connection handle struct: one pointer to the driver-owned connection state. More...

#include <Handles.hpp>

Public Member Functions

bool operator== (Connection const &) const =default
 Compares the state pointers.
 

Public Attributes

ConnectionState * state {}
 The connection's state; null for a connection that holds nothing.
 

Detailed Description

The SQLite3 driver's connection handle struct: one pointer to the driver-owned connection state.

Threading: a connection and its statements are used by one thread at a time, their destruction included (a statement must not be freed on one thread while another thread uses its connection). The driver keeps its bookkeeping of a connection's statements without a lock. Different connections may be used on different threads at the same time; the driver refuses to connect with a SQLite library built single-threaded (SQLITE_THREADSAFE=0).

Definition at line 37 of file Handles.hpp.

Member Data Documentation

◆ state

ConnectionState* Lightweight::Driver::Sqlite3::Connection::state {}

The connection's state; null for a connection that holds nothing.

Definition at line 40 of file Handles.hpp.


The documentation for this struct was generated from the following file: