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

What a catalog call asks for: the ODBC catalog function and its arguments, in driver-neutral terms. More...

#include <Concept.hpp>

Public Types

enum class  Kind : std::uint8_t {
  Tables , Columns , PrimaryKeys , ForeignKeys ,
  Statistics
}
 The catalog function. More...
 

Public Attributes

Kind kind = Kind::Tables
 The catalog function to open.
 
std::string_view catalog
 The catalog (database) name; empty for none. For ForeignKeys: of the primary-key table.
 
std::string_view schema
 
std::string_view table
 
std::string_view foreignCatalog
 ForeignKeys only: the catalog name of the foreign-key table; empty for none.
 
std::string_view foreignSchema
 ForeignKeys only: the schema name of the foreign-key table; empty for none.
 
std::string_view foreignTable
 ForeignKeys only: the name of the foreign-key table; empty for any.
 
bool uniqueOnly = false
 Statistics only: whether to report the unique indexes only.
 
bool wideText = false
 

Detailed Description

What a catalog call asks for: the ODBC catalog function and its arguments, in driver-neutral terms.

The result set a driver opens for it has the layout the ODBC specification gives that catalog function; a driver without catalog functions (HasCatalogFunctions is false) opens none and fails the call (see OpenCatalog).

Definition at line 135 of file Concept.hpp.

Member Enumeration Documentation

◆ Kind

enum class Lightweight::Driver::SqlCatalogRequest::Kind : std::uint8_t
strong

The catalog function.

Enumerator
Tables 

the tables of a catalog and schema, narrowed to a table name search pattern

Columns 

every column of a table

PrimaryKeys 

the primary key of a table

ForeignKeys 

the foreign keys between a primary-key table and a foreign-key table

Statistics 

the indexes of a table

Definition at line 138 of file Concept.hpp.

Member Data Documentation

◆ kind

Kind Lightweight::Driver::SqlCatalogRequest::kind = Kind::Tables

The catalog function to open.

Definition at line 148 of file Concept.hpp.

◆ catalog

std::string_view Lightweight::Driver::SqlCatalogRequest::catalog

The catalog (database) name; empty for none. For ForeignKeys: of the primary-key table.

Definition at line 150 of file Concept.hpp.

◆ schema

std::string_view Lightweight::Driver::SqlCatalogRequest::schema

The schema name, or for Tables and Columns a search pattern; empty for none. For ForeignKeys: of the primary-key table.

Definition at line 153 of file Concept.hpp.

◆ table

std::string_view Lightweight::Driver::SqlCatalogRequest::table

The table name, or for Tables and Columns a search pattern; empty for all tables (Tables) or for an open side (ForeignKeys). For ForeignKeys: the primary-key table.

Definition at line 156 of file Concept.hpp.

◆ foreignCatalog

std::string_view Lightweight::Driver::SqlCatalogRequest::foreignCatalog

ForeignKeys only: the catalog name of the foreign-key table; empty for none.

Definition at line 158 of file Concept.hpp.

◆ foreignSchema

std::string_view Lightweight::Driver::SqlCatalogRequest::foreignSchema

ForeignKeys only: the schema name of the foreign-key table; empty for none.

Definition at line 160 of file Concept.hpp.

◆ foreignTable

std::string_view Lightweight::Driver::SqlCatalogRequest::foreignTable

ForeignKeys only: the name of the foreign-key table; empty for any.

Definition at line 162 of file Concept.hpp.

◆ uniqueOnly

bool Lightweight::Driver::SqlCatalogRequest::uniqueOnly = false

Statistics only: whether to report the unique indexes only.

Definition at line 164 of file Concept.hpp.

◆ wideText

bool Lightweight::Driver::SqlCatalogRequest::wideText = false

Whether the driver is to receive the text as UTF-16 (see SqlConnection::AcceptsWideQueryText()); a driver taking UTF-8 only ignores it.

Definition at line 167 of file Concept.hpp.


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