KDB KI_INFO options constants

>Database Constants

KI_INFO constants

These are enumerated constants used with the KI_INFO KDB database routines to determine how the information should be gathered especially on SQL databases where row counting is expensive. There are two types of option, an enumeration of the row counting modes and an independent serial number attribute which can be added.

DEF ENUM enumeration name KDB_INFO_OPTS_ENUM

Enumeration ValueValueDescription
_KDB_INFO_DEFAULT0x00Get exact row count and serial for KDB but return zero for SQL databases
_KDB_INFO_ROW_COUNT0x01Get exact row count
_KDB_INFO_NO_ROW_COUNT0x02Never get row count, always return zero
_KDB_INFO_TEST_FOR_ROWS0x03Return zero if empty table or one if at least one row available
_KDB_INFO_APPROX_ROWS0x04Get approximate row count
_KDB_INFO_SERIAL0x08Get exact serial number
_KDB_INFO_BLOCKS0x10Get approximate free and used block counts
_KDB_INFO_NAME_ONLY0x20Get name, mode, connection only.
_KDB_INFO_COMPRESSION_STATE0x40Get compression state

Back to the list of Enumerations and Constants