nanodbc
A small C++ wrapper for the native C ODBC API
Loading...
Searching...
No Matches
nanodbc::catalog::primary_keys Class Reference

Result set for a list of columns that compose the primary key of a single table. More...

#include <nanodbc.h>

Public Member Functions

bool next ()
 Move to the next result in the result set.
 
string table_catalog () const
 Fetch table catalog.
 
string table_schema () const
 Fetch table schema.
 
string table_name () const
 Fetch table name.
 
string column_name () const
 Fetch column name.
 
short column_number () const
 Column sequence number in the key (starting with 1).
 
string primary_key_name () const
 Primary key name.
 

Detailed Description

Result set for a list of columns that compose the primary key of a single table.

Member Function Documentation

◆ column_number()

short nanodbc::catalog::primary_keys::column_number ( ) const

Column sequence number in the key (starting with 1).

Returns valye of KEY_SEQ column in result set returned by SQLPrimaryKeys.

◆ primary_key_name()

string nanodbc::catalog::primary_keys::primary_key_name ( ) const

Primary key name.

NULL if not applicable to the data source. Returns valye of PK_NAME column in result set returned by SQLPrimaryKeys.


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