Products Support Documentation Download
sqlrtypes.h File Reference

Header for RDM ODBC Level-1 types. More...

#include "sqltypes.h"
#include "rdmrowidtypes.h"
#include "rdmbcdtypes.h"
Include dependency graph for sqlrtypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RDM_TIMETZ_STRUCT
 
struct  RDM_TIMESTAMPTZ_STRUCT
 

Macros

#define SQL_EMPSTR   ((SQLCHAR *) "")
 
#define SQL_EMPWSTR   ((SQLWCHAR *) L"")
 
#define SQL_EMPTSTR   ((SQLTCHAR *) RDM_T(""))
 
#define SQL_TCHAR   SQL_CHAR
 
#define SQL_TVARCHAR   SQL_VARCHAR
 
#define SQL_TLONGVARCHAR   SQL_LONGVARCHAR
 
#define SQL_ROWID   SQL_DRIVER_SQL_TYPE_BASE
 
#define SQL_RDM_TIMETZ   (SQL_DRIVER_SQL_TYPE_BASE + 1)
 
#define SQL_RDM_TIMESTAMPTZ   (SQL_DRIVER_SQL_TYPE_BASE + 2)
 
#define SQL_C_ROWID   SQL_ROWID
 
#define SQL_C_RDM_TIMETZ   SQL_RDM_TIMETZ
 
#define SQL_C_RDM_TIMESTAMPTZ   SQL_RDM_TIMESTAMPTZ
 
#define SQL_RDM_DEF_PRECISION   32
 
#define SQL_RDM_DEF_SCALE   0
 
#define SQL_INIT   5
 
#define SQL_MODE_EXCLUSIVE   2
 
#define SQL_MODE_READ_WRITE_APPEND   3
 
#define SQL_MODE_EXCLUSIVE_APPEND   4
 
#define SQL_MODE_READ_WRITE_CREAT   5
 
#define SQL_MODE_EXCLUSIVE_CREAT   6
 
#define SQL_MODE_READ_WRITE_CREAT_TRUNC   7
 
#define SQL_MODE_EXCLUSIVE_CREAT_TRUNC   8
 
#define SQL_MODE_READ_WRITE_CREAT_EXCL   9
 
#define SQL_MODE_EXCLUSIVE_CREAT_EXCL   10
 
#define SQL_ATTR_RDM_CAT_BUFFER   (SQL_DRIVER_CONN_ATTR_BASE) /* SetCatalog */
 
#define SQL_ATTR_RDM_CAT_FILE   (SQL_DRIVER_CONN_ATTR_BASE + 1) /* SetCatalogFromFile */
 
#define SQL_ATTR_RDM_ENCRYPT   (SQL_DRIVER_CONN_ATTR_BASE + 2) /* encryption context set/get */
 
#define SQL_ATTR_RDM_REMOTE_NAME   (SQL_DRIVER_CONN_ATTR_BASE + 3)
 
#define SQL_ATTR_RDM_SQL_OPTIONS   (SQL_DRIVER_CONN_ATTR_BASE + 4)
 
#define SQL_ATTR_RDM_USE_CATALOG   (SQL_DRIVER_CONN_ATTR_BASE + 5)
 
#define SQL_ATTR_RDM_LOCALE   (SQL_DRIVER_CONN_ATTR_BASE + 6)
 
#define SQL_ATTR_RDM_OPTIMIZE_PARAMETERS   (SQL_DRIVER_CONN_ATTR_BASE + 7) /* optimize param'd query */
 
#define SQL_ATTR_RDM_ROUNDING_MODE   (SQL_DRIVER_CONN_ATTR_BASE + 8)
 
#define SQL_ATTR_RDM_STORAGE_MEDIA   (SQL_DRIVER_CONN_ATTR_BASE + 9)
 
#define SQL_ATTR_RDM_TFS_HANDLE   (SQL_DRIVER_CONN_ATTR_BASE + 10) /* TFS handle */
 
#define SQL_ATTR_RDM_PACK_WRITE_CHUNK_SIZE   (SQL_DRIVER_CONN_ATTR_BASE + 101)
 Pack-related options. More...
 
#define SQL_ATTR_RDM_PACK_FILE_SIZE_MAX   (SQL_DRIVER_CONN_ATTR_BASE + 102)
 
#define SQL_ATTR_RDM_DB_SIZE_MAX   (SQL_DRIVER_CONN_ATTR_BASE + 103)
 
#define SQL_ATTR_RDM_VACUUM_PERCENTAGE   (SQL_DRIVER_CONN_ATTR_BASE + 104)
 
#define SQL_ATTR_RDM_VACUUM_READ_CHUNK_SIZE   (SQL_DRIVER_CONN_ATTR_BASE + 105)
 
#define SQL_ATTR_RDM_VACUUM_WRITE_CHUNK_SIZE   (SQL_DRIVER_CONN_ATTR_BASE + 106)
 
#define SQL_ATTR_RDM_IDINDEX_FLUSH_THRESHOLD   (SQL_DRIVER_CONN_ATTR_BASE + 107)
 
#define SQL_ATTR_RDM_IDINDEX_FLUSH_THRESHOLD_ON_CLOSE   (SQL_DRIVER_CONN_ATTR_BASE + 108)
 
#define SQL_RDM_UNSET   ((SQLULEN) -1)
 
#define SQL_ATTR_RDM_FILE_LINE   501 /* logical line number */
 
#define SQL_ATTR_RDM_FILE_NAME   502 /* logical file name */
 
#define SQL_DIAG_RDM_FILE_NAME   1001
 
#define SQL_DIAG_RDM_FILE_LINE   1002
 
#define SQL_DIAG_RDM_FILE_COLUMN   1003
 
#define SQL_CT_LOCAL   ((SQLULEN) CT_LOCAL)
 
#define SQL_CT_REMOTE   ((SQLULEN) CT_REMOTE)
 
#define SQL_CT_UNKNOWN   ((SQLULEN) CT_UNKNOWN)
 
#define SQL_ROUND_NEAREST_TIES_TO_EVEN   ((SQLULEN) RDM_BCD_ROUND_NEAREST_TIES_TO_EVEN)
 RDM specific SQL_ATTR_RDM_ROUNDING_MODE atrtibute values. More...
 
#define SQL_ROUND_NEAREST_TIES_AWAY_FROM_ZERO   ((SQLULEN) RDM_BCD_ROUND_NEAREST_TIES_AWAY_FROM_ZERO)
 
#define SQL_ROUND_UP   ((SQLULEN) RDM_BCD_ROUND_UP)
 
#define SQL_ROUND_DOWN   ((SQLULEN) RDM_BCD_ROUND_DOWN)
 
#define SQL_ROUND_TOWARDS_ZERO   ((SQLULEN) RDM_BCD_ROUND_TOWARDS_ZERO)
 

Typedefs

typedef const void * SQLCPOINTER
 
typedef RDM_ROWID_T SQLROWID
 

Enumerations

enum  RDM_CONN_TYPE { CT_LOCAL = 0, CT_REMOTE, CT_UNKNOWN }
 RDM specific connection type values. More...
 

Detailed Description

Header for RDM ODBC Level-1 types.

Definition in file sqlrtypes.h.

Macro Definition Documentation

◆ SQL_ATTR_RDM_CAT_BUFFER

#define SQL_ATTR_RDM_CAT_BUFFER   (SQL_DRIVER_CONN_ATTR_BASE) /* SetCatalog */

Definition at line 116 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_CAT_FILE

#define SQL_ATTR_RDM_CAT_FILE   (SQL_DRIVER_CONN_ATTR_BASE + 1) /* SetCatalogFromFile */

Definition at line 117 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_DB_SIZE_MAX

#define SQL_ATTR_RDM_DB_SIZE_MAX   (SQL_DRIVER_CONN_ATTR_BASE + 103)

Definition at line 131 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_ENCRYPT

#define SQL_ATTR_RDM_ENCRYPT   (SQL_DRIVER_CONN_ATTR_BASE + 2) /* encryption context set/get */

Definition at line 118 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_FILE_LINE

#define SQL_ATTR_RDM_FILE_LINE   501 /* logical line number */

Definition at line 146 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_FILE_NAME

#define SQL_ATTR_RDM_FILE_NAME   502 /* logical file name */

Definition at line 147 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_IDINDEX_FLUSH_THRESHOLD

#define SQL_ATTR_RDM_IDINDEX_FLUSH_THRESHOLD   (SQL_DRIVER_CONN_ATTR_BASE + 107)

Definition at line 135 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_IDINDEX_FLUSH_THRESHOLD_ON_CLOSE

#define SQL_ATTR_RDM_IDINDEX_FLUSH_THRESHOLD_ON_CLOSE   (SQL_DRIVER_CONN_ATTR_BASE + 108)

Definition at line 136 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_LOCALE

#define SQL_ATTR_RDM_LOCALE   (SQL_DRIVER_CONN_ATTR_BASE + 6)

Definition at line 122 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_OPTIMIZE_PARAMETERS

#define SQL_ATTR_RDM_OPTIMIZE_PARAMETERS   (SQL_DRIVER_CONN_ATTR_BASE + 7) /* optimize param'd query */

Definition at line 123 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_PACK_FILE_SIZE_MAX

#define SQL_ATTR_RDM_PACK_FILE_SIZE_MAX   (SQL_DRIVER_CONN_ATTR_BASE + 102)

Definition at line 130 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_PACK_WRITE_CHUNK_SIZE

#define SQL_ATTR_RDM_PACK_WRITE_CHUNK_SIZE   (SQL_DRIVER_CONN_ATTR_BASE + 101)

Pack-related options.

Definition at line 129 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_REMOTE_NAME

#define SQL_ATTR_RDM_REMOTE_NAME   (SQL_DRIVER_CONN_ATTR_BASE + 3)

Definition at line 119 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_ROUNDING_MODE

#define SQL_ATTR_RDM_ROUNDING_MODE   (SQL_DRIVER_CONN_ATTR_BASE + 8)

Definition at line 124 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_SQL_OPTIONS

#define SQL_ATTR_RDM_SQL_OPTIONS   (SQL_DRIVER_CONN_ATTR_BASE + 4)

Definition at line 120 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_STORAGE_MEDIA

#define SQL_ATTR_RDM_STORAGE_MEDIA   (SQL_DRIVER_CONN_ATTR_BASE + 9)

Definition at line 125 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_TFS_HANDLE

#define SQL_ATTR_RDM_TFS_HANDLE   (SQL_DRIVER_CONN_ATTR_BASE + 10) /* TFS handle */

Definition at line 126 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_USE_CATALOG

#define SQL_ATTR_RDM_USE_CATALOG   (SQL_DRIVER_CONN_ATTR_BASE + 5)

Definition at line 121 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_VACUUM_PERCENTAGE

#define SQL_ATTR_RDM_VACUUM_PERCENTAGE   (SQL_DRIVER_CONN_ATTR_BASE + 104)

Definition at line 132 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_VACUUM_READ_CHUNK_SIZE

#define SQL_ATTR_RDM_VACUUM_READ_CHUNK_SIZE   (SQL_DRIVER_CONN_ATTR_BASE + 105)

Definition at line 133 of file sqlrtypes.h.

◆ SQL_ATTR_RDM_VACUUM_WRITE_CHUNK_SIZE

#define SQL_ATTR_RDM_VACUUM_WRITE_CHUNK_SIZE   (SQL_DRIVER_CONN_ATTR_BASE + 106)

Definition at line 134 of file sqlrtypes.h.

◆ SQL_C_RDM_TIMESTAMPTZ

#define SQL_C_RDM_TIMESTAMPTZ   SQL_RDM_TIMESTAMPTZ

Definition at line 58 of file sqlrtypes.h.

◆ SQL_C_RDM_TIMETZ

#define SQL_C_RDM_TIMETZ   SQL_RDM_TIMETZ

Definition at line 57 of file sqlrtypes.h.

◆ SQL_C_ROWID

#define SQL_C_ROWID   SQL_ROWID

Definition at line 56 of file sqlrtypes.h.

◆ SQL_CT_LOCAL

#define SQL_CT_LOCAL   ((SQLULEN) CT_LOCAL)

Definition at line 167 of file sqlrtypes.h.

◆ SQL_CT_REMOTE

#define SQL_CT_REMOTE   ((SQLULEN) CT_REMOTE)

Definition at line 168 of file sqlrtypes.h.

◆ SQL_CT_UNKNOWN

#define SQL_CT_UNKNOWN   ((SQLULEN) CT_UNKNOWN)

Definition at line 169 of file sqlrtypes.h.

◆ SQL_DIAG_RDM_FILE_COLUMN

#define SQL_DIAG_RDM_FILE_COLUMN   1003

Definition at line 156 of file sqlrtypes.h.

◆ SQL_DIAG_RDM_FILE_LINE

#define SQL_DIAG_RDM_FILE_LINE   1002

Definition at line 155 of file sqlrtypes.h.

◆ SQL_DIAG_RDM_FILE_NAME

#define SQL_DIAG_RDM_FILE_NAME   1001

Definition at line 154 of file sqlrtypes.h.

◆ SQL_EMPSTR

#define SQL_EMPSTR   ((SQLCHAR *) "")

Definition at line 32 of file sqlrtypes.h.

◆ SQL_EMPTSTR

#define SQL_EMPTSTR   ((SQLTCHAR *) RDM_T(""))

Definition at line 34 of file sqlrtypes.h.

◆ SQL_EMPWSTR

#define SQL_EMPWSTR   ((SQLWCHAR *) L"")

Definition at line 33 of file sqlrtypes.h.

◆ SQL_INIT

#define SQL_INIT   5

Definition at line 92 of file sqlrtypes.h.

◆ SQL_MODE_EXCLUSIVE

#define SQL_MODE_EXCLUSIVE   2

Definition at line 102 of file sqlrtypes.h.

◆ SQL_MODE_EXCLUSIVE_APPEND

#define SQL_MODE_EXCLUSIVE_APPEND   4

Definition at line 104 of file sqlrtypes.h.

◆ SQL_MODE_EXCLUSIVE_CREAT

#define SQL_MODE_EXCLUSIVE_CREAT   6

Definition at line 106 of file sqlrtypes.h.

◆ SQL_MODE_EXCLUSIVE_CREAT_EXCL

#define SQL_MODE_EXCLUSIVE_CREAT_EXCL   10

Definition at line 110 of file sqlrtypes.h.

◆ SQL_MODE_EXCLUSIVE_CREAT_TRUNC

#define SQL_MODE_EXCLUSIVE_CREAT_TRUNC   8

Definition at line 108 of file sqlrtypes.h.

◆ SQL_MODE_READ_WRITE_APPEND

#define SQL_MODE_READ_WRITE_APPEND   3

Definition at line 103 of file sqlrtypes.h.

◆ SQL_MODE_READ_WRITE_CREAT

#define SQL_MODE_READ_WRITE_CREAT   5

Definition at line 105 of file sqlrtypes.h.

◆ SQL_MODE_READ_WRITE_CREAT_EXCL

#define SQL_MODE_READ_WRITE_CREAT_EXCL   9

Definition at line 109 of file sqlrtypes.h.

◆ SQL_MODE_READ_WRITE_CREAT_TRUNC

#define SQL_MODE_READ_WRITE_CREAT_TRUNC   7

Definition at line 107 of file sqlrtypes.h.

◆ SQL_RDM_DEF_PRECISION

#define SQL_RDM_DEF_PRECISION   32

Definition at line 86 of file sqlrtypes.h.

◆ SQL_RDM_DEF_SCALE

#define SQL_RDM_DEF_SCALE   0

Definition at line 87 of file sqlrtypes.h.

◆ SQL_RDM_TIMESTAMPTZ

#define SQL_RDM_TIMESTAMPTZ   (SQL_DRIVER_SQL_TYPE_BASE + 2)

Definition at line 54 of file sqlrtypes.h.

◆ SQL_RDM_TIMETZ

#define SQL_RDM_TIMETZ   (SQL_DRIVER_SQL_TYPE_BASE + 1)

Definition at line 53 of file sqlrtypes.h.

◆ SQL_RDM_UNSET

#define SQL_RDM_UNSET   ((SQLULEN) -1)

Definition at line 141 of file sqlrtypes.h.

◆ SQL_ROUND_DOWN

#define SQL_ROUND_DOWN   ((SQLULEN) RDM_BCD_ROUND_DOWN)

Definition at line 176 of file sqlrtypes.h.

◆ SQL_ROUND_NEAREST_TIES_AWAY_FROM_ZERO

#define SQL_ROUND_NEAREST_TIES_AWAY_FROM_ZERO   ((SQLULEN) RDM_BCD_ROUND_NEAREST_TIES_AWAY_FROM_ZERO)

Definition at line 174 of file sqlrtypes.h.

◆ SQL_ROUND_NEAREST_TIES_TO_EVEN

#define SQL_ROUND_NEAREST_TIES_TO_EVEN   ((SQLULEN) RDM_BCD_ROUND_NEAREST_TIES_TO_EVEN)

RDM specific SQL_ATTR_RDM_ROUNDING_MODE atrtibute values.

Definition at line 173 of file sqlrtypes.h.

◆ SQL_ROUND_TOWARDS_ZERO

#define SQL_ROUND_TOWARDS_ZERO   ((SQLULEN) RDM_BCD_ROUND_TOWARDS_ZERO)

Definition at line 177 of file sqlrtypes.h.

◆ SQL_ROUND_UP

#define SQL_ROUND_UP   ((SQLULEN) RDM_BCD_ROUND_UP)

Definition at line 175 of file sqlrtypes.h.

◆ SQL_ROWID

#define SQL_ROWID   SQL_DRIVER_SQL_TYPE_BASE

Definition at line 51 of file sqlrtypes.h.

◆ SQL_TCHAR

#define SQL_TCHAR   SQL_CHAR

Definition at line 41 of file sqlrtypes.h.

◆ SQL_TLONGVARCHAR

#define SQL_TLONGVARCHAR   SQL_LONGVARCHAR

Definition at line 43 of file sqlrtypes.h.

◆ SQL_TVARCHAR

#define SQL_TVARCHAR   SQL_VARCHAR

Definition at line 42 of file sqlrtypes.h.

Typedef Documentation

◆ SQLCPOINTER

typedef const void* SQLCPOINTER

Definition at line 30 of file sqlrtypes.h.

◆ SQLROWID

Definition at line 49 of file sqlrtypes.h.

Enumeration Type Documentation

◆ RDM_CONN_TYPE

RDM specific connection type values.

Enumerator
CT_LOCAL 
CT_REMOTE 
CT_UNKNOWN 

Definition at line 160 of file sqlrtypes.h.

161 {
162  CT_LOCAL = 0,
163  CT_REMOTE,
164  CT_UNKNOWN
165 } RDM_CONN_TYPE;
RDM_CONN_TYPE
RDM specific connection type values.
Definition: sqlrtypes.h:160