Kea  1.5.0
isc::db Namespace Reference

Classes

class  AmbiguousDatabase
 Specification of the database backend to be used yields multiple results. More...
 
class  AnyArray
 Structure used to bind C++ input values to dynamic CQL parameters. More...
 
class  BackendSelector
 Config Backend selector. More...
 
class  CqlCommon
 Common operations in Cassandra exchanges. More...
 
class  CqlConnection
 Common CQL connector pool. More...
 
class  CqlExchange
 Cassandra Exchange. More...
 
struct  CqlFunction
 Wrapper over the bind and get functions that interface with Cassandra. More...
 
struct  CqlTaggedStatement
 Defines a single statement or query. More...
 
class  CqlVersionExchange
 Exchange used to retrieve schema version from the keyspace. More...
 
class  DatabaseConnection
 Common database connection class. More...
 
class  DataTruncated
 Data is truncated. More...
 
class  DbAccessParser
 Parse Database Parameters. More...
 
class  DbConfigError
 Error detected in the database configuration. More...
 
class  DbInvalidReadOnly
 Invalid 'readonly' value specification. More...
 
class  DbInvalidTimeout
 Invalid Timeout. More...
 
class  DbLogger
 Database logger class. More...
 
class  DbOpenError
 Exception thrown on failure to open database. More...
 
class  DbOperationError
 Exception thrown on failure to execute a database function. More...
 
class  DuplicateEntry
 Database duplicate entry error. More...
 
struct  ExchangeDataTypeHash
 a helper structure with a function call operator that returns key value in a format expected by std::hash. More...
 
class  InvalidAddressFamily
 Invalid address family used as input to Lease Manager. More...
 
class  InvalidRange
 Upper bound address is lower than lower bound address while retrieving a range of leases. More...
 
class  InvalidType
 Invalid type exception. More...
 
class  MultipleRecords
 Multiple lease records found where one expected. More...
 
class  MySqlBinding
 MySQL binding used in prepared statements. More...
 
struct  MySqlBindingTraits
 Trait class for column types supported in MySQL. More...
 
struct  MySqlBindingTraits< boost::posix_time::ptime >
 Specialization for MySQL TIMESTAMP type. More...
 
struct  MySqlBindingTraits< int16_t >
 Speclialization for MySQL SMALLINT type. More...
 
struct  MySqlBindingTraits< int32_t >
 Specialization for MySQL INT type. More...
 
struct  MySqlBindingTraits< int64_t >
 Specialization for MySQL BIGINT type. More...
 
struct  MySqlBindingTraits< int8_t >
 Specialization for MySQL TINYINT type. More...
 
struct  MySqlBindingTraits< std::string >
 Specialization for MySQL TEXT type. More...
 
struct  MySqlBindingTraits< uint16_t >
 Specialization for MySQL SMALLINT UNSIGNED type. More...
 
struct  MySqlBindingTraits< uint32_t >
 Specialization for MySQL INT UNSIGNED type. More...
 
struct  MySqlBindingTraits< uint64_t >
 Specialization for MySQL BIGINT UNSIGNED type. More...
 
struct  MySqlBindingTraits< uint8_t >
 Specialization for MySQL TINYINT UNSIGNED type. More...
 
class  MySqlConnection
 Common MySQL Connector Pool. More...
 
class  MySqlFreeResult
 Fetch and Release MySQL Results. More...
 
class  MySqlHolder
 MySQL Handle Holder. More...
 
class  MySqlTransaction
 RAII object representing MySQL transaction. More...
 
class  NoDatabaseName
 Exception thrown if name of database is not specified. More...
 
class  NoSuchDatabase
 Error when specified database could not be found in the server configuration. More...
 
class  PgSqlConnection
 Common PgSql Connector Pool. More...
 
class  PgSqlExchange
 Base class for marshalling data to and from PostgreSQL. More...
 
class  PgSqlHolder
 Postgresql connection handle Holder. More...
 
class  PgSqlResult
 RAII wrapper for PostgreSQL Result sets. More...
 
struct  PgSqlTaggedStatement
 Define a PostgreSQL statement. More...
 
class  PgSqlTransaction
 RAII object representing a PostgreSQL transaction. More...
 
struct  PsqlBindArray
 
class  ReadOnlyDb
 Attempt to modify data in read-only database. More...
 
class  ReconnectCtl
 Warehouses DB reconnect control values. More...
 
class  ServerSelector
 Server selector for associating objects in a database with specific servers. More...
 
class  SqlExchange
 Base class for backend exchanges. More...
 
class  StatementNotApplied
 Database statement not applied. More...
 
struct  StatementTagEqual
 Equality function for StatementMap keys. More...
 
struct  StatementTagHash
 Hash function for StatementMap keys. More...
 
struct  TaggedStatement
 MySQL Selection Statements. More...
 
class  Udt
 

Typedefs

typedef AnyArray AnyCollection
 Defines an array of arbitrary objects (used by Cassandra backend) More...
 
typedef std::vector< cass_byte_t > CassBlob
 Host identifier converted to Cassandra data type. More...
 
typedef boost::shared_ptr< const std::string > ConstStringPtr
 Structure used to bind C++ input values to dynamic SQL parameters The structure contains three vectors which store the input values, data lengths, and formats. More...
 
typedef CassError(* CqlBindFunction) (const boost::any &value, const size_t &index, CassStatement *statement)
 Binds a C++ object to a Cassandra statement's parameter. More...
 
typedef CassError(* CqlCollectionAppendFunction) (const boost::any &value, CassCollection *collection)
 Sets an item in a collection. More...
 
typedef std::shared_ptr< CqlConnectionCqlConnectionPtr
 
typedef std::unordered_map< ExchangeDataType, CqlFunction, ExchangeDataTypeHashCqlFunctionMap
 Defines a type for storing aux. Cassandra functions. More...
 
typedef CassError(* CqlGetFunction) (const boost::any &data, const CassValue *value)
 Converts a single Cassandra column value to a C++ object. More...
 
typedef CassError(* CqlUdtSetFunction) (const boost::any &value, const size_t &index, CassUserType *cass_user_type)
 Sets a member in a UDT. More...
 
typedef std::list< DbLoggerDbLoggerStack
 Database logger stack. More...
 
typedef std::vector< MySqlBindingPtrMySqlBindingCollection
 Collection of bindings. More...
 
typedef boost::shared_ptr< MySqlBindingMySqlBindingPtr
 Shared pointer to the Binding class. More...
 
typedef boost::shared_ptr< PsqlBindArrayPsqlBindArrayPtr
 Defines a smart pointer to PsqlBindArray. More...
 
typedef boost::shared_ptr< ReconnectCtlReconnectCtlPtr
 Pointer to an instance of ReconnectCtl. More...
 
typedef std::unordered_map< StatementTag, CqlTaggedStatement, StatementTagHash, StatementTagEqualStatementMap
 A container for all statements. More...
 
typedef std::pair< StatementTag, CqlTaggedStatementStatementMapEntry
 A type for a single entry on the statements map. More...
 
typedef char const *const StatementTag
 Statement index representing the statement name. More...
 
typedef std::pair< uint32_t, uint32_t > VersionPair
 Pair containing major and minor versions. More...
 

Enumerations

enum  ExchangeDataType {
  EXCHANGE_DATA_TYPE_NONE, EXCHANGE_DATA_TYPE_BOOL, EXCHANGE_DATA_TYPE_INT8, EXCHANGE_DATA_TYPE_INT16,
  EXCHANGE_DATA_TYPE_INT32, EXCHANGE_DATA_TYPE_INT64, EXCHANGE_DATA_TYPE_TIMESTAMP, EXCHANGE_DATA_TYPE_STRING,
  EXCHANGE_DATA_TYPE_BYTES, EXCHANGE_DATA_TYPE_UUID, EXCHANGE_DATA_TYPE_UDT, EXCHANGE_DATA_TYPE_COLLECTION
}
 Used to map server data types with internal backend storage data types. More...
 

Functions

void checkDbLoggerStack ()
 Check database logger stack. More...
 
ExchangeDataType exchangeType (const boost::any &object)
 Determine exchange type based on boost::any type. More...
 
ExchangeDataType exchangeType (const CassValueType &type)
 Determine exchange type based on CassValueType. More...
 
std::size_t hash_value (const CassValueType &key)
 hash function for CassTypeMap More...
 

Variables

CqlFunctionMap CQL_FUNCTIONS
 Functions used to interface with the Cassandra C++ driver. More...
 
isc::log::Logger database_logger ("database")
 Common database library logger. More...
 
DbLoggerStack db_logger_stack = { db_logger_translator }
 Global database logger stack (initialized to dhcpsrv logger) More...
 
DbLogger db_logger_translator (database_logger, db_message_map)
 Database logger translator. More...
 
const DbLogger::MessageMap db_message_map
 Map of translated messages. More...
 
const int MYSQL_DEFAULT_CONNECTION_TIMEOUT = 5
 
const uint32_t PG_SCHEMA_VERSION_MAJOR = 5
 Define PostgreSQL backend version: 5.0. More...
 
const uint32_t PG_SCHEMA_VERSION_MINOR = 0
 
const int PGSQL_DEFAULT_CONNECTION_TIMEOUT = 5
 
const size_t PGSQL_MAX_PARAMETERS_IN_QUERY = 32
 

Typedef Documentation

◆ AnyCollection

Defines an array of arbitrary objects (used by Cassandra backend)

Definition at line 90 of file cql_exchange.h.

◆ AnyTypeMap

typedef std::unordered_map<std::type_index, ExchangeDataType> isc::db::AnyTypeMap

Map types used to determine exchange type.

Defines type that maps specific type to an enum

Definition at line 81 of file cql_exchange.cc.

◆ CassBlob

typedef std::vector<cass_byte_t> isc::db::CassBlob

Host identifier converted to Cassandra data type.

Definition at line 37 of file cql_exchange.h.

◆ CassTypeMap

typedef std::unordered_map<uint8_t, ExchangeDataType> isc::db::CassTypeMap

Definition at line 85 of file cql_exchange.cc.

◆ ConstStringPtr

typedef boost::shared_ptr<const std::string> isc::db::ConstStringPtr

Structure used to bind C++ input values to dynamic SQL parameters The structure contains three vectors which store the input values, data lengths, and formats.

These vectors are passed directly into the PostgreSQL execute call.

Note that the data values are stored as pointers. These pointers need to be valid for the duration of the PostgreSQL statement execution. In other words populating them with pointers to values that go out of scope before statement is executed is a bad idea.

Other than vectors or buffers of binary data, all other values are currently converted to their string representation prior to sending them to PostgreSQL. All of the add() method variants which accept a non-string value internally create the conversion string which is then retained in the bind array to ensure scope.

smart pointer to const std::strings used by PsqlBindArray to ensure scope of strings supplying exchange values

Definition at line 42 of file pgsql_exchange.h.

◆ CqlBindFunction

typedef CassError(* isc::db::CqlBindFunction) (const boost::any &value, const size_t &index, CassStatement *statement)

Binds a C++ object to a Cassandra statement's parameter.

Used in all statements.

Parameters
valuethe value to be set or retreived
indexoffset of the value being processed
statementpointer to the parent statement being used

Definition at line 97 of file cql_exchange.h.

◆ CqlCollectionAppendFunction

typedef CassError(* isc::db::CqlCollectionAppendFunction) (const boost::any &value, CassCollection *collection)

Sets an item in a collection.

Used in INSERT & UPDATE statements.

Parameters
valuepointer to a value to be inserted or updated
collectionpointer to collection to be inserted or updated

Definition at line 112 of file cql_exchange.h.

◆ CqlConnectionPtr

typedef std::shared_ptr<CqlConnection> isc::db::CqlConnectionPtr

Definition at line 212 of file cql_connection.h.

◆ CqlFunctionMap

Defines a type for storing aux. Cassandra functions.

Definition at line 62 of file cql_exchange.cc.

◆ CqlGetFunction

typedef CassError(* isc::db::CqlGetFunction) (const boost::any &data, const CassValue *value)

Converts a single Cassandra column value to a C++ object.

Used in SELECT statements.

Parameters
datathe result will be stored here (this pointer will be updated)
valuethis value will be converted

Definition at line 120 of file cql_exchange.h.

◆ CqlUdtSetFunction

typedef CassError(* isc::db::CqlUdtSetFunction) (const boost::any &value, const size_t &index, CassUserType *cass_user_type)

Sets a member in a UDT.

Used in INSERT & UPDATE statements.

Parameters
valuethe value to be set or retreived
indexoffset of the value being processed
cass_user_typepointer to the user type that uses this member

Definition at line 105 of file cql_exchange.h.

◆ DbLoggerStack

typedef std::list<DbLogger> isc::db::DbLoggerStack

Database logger stack.

Definition at line 102 of file db_log.h.

◆ MySqlBindingCollection

Collection of bindings.

Definition at line 572 of file mysql_binding.h.

◆ MySqlBindingPtr

typedef boost::shared_ptr<MySqlBinding> isc::db::MySqlBindingPtr

Shared pointer to the Binding class.

Definition at line 130 of file mysql_binding.h.

◆ PsqlBindArrayPtr

typedef boost::shared_ptr<PsqlBindArray> isc::db::PsqlBindArrayPtr

Defines a smart pointer to PsqlBindArray.

Definition at line 193 of file pgsql_exchange.h.

◆ ReconnectCtlPtr

typedef boost::shared_ptr<ReconnectCtl> isc::db::ReconnectCtlPtr

Pointer to an instance of ReconnectCtl.

Definition at line 130 of file database_connection.h.

◆ StatementMap

A container for all statements.

Definition at line 107 of file cql_connection.h.

◆ StatementMapEntry

A type for a single entry on the statements map.

Definition at line 110 of file cql_connection.h.

◆ StatementTag

typedef char const* const isc::db::StatementTag

Statement index representing the statement name.

Definition at line 43 of file cql_connection.h.

◆ VersionPair

typedef std::pair<uint32_t, uint32_t> isc::db::VersionPair

Pair containing major and minor versions.

Todo:
: This is already defined in lease_mgr.h.

Need to have one definition. May need to move it if necessary.

Definition at line 40 of file cql_connection.h.

Enumeration Type Documentation

◆ DbMessageID

Database messages.

Enumerator
DB_INVALID_ACCESS 
PGSQL_DEALLOC_ERROR 
PGSQL_FATAL_ERROR 
PGSQL_START_TRANSACTION 
PGSQL_COMMIT 
PGSQL_ROLLBACK 
MYSQL_FATAL_ERROR 
MYSQL_START_TRANSACTION 
MYSQL_COMMIT 
MYSQL_ROLLBACK 
CQL_DEALLOC_ERROR 
CQL_CONNECTION_BEGIN_TRANSACTION 
CQL_CONNECTION_COMMIT 
CQL_CONNECTION_ROLLBACK 

Definition at line 51 of file db_log.h.

◆ ExchangeDataType

Used to map server data types with internal backend storage data types.

Enumerator
EXCHANGE_DATA_TYPE_NONE 
EXCHANGE_DATA_TYPE_BOOL 
EXCHANGE_DATA_TYPE_INT8 
EXCHANGE_DATA_TYPE_INT16 
EXCHANGE_DATA_TYPE_INT32 
EXCHANGE_DATA_TYPE_INT64 
EXCHANGE_DATA_TYPE_TIMESTAMP 
EXCHANGE_DATA_TYPE_STRING 
EXCHANGE_DATA_TYPE_BYTES 
EXCHANGE_DATA_TYPE_UUID 
EXCHANGE_DATA_TYPE_UDT 

User-Defined Type (used in Cassandra)

EXCHANGE_DATA_TYPE_COLLECTION 

Collection (used in Cassandra)

Definition at line 26 of file sql_common.h.

Function Documentation

◆ checkDbLoggerStack()

void isc::db::checkDbLoggerStack ( )

Check database logger stack.

Exceptions
Unexpectedif the stack is empty

Definition at line 62 of file db_log.cc.

References db_logger_stack, and isc_throw.

◆ exchangeType() [1/2]

ExchangeDataType isc::db::exchangeType ( const boost::any &  object)

Determine exchange type based on boost::any type.

Definition at line 642 of file cql_exchange.cc.

References CQL_FUNCTIONS, and isc_throw.

Referenced by isc::db::CqlCommon::bindData(), and isc::db::CqlCommon::getData().

◆ exchangeType() [2/2]

ExchangeDataType isc::db::exchangeType ( const CassValueType &  type)

Determine exchange type based on CassValueType.

Definition at line 661 of file cql_exchange.cc.

References CQL_FUNCTIONS, and isc_throw.

◆ hash_value()

std::size_t isc::db::hash_value ( const CassValueType &  key)

hash function for CassTypeMap

Required by g++ versions 5 and below.

Parameters
keybeing hashed
Returns
hash value

Definition at line 73 of file cql_exchange.cc.

Variable Documentation

◆ CQL_DRIVER_VERSION_MAJOR

constexpr uint32_t isc::db::CQL_DRIVER_VERSION_MAJOR = CASS_VERSION_MAJOR
constexpr

Define CQL backend version.

The CASS_VERSION_* constants are defined in a header provided by cpp-driver.

Definition at line 48 of file cql_connection.h.

◆ CQL_DRIVER_VERSION_MINOR

constexpr uint32_t isc::db::CQL_DRIVER_VERSION_MINOR = CASS_VERSION_MINOR
constexpr

Definition at line 49 of file cql_connection.h.

◆ CQL_FUNCTIONS

CqlFunctionMap isc::db::CQL_FUNCTIONS
Initial value:
=
{CqlBindNone, CqlUdtSetNone, CqlCollectionAppendNone, CqlGetNone}},
{CqlBindBool, CqlUdtSetBool, CqlCollectionAppendBool, CqlGetBool}},
{CqlBindInt8, CqlUdtSetInt8, CqlCollectionAppendInt8, CqlGetInt8}},
{CqlBindInt16, CqlUdtSetInt16, CqlCollectionAppendInt16, CqlGetInt16}},
{CqlBindInt32, CqlUdtSetInt32, CqlCollectionAppendInt32, CqlGetInt32}},
{CqlBindInt64, CqlUdtSetInt64, CqlCollectionAppendInt64, CqlGetInt64}},
{CqlBindString, CqlUdtSetString, CqlCollectionAppendString,
CqlGetString}},
{CqlBindBytes, CqlUdtSetBytes, CqlCollectionAppendBytes, CqlGetBytes}},
{CqlBindUuid, CqlUdtSetUuid, CqlCollectionAppendUuid, CqlGetUuid}},
{CqlBindUdt, CqlUdtSetUdt, CqlCollectionAppendUdt, CqlGetUdt}},
{CqlBindCollection, CqlUdtSetCollection, CqlCollectionAppendCollection,
CqlGetCollection}}}

Functions used to interface with the Cassandra C++ driver.

Definition at line 615 of file cql_exchange.cc.

Referenced by isc::db::CqlCommon::bindData(), exchangeType(), and isc::db::CqlCommon::getData().

◆ CQL_SCHEMA_VERSION_MAJOR

constexpr uint32_t isc::db::CQL_SCHEMA_VERSION_MAJOR = 3u
constexpr

◆ CQL_SCHEMA_VERSION_MINOR

constexpr uint32_t isc::db::CQL_SCHEMA_VERSION_MINOR = 0u
constexpr

◆ database_logger

isc::log::Logger isc::db::database_logger

Common database library logger.

Definition at line 45 of file db_log.h.

Referenced by isc::db::DatabaseConnection::toElement().

◆ DB_DBG_TRACE_DETAIL

const int isc::db::DB_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL

Database logging levels.

Defines the levels used to output debug messages in the database support. Note that higher numbers equate to more verbose (and detailed) output.

Additional information

Record detailed tracing. This is generally reserved for tracing access to the lease database.

Definition at line 40 of file db_log.h.

Referenced by isc::db::CqlConnection::commit(), isc::db::PgSqlConnection::commit(), isc::db::MySqlConnection::commit(), isc::db::CqlConnection::rollback(), isc::db::PgSqlConnection::rollback(), isc::db::MySqlConnection::rollback(), isc::db::CqlConnection::startTransaction(), isc::db::MySqlConnection::startTransaction(), and isc::db::PgSqlConnection::startTransaction().

◆ db_logger_stack

DbLoggerStack isc::db::db_logger_stack = { db_logger_translator }

Global database logger stack (initialized to dhcpsrv logger)

Definition at line 50 of file db_log.cc.

Referenced by checkDbLoggerStack().

◆ db_logger_translator

db::DbLogger isc::db::db_logger_translator

Database logger translator.

Definition at line 157 of file db_log.h.

◆ db_message_map

const db::DbLogger::MessageMap isc::db::db_message_map
Initial value:
= {
{ DB_INVALID_ACCESS, DATABASE_INVALID_ACCESS },
{ PGSQL_DEALLOC_ERROR, DATABASE_PGSQL_DEALLOC_ERROR },
{ PGSQL_FATAL_ERROR, DATABASE_PGSQL_FATAL_ERROR },
{ PGSQL_START_TRANSACTION, DATABASE_PGSQL_START_TRANSACTION },
{ PGSQL_COMMIT, DATABASE_PGSQL_COMMIT },
{ PGSQL_ROLLBACK, DATABASE_PGSQL_ROLLBACK },
{ MYSQL_FATAL_ERROR, DATABASE_MYSQL_FATAL_ERROR },
{ MYSQL_START_TRANSACTION, DATABASE_MYSQL_START_TRANSACTION },
{ MYSQL_COMMIT, DATABASE_MYSQL_COMMIT },
{ MYSQL_ROLLBACK, DATABASE_MYSQL_ROLLBACK },
{ CQL_DEALLOC_ERROR, DATABASE_CQL_DEALLOC_ERROR },
DATABASE_CQL_CONNECTION_BEGIN_TRANSACTION },
{ CQL_CONNECTION_COMMIT, DATABASE_CQL_CONNECTION_COMMIT },
{ CQL_CONNECTION_ROLLBACK, DATABASE_CQL_CONNECTION_ROLLBACK }
}

Map of translated messages.

DHCP server database message map.

Definition at line 24 of file db_log.cc.

◆ MLM_FALSE

◆ MLM_MYSQL_FETCH_FAILURE

const int isc::db::MLM_MYSQL_FETCH_FAILURE = 0

MySQL fetch failure code.

Definition at line 29 of file mysql_constants.h.

Referenced by isc::dhcp::MySqlHostDataSourceImpl::getHostCollection(), and isc::db::MySqlConnection::selectQuery().

◆ MLM_MYSQL_FETCH_SUCCESS

const int isc::db::MLM_MYSQL_FETCH_SUCCESS = 0

◆ MLM_TRUE

◆ MYSQL_DEFAULT_CONNECTION_TIMEOUT

const int isc::db::MYSQL_DEFAULT_CONNECTION_TIMEOUT = 5
Todo:
: Migrate this default value to src/bin/dhcpX/simple_parserX.cc

Definition at line 27 of file mysql_connection.cc.

Referenced by isc::db::MySqlConnection::openDatabase().

◆ MYSQL_SCHEMA_VERSION_MAJOR

const uint32_t isc::db::MYSQL_SCHEMA_VERSION_MAJOR = 7

◆ MYSQL_SCHEMA_VERSION_MINOR

const uint32_t isc::db::MYSQL_SCHEMA_VERSION_MINOR = 0

◆ OID_BOOL

const size_t isc::db::OID_BOOL = 16

Definition at line 58 of file pgsql_connection.h.

◆ OID_BYTEA

const size_t isc::db::OID_BYTEA = 17

Definition at line 59 of file pgsql_connection.h.

◆ OID_INT2

const size_t isc::db::OID_INT2 = 21

Definition at line 61 of file pgsql_connection.h.

◆ OID_INT4

const size_t isc::db::OID_INT4 = 23

Definition at line 62 of file pgsql_connection.h.

◆ OID_INT8

const size_t isc::db::OID_INT8 = 20

Definition at line 60 of file pgsql_connection.h.

◆ OID_NONE

const size_t isc::db::OID_NONE = 0

Constants for PostgreSQL data types These are defined by PostgreSQL in <catalog/pg_type.h>, but including this file is extraordinarily convoluted, so we'll use these to fill-in.

Definition at line 57 of file pgsql_connection.h.

◆ OID_TEXT

const size_t isc::db::OID_TEXT = 25

Definition at line 63 of file pgsql_connection.h.

◆ OID_TIMESTAMP

const size_t isc::db::OID_TIMESTAMP = 1114

Definition at line 65 of file pgsql_connection.h.

◆ OID_VARCHAR

const size_t isc::db::OID_VARCHAR = 1043

Definition at line 64 of file pgsql_connection.h.

◆ PG_SCHEMA_VERSION_MAJOR

const uint32_t isc::db::PG_SCHEMA_VERSION_MAJOR = 5

◆ PG_SCHEMA_VERSION_MINOR

◆ PGSQL_DEFAULT_CONNECTION_TIMEOUT

const int isc::db::PGSQL_DEFAULT_CONNECTION_TIMEOUT = 5
Todo:
: migrate this default timeout to src/bin/dhcpX/simple_parserX.cc

Definition at line 36 of file pgsql_connection.cc.

Referenced by isc::db::PgSqlConnection::openDatabase().

◆ PGSQL_MAX_PARAMETERS_IN_QUERY

const size_t isc::db::PGSQL_MAX_PARAMETERS_IN_QUERY = 32

Definition at line 28 of file pgsql_connection.h.

isc::db::EXCHANGE_DATA_TYPE_INT64
@ EXCHANGE_DATA_TYPE_INT64
Definition: sql_common.h:32
isc::db::CQL_CONNECTION_ROLLBACK
@ CQL_CONNECTION_ROLLBACK
Definition: db_log.h:68
isc::db::EXCHANGE_DATA_TYPE_BYTES
@ EXCHANGE_DATA_TYPE_BYTES
Definition: sql_common.h:35
isc::db::DB_INVALID_ACCESS
@ DB_INVALID_ACCESS
Definition: db_log.h:52
isc::db::PGSQL_ROLLBACK
@ PGSQL_ROLLBACK
Definition: db_log.h:58
isc::db::PGSQL_DEALLOC_ERROR
@ PGSQL_DEALLOC_ERROR
Definition: db_log.h:54
isc::db::EXCHANGE_DATA_TYPE_UUID
@ EXCHANGE_DATA_TYPE_UUID
Definition: sql_common.h:36
isc::db::CQL_DEALLOC_ERROR
@ CQL_DEALLOC_ERROR
Definition: db_log.h:65
isc::db::EXCHANGE_DATA_TYPE_BOOL
@ EXCHANGE_DATA_TYPE_BOOL
Definition: sql_common.h:28
isc::db::PGSQL_START_TRANSACTION
@ PGSQL_START_TRANSACTION
Definition: db_log.h:56
isc::db::PGSQL_FATAL_ERROR
@ PGSQL_FATAL_ERROR
Definition: db_log.h:55
isc::db::CQL_CONNECTION_COMMIT
@ CQL_CONNECTION_COMMIT
Definition: db_log.h:67
isc::db::MYSQL_ROLLBACK
@ MYSQL_ROLLBACK
Definition: db_log.h:63
isc::db::EXCHANGE_DATA_TYPE_INT32
@ EXCHANGE_DATA_TYPE_INT32
Definition: sql_common.h:31
isc::db::EXCHANGE_DATA_TYPE_NONE
@ EXCHANGE_DATA_TYPE_NONE
Definition: sql_common.h:27
isc::db::PGSQL_COMMIT
@ PGSQL_COMMIT
Definition: db_log.h:57
isc::db::MYSQL_START_TRANSACTION
@ MYSQL_START_TRANSACTION
Definition: db_log.h:61
isc::db::EXCHANGE_DATA_TYPE_INT16
@ EXCHANGE_DATA_TYPE_INT16
Definition: sql_common.h:30
isc::db::EXCHANGE_DATA_TYPE_UDT
@ EXCHANGE_DATA_TYPE_UDT
User-Defined Type (used in Cassandra)
Definition: sql_common.h:37
isc::db::EXCHANGE_DATA_TYPE_COLLECTION
@ EXCHANGE_DATA_TYPE_COLLECTION
Collection (used in Cassandra)
Definition: sql_common.h:38
isc::db::CQL_CONNECTION_BEGIN_TRANSACTION
@ CQL_CONNECTION_BEGIN_TRANSACTION
Definition: db_log.h:66
isc::db::EXCHANGE_DATA_TYPE_INT8
@ EXCHANGE_DATA_TYPE_INT8
Definition: sql_common.h:29
isc::db::MYSQL_COMMIT
@ MYSQL_COMMIT
Definition: db_log.h:62
isc::db::EXCHANGE_DATA_TYPE_STRING
@ EXCHANGE_DATA_TYPE_STRING
Definition: sql_common.h:34
isc::db::MYSQL_FATAL_ERROR
@ MYSQL_FATAL_ERROR
Definition: db_log.h:60