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

The native SQLite3 driver: names its handle structs, its driver id and its capabilities. More...

#include <Handles.hpp>

Public Types

using Statement = Sqlite3::Statement
 The statement handle struct.
 
using Connection = Sqlite3::Connection
 The connection handle struct.
 

Static Public Attributes

static constexpr SqlDriverId Id = SqlDriverId::Sqlite3
 The id the tagged handles carry for this driver.
 
static constexpr std::string_view Name = "SQLite3"
 
static constexpr bool SupportsParameterArrays = false
 SQLite executes one parameter set per step; a batch is a loop over rows, not one native call.
 
static constexpr bool SupportsRowArrayFetch = false
 SQLite steps one row at a time; there is no block fetch into array-bound columns.
 
static constexpr bool StatementsDieWithConnection = false
 
static constexpr bool TranscodesNarrowText = false
 Narrow text is passed to and from SQLite as UTF-8, byte-exact; there is no client codepage.
 
static constexpr bool HasCatalogFunctions = false
 SQLite has no catalog functions: SqlSchema reads the catalog with the SQL of the SQLite formatter.
 

Detailed Description

The native SQLite3 driver: names its handle structs, its driver id and its capabilities.

Definition at line 57 of file Handles.hpp.

Member Typedef Documentation

◆ Statement

The statement handle struct.

Definition at line 60 of file Handles.hpp.

◆ Connection

The connection handle struct.

Definition at line 63 of file Handles.hpp.

Member Data Documentation

◆ Id

constexpr SqlDriverId Lightweight::Driver::Sqlite3::Driver::Id = SqlDriverId::Sqlite3
staticconstexpr

The id the tagged handles carry for this driver.

Definition at line 66 of file Handles.hpp.

◆ Name

constexpr std::string_view Lightweight::Driver::Sqlite3::Driver::Name = "SQLite3"
staticconstexpr

The driver's name, as error messages show it (IM001 "... is not supported by the SQLite3 driver") and Driver::NameOf reports it: the kind of driver, beside "ODBC". Not what SqlConnection::DriverName() reports: that names the driver a connection runs on — for ODBC the driver library the driver manager loaded, for this driver the fixed "sqlite3-native" (see Driver::Sqlite3::DriverName).

Definition at line 72 of file Handles.hpp.

◆ SupportsParameterArrays

constexpr bool Lightweight::Driver::Sqlite3::Driver::SupportsParameterArrays = false
staticconstexpr

SQLite executes one parameter set per step; a batch is a loop over rows, not one native call.

Definition at line 75 of file Handles.hpp.

◆ SupportsRowArrayFetch

constexpr bool Lightweight::Driver::Sqlite3::Driver::SupportsRowArrayFetch = false
staticconstexpr

SQLite steps one row at a time; there is no block fetch into array-bound columns.

Definition at line 78 of file Handles.hpp.

◆ StatementsDieWithConnection

constexpr bool Lightweight::Driver::Sqlite3::Driver::StatementsDieWithConnection = false
staticconstexpr

Whether closing a connection destroys its statement handles, so that they must not be freed afterwards. False: a statement's state outlives its connection, orphaned, until the statement is freed.

Definition at line 82 of file Handles.hpp.

◆ TranscodesNarrowText

constexpr bool Lightweight::Driver::Sqlite3::Driver::TranscodesNarrowText = false
staticconstexpr

Narrow text is passed to and from SQLite as UTF-8, byte-exact; there is no client codepage.

Definition at line 85 of file Handles.hpp.

◆ HasCatalogFunctions

constexpr bool Lightweight::Driver::Sqlite3::Driver::HasCatalogFunctions = false
staticconstexpr

SQLite has no catalog functions: SqlSchema reads the catalog with the SQL of the SQLite formatter.

Definition at line 88 of file Handles.hpp.


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