Kea 2.7.1
isc::db::PgSqlTaggedStatement Struct Reference

Define a PostgreSQL statement. More...

#include <pgsql_connection.h>

Public Attributes

const char * name
 Short name of the query.
int nbparams
 Number of parameters for a given query.
const char * text
 Text representation of the actual query.
 OID types.

Detailed Description

Define a PostgreSQL statement.

Each statement is associated with an index, which is used to reference the associated prepared statement.

Definition at line 34 of file pgsql_connection.h.

Member Data Documentation

◆ name

const char* isc::db::PgSqlTaggedStatement::name

Short name of the query.

Definition at line 46 of file pgsql_connection.h.

Referenced by isc::dhcp::PgSqlLeaseStatsQuery::start().

◆ nbparams

int isc::db::PgSqlTaggedStatement::nbparams

Number of parameters for a given query.

Definition at line 36 of file pgsql_connection.h.

◆ text

const char* isc::db::PgSqlTaggedStatement::text

Text representation of the actual query.

Definition at line 49 of file pgsql_connection.h.

◆ types

const Oid isc::db::PgSqlTaggedStatement::types[PGSQL_MAX_PARAMETERS_IN_QUERY]

OID types.

Specify parameter types. See /usr/include/postgresql/catalog/pg_type.h. For some reason that header does not export those parameters. Those OIDs must match both input and output parameters.

Definition at line 43 of file pgsql_connection.h.

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