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

The ODBC driver: names its handle structs and its driver id. More...

#include <Handles.hpp>

Public Types

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

Static Public Attributes

static constexpr SqlDriverId Id = SqlDriverId::Odbc
 The id the tagged handles carry for this driver.
 
static constexpr std::string_view Name = "ODBC"
 The driver's name, as error messages show it.
 
static constexpr bool SupportsParameterArrays = true
 Parameter arrays (SQL_ATTR_PARAMSET_SIZE > 1) execute a whole batch in one SQLExecute.
 
static constexpr bool SupportsRowArrayFetch = true
 Row arrays (SQL_ATTR_ROW_ARRAY_SIZE > 1 with SQLFetchScroll) fetch a block of rows per call.
 
static constexpr bool StatementsDieWithConnection = true
 
static constexpr bool TranscodesNarrowText = true
 
static constexpr bool HasCatalogFunctions = true
 The catalog is read with the ODBC catalog functions (SQLTables, SQLColumns, SQLStatistics, ...).
 

Detailed Description

The ODBC driver: names its handle structs and its driver id.

Definition at line 65 of file Handles.hpp.

Member Typedef Documentation

◆ Statement

The statement handle struct.

Definition at line 68 of file Handles.hpp.

◆ Connection

The connection handle struct.

Definition at line 71 of file Handles.hpp.

Member Data Documentation

◆ Id

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

The id the tagged handles carry for this driver.

Definition at line 74 of file Handles.hpp.

◆ Name

constexpr std::string_view Lightweight::Driver::Odbc::Driver::Name = "ODBC"
staticconstexpr

The driver's name, as error messages show it.

Definition at line 77 of file Handles.hpp.

◆ SupportsParameterArrays

constexpr bool Lightweight::Driver::Odbc::Driver::SupportsParameterArrays = true
staticconstexpr

Parameter arrays (SQL_ATTR_PARAMSET_SIZE > 1) execute a whole batch in one SQLExecute.

Definition at line 80 of file Handles.hpp.

◆ SupportsRowArrayFetch

constexpr bool Lightweight::Driver::Odbc::Driver::SupportsRowArrayFetch = true
staticconstexpr

Row arrays (SQL_ATTR_ROW_ARRAY_SIZE > 1 with SQLFetchScroll) fetch a block of rows per call.

Definition at line 83 of file Handles.hpp.

◆ StatementsDieWithConnection

constexpr bool Lightweight::Driver::Odbc::Driver::StatementsDieWithConnection = true
staticconstexpr

Whether closing a connection destroys its statement handles, so that they must not be freed afterwards. True for ODBC: SQLFreeHandle on the connection frees the statements allocated on it.

Definition at line 87 of file Handles.hpp.

◆ TranscodesNarrowText

constexpr bool Lightweight::Driver::Odbc::Driver::TranscodesNarrowText = true
staticconstexpr

Narrow (SQL_C_CHAR) text may be transcoded through the client codepage (psqlODBC does), so whether it round-trips byte-exact depends on the backend.

Definition at line 91 of file Handles.hpp.

◆ HasCatalogFunctions

constexpr bool Lightweight::Driver::Odbc::Driver::HasCatalogFunctions = true
staticconstexpr

The catalog is read with the ODBC catalog functions (SQLTables, SQLColumns, SQLStatistics, ...).

Definition at line 94 of file Handles.hpp.


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