|
SQL Relay C API
|
Functions | |
| SQLRCLIENT_DLLSPEC sqlrcon | sqlrcon_alloc (const char *server, uint16_t port, const char *socket, const char *user, const char *password, int32_t retrytime, int32_t tries) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_free (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_setConnectTimeout (sqlrcon sqlrconref, int32_t timeoutsec, int32_t timeoutusec) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_getConnectTimeout (sqlrcon sqlrconref, int32_t *timeoutsec, int32_t *timeoutusec) |
| SQLRCLIENT_DLLSPEC int32_t | sqlrcon_getConnectTimeoutSeconds (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int32_t | sqlrcon_getConnectTimeoutMicroseconds (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_setResponseTimeout (sqlrcon sqlrconref, int32_t timeoutsec, int32_t timeoutusec) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_getResponseTimeout (sqlrcon sqlrconref, int32_t *timeoutsec, int32_t *timeoutusec) |
| SQLRCLIENT_DLLSPEC int32_t | sqlrcon_getResponseTimeoutSeconds (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int32_t | sqlrcon_getResponseTimeoutMicroseconds (sqlrcon sqlrconref) |
| void | sqlrcon_setBindVariableDelimiters (sqlrcon sqlrconref, const char *delimiters) |
| int | sqlrcon_getBindVariableDelimiterQuestionMarkSupported (sqlrcon sqlrconref) |
| int | sqlrcon_getBindVariableDelimiterColonSupported (sqlrcon sqlrconref) |
| int | sqlrcon_getBindVariableDelimiterAtSignSupported (sqlrcon sqlrconref) |
| int | sqlrcon_getBindVariableDelimiterDollarSignSupported (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_enableKerberos (sqlrcon sqlrconref, const char *service, const char *mech, const char *flags) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_enableTls (sqlrcon sqlrconref, const char *version, const char *cert, const char *password, const char *ciphers, const char *validate, const char *ca, uint16_t depth) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_disableEncryption (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_endSession (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_suspendSession (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC uint16_t | sqlrcon_getConnectionPort (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_getConnectionSocket (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_resumeSession (sqlrcon sqlrconref, uint16_t port, const char *socket) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_ping (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_identify (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_dbVersion (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_dbHostName (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_dbIpAddress (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_serverVersion (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_clientVersion (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_bindFormat (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_nextvalFormat (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_selectDatabase (sqlrcon sqlrconref, const char *database) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_getCurrentDatabase (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_getDatabaseIsSchema (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_selectCatalog (sqlrcon sqlrconref, const char *catalog) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_getCurrentCatalog (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_selectSchema (sqlrcon sqlrconref, const char *schema) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_getCurrentSchema (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_getCurrentUser (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC uint64_t | sqlrcon_getLastInsertId (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_autoCommitOn (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_autoCommitOff (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_getAutoCommit (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_begin (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_commit (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_rollback (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_getInTransaction (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_getDefaultTransactionModel (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_setTransactionModel (sqlrcon sqlrconref, const char *txmodel) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_getTransactionModel (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_getDefaultIsolationLevel (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_setIsolationLevel (sqlrcon sqlrconref, const char *isolationlevel) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_getIsolationLevel (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_getDatabaseFeature (sqlrcon sqlrconref, const char *feature) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_errorMessage (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int64_t | sqlrcon_errorNumber (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_debugOn (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_debugOff (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC int | sqlrcon_getDebug (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_debugPrintFunction (sqlrcon sqlrconref, int(*printfunction)(const char *,...)) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_setDebugFile (sqlrcon sqlrconref, const char *filename) |
| SQLRCLIENT_DLLSPEC void | sqlrcon_setClientInfo (sqlrcon sqlrconref, const char *clientinfo) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcon_getClientInfo (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC sqlrcur | sqlrcur_alloc (sqlrcon sqlrconref) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_free (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_setResultSetBufferSize (sqlrcur sqlrcurref, uint64_t rows) |
| SQLRCLIENT_DLLSPEC uint64_t | sqlrcur_getResultSetBufferSize (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_dontGetColumnInfo (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_getColumnInfo (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_mixedCaseColumnNames (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_upperCaseColumnNames (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_lowerCaseColumnNames (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_cacheToFile (sqlrcur sqlrcurref, const char *filename) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_setCacheTtl (sqlrcur sqlrcurref, uint32_t ttl) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcur_getCacheFileName (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_cacheOff (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getDatabaseList (sqlrcur sqlrcurref, const char *databases) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getCatalogList (sqlrcur sqlrcurref, const char *catalogs) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getSchemaList (sqlrcur sqlrcurref, const char *schemas) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getTableTypeList (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getTableList (sqlrcur sqlrcurref, const char *tables) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getTypeInfoList (sqlrcur sqlrcurref, const char *type) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnList (sqlrcur sqlrcurref, const char *table, const char *columns) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getPrimaryKeysList (sqlrcur sqlrcurref, const char *table, const char *columns) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getKeyAndIndexList (sqlrcur sqlrcurref, const char *table, const char *qualifier) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getProcedureList (sqlrcur sqlrcurref, const char *procedures) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getProcedureParameterList (sqlrcur sqlrcurref, const char *procedure, const char *parameters) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_sendQuery (sqlrcur sqlrcurref, const char *query) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_sendQueryWithLength (sqlrcur sqlrcurref, const char *query, uint32_t length) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_sendFileQuery (sqlrcur sqlrcurref, const char *path, const char *filename) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_prepareQuery (sqlrcur sqlrcurref, const char *query) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_prepareQueryWithLength (sqlrcur sqlrcurref, const char *query, uint32_t length) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_prepareFileQuery (sqlrcur sqlrcurref, const char *path, const char *filename) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_subString (sqlrcur sqlrcurref, const char *variable, const char *value) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_subLong (sqlrcur sqlrcurref, const char *variable, int64_t value) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_subDouble (sqlrcur sqlrcurref, const char *variable, double value, uint32_t precision, uint32_t scale) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_subStrings (sqlrcur sqlrcurref, const char **variables, const char **values) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_subLongs (sqlrcur sqlrcurref, const char **variables, const int64_t *values) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_subDoubles (sqlrcur sqlrcurref, const char **variables, const double *values, const uint32_t *precisions, const uint32_t *scales) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_inputBindString (sqlrcur sqlrcurref, const char *variable, const char *value) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_inputBindStringWithLength (sqlrcur sqlrcurref, const char *variable, const char *value, uint32_t valuelength) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_inputBindLong (sqlrcur sqlrcurref, const char *variable, int64_t value) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_inputBindDouble (sqlrcur sqlrcurref, const char *variable, double value, uint32_t precision, uint32_t scale) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_inputBindDate (sqlrcur sqlrcurref, const char *variable, int16_t year, int16_t month, int16_t day, int16_t hour, int16_t minute, int16_t second, int32_t microsecond, const char *tz, int isnegative) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_inputBindBlob (sqlrcur sqlrcurref, const char *variable, const char *value, uint32_t size) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_inputBindClob (sqlrcur sqlrcurref, const char *variable, const char *value, uint32_t size) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_inputBindStrings (sqlrcur sqlrcurref, const char **variables, const char **values) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_inputBindLongs (sqlrcur sqlrcurref, const char **variables, const int64_t *values) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_inputBindDoubles (sqlrcur sqlrcurref, const char **variables, const double *values, const uint32_t *precisions, const uint32_t *scales) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_defineOutputBindString (sqlrcur sqlrcurref, const char *variable, uint32_t length) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_defineOutputBindInteger (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_defineOutputBindDouble (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_defineOutputBindDate (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_defineOutputBindBlob (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_defineOutputBindClob (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_defineOutputBindCursor (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_clearBinds (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC uint16_t | sqlrcur_countBindVariables (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_validateBinds (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_validBind (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_executeQuery (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_fetchFromBindCursor (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcur_getOutputBindString (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC int64_t | sqlrcur_getOutputBindInteger (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC double | sqlrcur_getOutputBindDouble (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getOutputBindDate (sqlrcur sqlrcurref, const char *variable, int16_t *year, int16_t *month, int16_t *day, int16_t *hour, int16_t *minute, int16_t *second, int32_t *microsecond, const char **tz, int *isnegative) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getOutputBindDateYear (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getOutputBindDateMonth (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getOutputBindDateDay (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getOutputBindDateHour (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getOutputBindDateMinute (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getOutputBindDateSecond (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC int32_t | sqlrcur_getOutputBindDateMicrosecond (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcur_getOutputBindDateTz (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getOutputBindDateIsNegative (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcur_getOutputBindBlob (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcur_getOutputBindClob (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC uint32_t | sqlrcur_getOutputBindLength (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC sqlrcur | sqlrcur_getOutputBindCursor (sqlrcur sqlrcurref, const char *variable) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_openCachedResultSet (sqlrcur sqlrcurref, const char *filename) |
| SQLRCLIENT_DLLSPEC uint32_t | sqlrcur_colCount (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC uint64_t | sqlrcur_rowCount (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC uint64_t | sqlrcur_totalRows (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC uint64_t | sqlrcur_affectedRows (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC uint64_t | sqlrcur_firstRowIndex (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_endOfResultSet (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_nextResultSet (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcur_errorMessage (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC int64_t | sqlrcur_errorNumber (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_getNullsAsEmptyStrings (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_getNullsAsNulls (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcur_getFieldByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcur_getFieldByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcur_getFieldByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int64_t | sqlrcur_getFieldAsIntegerByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC int64_t | sqlrcur_getFieldAsIntegerByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int64_t | sqlrcur_getFieldAsIntegerByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC double | sqlrcur_getFieldAsDoubleByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC double | sqlrcur_getFieldAsDoubleByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC double | sqlrcur_getFieldAsDoubleByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsBooleanByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsBooleanByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsBooleanByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsDateByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col, int16_t *year, int16_t *month, int16_t *day, int16_t *hour, int16_t *minute, int16_t *second, int32_t *microsecond, int *isnegative) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsDateByIndexWithDdMm (sqlrcur sqlrcurref, uint64_t row, uint32_t col, int ddmm, int yyyyddmm, const char *datedelimiters, int16_t *year, int16_t *month, int16_t *day, int16_t *hour, int16_t *minute, int16_t *second, int32_t *microsecond, int *isnegative) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsDateByName (sqlrcur sqlrcurref, uint64_t row, const char *col, int16_t *year, int16_t *month, int16_t *day, int16_t *hour, int16_t *minute, int16_t *second, int32_t *microsecond, int *isnegative) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsDateByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col, int16_t *year, int16_t *month, int16_t *day, int16_t *hour, int16_t *minute, int16_t *second, int32_t *microsecond, int *isnegative) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsDateByNameWithDdMm (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters, int16_t *year, int16_t *month, int16_t *day, int16_t *hour, int16_t *minute, int16_t *second, int32_t *microsecond, int *isnegative) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsDateByNameWithDdMmIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters, int16_t *year, int16_t *month, int16_t *day, int16_t *hour, int16_t *minute, int16_t *second, int32_t *microsecond, int *isnegative) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateYearByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateYearByIndexWithDdMm (sqlrcur sqlrcurref, uint64_t row, uint32_t col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateYearByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateYearByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateYearByNameWithDdMm (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateYearByNameWithDdMmIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateMonthByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateMonthByIndexWithDdMm (sqlrcur sqlrcurref, uint64_t row, uint32_t col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateMonthByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateMonthByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateMonthByNameWithDdMm (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateMonthByNameWithDdMmIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateDayByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateDayByIndexWithDdMm (sqlrcur sqlrcurref, uint64_t row, uint32_t col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateDayByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateDayByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateDayByNameWithDdMm (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateDayByNameWithDdMmIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateHourByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateHourByIndexWithDdMm (sqlrcur sqlrcurref, uint64_t row, uint32_t col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateHourByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateHourByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateHourByNameWithDdMm (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateHourByNameWithDdMmIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateMinuteByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateMinuteByIndexWithDdMm (sqlrcur sqlrcurref, uint64_t row, uint32_t col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateMinuteByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateMinuteByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateMinuteByNameWithDdMm (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateMinuteByNameWithDdMmIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateSecondByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateSecondByIndexWithDdMm (sqlrcur sqlrcurref, uint64_t row, uint32_t col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateSecondByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateSecondByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateSecondByNameWithDdMm (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int16_t | sqlrcur_getFieldAsDateSecondByNameWithDdMmIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int32_t | sqlrcur_getFieldAsDateMicrosecondByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC int32_t | sqlrcur_getFieldAsDateMicrosecondByIndexWithDdMm (sqlrcur sqlrcurref, uint64_t row, uint32_t col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int32_t | sqlrcur_getFieldAsDateMicrosecondByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int32_t | sqlrcur_getFieldAsDateMicrosecondByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int32_t | sqlrcur_getFieldAsDateMicrosecondByNameWithDdMm (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int32_t | sqlrcur_getFieldAsDateMicrosecondByNameWithDdMmIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsDateIsNegativeByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsDateIsNegativeByIndexWithDdMm (sqlrcur sqlrcurref, uint64_t row, uint32_t col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsDateIsNegativeByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsDateIsNegativeByNameIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsDateIsNegativeByNameWithDdMm (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getFieldAsDateIsNegativeByNameWithDdMmIgnoringCase (sqlrcur sqlrcurref, uint64_t row, const char *col, int ddmm, int yyyyddmm, const char *datedelimiters) |
| SQLRCLIENT_DLLSPEC uint32_t | sqlrcur_getFieldLengthByIndex (sqlrcur sqlrcurref, uint64_t row, uint32_t col) |
| SQLRCLIENT_DLLSPEC uint32_t | sqlrcur_getFieldLengthByName (sqlrcur sqlrcurref, uint64_t row, const char *col) |
| SQLRCLIENT_DLLSPEC const char *const * | sqlrcur_getRow (sqlrcur sqlrcurref, uint64_t row) |
| SQLRCLIENT_DLLSPEC uint32_t * | sqlrcur_getRowLengths (sqlrcur sqlrcurref, uint64_t row) |
| SQLRCLIENT_DLLSPEC const char *const * | sqlrcur_getColumnNames (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcur_getColumnName (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcur_getColumnTypeByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC const char * | sqlrcur_getColumnTypeByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC uint32_t | sqlrcur_getColumnLengthByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC uint32_t | sqlrcur_getColumnLengthByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC uint32_t | sqlrcur_getColumnPrecisionByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC uint32_t | sqlrcur_getColumnPrecisionByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC uint32_t | sqlrcur_getColumnScaleByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC uint32_t | sqlrcur_getColumnScaleByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsNullableByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsNullableByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsPrimaryKeyByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsPrimaryKeyByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsUniqueByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsUniqueByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsPartOfKeyByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsPartOfKeyByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsUnsignedByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsUnsignedByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsZeroFilledByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsZeroFilledByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsBinaryByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsBinaryByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsAutoIncrementByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_getColumnIsAutoIncrementByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC uint32_t | sqlrcur_getLongestByIndex (sqlrcur sqlrcurref, uint32_t col) |
| SQLRCLIENT_DLLSPEC uint32_t | sqlrcur_getLongestByName (sqlrcur sqlrcurref, const char *col) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_suspendResultSet (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC uint16_t | sqlrcur_getResultSetId (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_resumeResultSet (sqlrcur sqlrcurref, uint16_t id) |
| SQLRCLIENT_DLLSPEC int | sqlrcur_resumeCachedResultSet (sqlrcur sqlrcurref, uint16_t id, const char *filename) |
| SQLRCLIENT_DLLSPEC void | sqlrcur_closeResultSet (sqlrcur sqlrcurref) |
| SQLRCLIENT_DLLSPEC sqlrcon sqlrcon_alloc | ( | const char * | server, |
| uint16_t | port, | ||
| const char * | socket, | ||
| const char * | user, | ||
| const char * | password, | ||
| int32_t | retrytime, | ||
| int32_t | tries ) |
Initiates a connection to "server" on "port" or to the unix "socket" on the local machine and auths with "user" and "password". Failed connections will be retried for "tries" times, waiting "retrytime" seconds between each try. If "tries" is 0 then retries will continue forever. If "retrytime" is 0 then retries will be attempted on a default interval.
If "server" is a comma-separated list of hosts, then an attempt will be made to connect to each until the attempt succeeds, or there are no more hosts left to try.
If the "socket" parameter is neither NULL nor "" then an attempt will be made to connect through it before attempting to connect to "server" on "port". If it is NULL or "" then no attempt will be made to connect through the socket.
| SQLRCLIENT_DLLSPEC int sqlrcon_autoCommitOff | ( | sqlrcon | sqlrconref | ) |
Instructs the database to wait for the client to tell it when to commit.
| SQLRCLIENT_DLLSPEC int sqlrcon_autoCommitOn | ( | sqlrcon | sqlrconref | ) |
Instructs the database to perform a commit after every successful query.
| SQLRCLIENT_DLLSPEC int sqlrcon_begin | ( | sqlrcon | sqlrconref | ) |
Begins a transaction. Returns true if the begin succeeded, false if it failed. If the database automatically begins a new transaction when a commit or rollback is issued then this doesn't do anything unless SQL Relay is faking transaction blocks.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_bindFormat | ( | sqlrcon | sqlrconref | ) |
Returns a string representing the bind variable format used by the database. For example:
? - database uses a ? to represent a bind variable @* - database uses a @ followed by any characters to represent a bind variable $1 - database uses a $ followed by a number to represent a bind variable :* - database uses a : followed by any characters to represent a bind variable
| SQLRCLIENT_DLLSPEC const char * sqlrcon_clientVersion | ( | sqlrcon | sqlrconref | ) |
Returns the version of the sqlrelay client software.
| SQLRCLIENT_DLLSPEC int sqlrcon_commit | ( | sqlrcon | sqlrconref | ) |
Commits a transaction. Returns true if the commit succeeded, false if it failed.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_dbHostName | ( | sqlrcon | sqlrconref | ) |
Returns the host name of the database
| SQLRCLIENT_DLLSPEC const char * sqlrcon_dbIpAddress | ( | sqlrcon | sqlrconref | ) |
Returns the ip address of the database
| SQLRCLIENT_DLLSPEC const char * sqlrcon_dbVersion | ( | sqlrcon | sqlrconref | ) |
Returns the version of the database
| SQLRCLIENT_DLLSPEC void sqlrcon_debugOff | ( | sqlrcon | sqlrconref | ) |
Turns debugging off.
| SQLRCLIENT_DLLSPEC void sqlrcon_debugOn | ( | sqlrcon | sqlrconref | ) |
Causes verbose debugging information to be sent to standard output. Another way to do this is to start a query with "-- debug\n". Yet another way is to set the environment variable SQLR_CLIENT_DEBUG to "ON"
| SQLRCLIENT_DLLSPEC void sqlrcon_debugPrintFunction | ( | sqlrcon | sqlrconref, |
| int(*)(const char *,...) | printfunction ) |
Allows you to replace the function used to print debug messages with your own function. The function is expected to take arguments like printf().
| SQLRCLIENT_DLLSPEC void sqlrcon_disableEncryption | ( | sqlrcon | sqlrconref | ) |
Disables encryption.
| SQLRCLIENT_DLLSPEC void sqlrcon_enableKerberos | ( | sqlrcon | sqlrconref, |
| const char * | service, | ||
| const char * | mech, | ||
| const char * | flags ) |
Enables Kerberos authentication and encryption.
"service" indicates the Kerberos service name of the SQL Relay server. If left empty or NULL then the service name "sqlrelay" will be used. "sqlrelay" is the default service name of the SQL Relay server. Note that on Windows platforms the service name must be fully qualified, including the host and realm name. For example: "sqlrelay/sqlrserver.firstworks.com@AD.FIRSTWORKS.COM".
"mech" indicates the specific Kerberos mechanism to use. On Linux/Unix platforms, this should be a string representation of the mechnaism's OID, such as: { 1 2 840 113554 1 2 2 } On Windows platforms, this should be a string like: Kerberos If left empty or NULL then the default mechanism will be used. Only set this if you know that you have a good reason to.
"flags" indicates what Kerberos flags to use. Multiple flags may be specified, separated by commas. If left empty or NULL then a defalt set of flags will be used. Only set this if you know that you have a good reason to.
Valid flags include:
For a full list of flags, consult the GSSAPI documentation, though note that only the flags listed above are supported on Windows.
| SQLRCLIENT_DLLSPEC void sqlrcon_enableTls | ( | sqlrcon | sqlrconref, |
| const char * | version, | ||
| const char * | cert, | ||
| const char * | password, | ||
| const char * | ciphers, | ||
| const char * | validate, | ||
| const char * | ca, | ||
| uint16_t | depth ) |
Enables TLS/SSL encryption, and optionally authentication.
"version" specifies the TLS/SSL protocol version that the client will attempt to use. Valid values include SSL2, SSL3, TLS1, TLS1.1, TLS1.2 or any more recent version of TLS, as supported by and enabled in the underlying TLS/SSL library. If left blank or empty then the highest supported version will be negotiated.
"cert" is the file name of the certificate chain file to send to the SQL Relay server. This is only necessary if the SQL Relay server is configured to authenticate and authorize clients by certificate.
If "cert" contains a password-protected private key, then "password" may be supplied to access it. If the private key is not password-protected, then this argument is ignored, and may be left empty or NULL.
"ciphers" is a list of ciphers to allow. Ciphers may be separated by spaces, commas, or colons. If "ciphers" is empty or NULL then a default set is used. Only set this if you know that you have a good reason to.
For a list of valid ciphers on Linux/Unix platforms, see: man ciphers
For a list of valid ciphers on Windows platforms, see: https://msdn.microsoft.com/en-us/library/windows/desktop/aa375549%28v=vs.85%29.aspx On Windows platforms, the ciphers (alg_id's) should omit CALG_ and may be given with underscores or dashes. For example: 3DES_112
"validate" indicates whether to validate the SQL Relay's server certificate, and may be set to one of the following: "no" - Don't validate the server's certificate. "ca" - Validate that the server's certificate was signed by a trusted certificate authority. "ca+host" - Perform "ca" validation and also validate that one of the subject altenate names (or the common name if no SANs are present) in the certificate matches the host parameter. (Falls back to "ca" validation when a unix socket is used.) "ca+domain" - Perform "ca" validation and also validate that the domain name of one of the subject alternate names (or the common name if no SANs are present) in the certificate matches the domain name of the host parameter. (Falls back to "ca" validation when a unix socket is used.)
"ca" is the location of a certificate authority file to use, in addition to the system's root certificates, when validating the SQL Relay server's certificate. This is useful if the SQL Relay server's certificate is self-signed.
On Windows, "ca" must be a file name.
On non-Windows systems, "ca" can be either a file or directory name. If it is a directory name, then all certificate authority files found in that directory will be used. If it a file name, then only that file will be used.
Note that the supported "cert" and "ca" file formats may vary between platforms. A variety of file formats are generally supported on Linux/Unix platfoms (.pem, .pfx, etc.) but only the .pfx format is currently supported on Windows.
| SQLRCLIENT_DLLSPEC void sqlrcon_endSession | ( | sqlrcon | sqlrconref | ) |
Ends the session.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_errorMessage | ( | sqlrcon | sqlrconref | ) |
If an operation failed and generated an error, the error message is available here. If there is no error then this method returns NULL.
| SQLRCLIENT_DLLSPEC int64_t sqlrcon_errorNumber | ( | sqlrcon | sqlrconref | ) |
If an operation failed and generated an error, the error number is available here. If there is no error then this method returns 0.
| SQLRCLIENT_DLLSPEC void sqlrcon_free | ( | sqlrcon | sqlrconref | ) |
Disconnects and ends the session if it hasn't been ended already.
| SQLRCLIENT_DLLSPEC int sqlrcon_getAutoCommit | ( | sqlrcon | sqlrconref | ) |
Returns true if auto-commit is currently on, false otherwise.
| int sqlrcon_getBindVariableDelimiterAtSignSupported | ( | sqlrcon | sqlrconref | ) |
Returns true if at-signs (@) are considered to be valid bind variable delimiters.
| int sqlrcon_getBindVariableDelimiterColonSupported | ( | sqlrcon | sqlrconref | ) |
Returns true if colons (:) are considered to be valid bind variable delimiters.
| int sqlrcon_getBindVariableDelimiterDollarSignSupported | ( | sqlrcon | sqlrconref | ) |
Returns true if dollar signs ($) are considered to be valid bind variable delimiters.
| int sqlrcon_getBindVariableDelimiterQuestionMarkSupported | ( | sqlrcon | sqlrconref | ) |
Returns true if question marks (?) are considered to be valid bind variable delimiters.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_getClientInfo | ( | sqlrcon | sqlrconref | ) |
Returns the string that was set by setClientInfo().
| SQLRCLIENT_DLLSPEC uint16_t sqlrcon_getConnectionPort | ( | sqlrcon | sqlrconref | ) |
Returns the inet port that the connection is communicating over. This parameter may be passed to another connection for use in the resumeSession() method. Note: The value this method returns is only valid after a call to suspendSession().
| SQLRCLIENT_DLLSPEC const char * sqlrcon_getConnectionSocket | ( | sqlrcon | sqlrconref | ) |
Returns the unix socket that the connection is communicating over. This parameter may be passed to another connection for use in the resumeSession() method. Note: The value this method returns is only valid after a call to suspendSession().
| SQLRCLIENT_DLLSPEC void sqlrcon_getConnectTimeout | ( | sqlrcon | sqlrconref, |
| int32_t * | timeoutsec, | ||
| int32_t * | timeoutusec ) |
Gets the server connect timeout in seconds and microseconds.
| SQLRCLIENT_DLLSPEC int32_t sqlrcon_getConnectTimeoutMicroseconds | ( | sqlrcon | sqlrconref | ) |
Gets the server connect timeout in microseconds.
| SQLRCLIENT_DLLSPEC int32_t sqlrcon_getConnectTimeoutSeconds | ( | sqlrcon | sqlrconref | ) |
Gets the server connect timeout in seconds.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_getCurrentCatalog | ( | sqlrcon | sqlrconref | ) |
Returns the catalog that is currently in use.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_getCurrentDatabase | ( | sqlrcon | sqlrconref | ) |
Returns the database that is currently in use.
May return the current catalog or schema, depending on whether the backend database equates "database" with catalog or schema.
See getDatabaseIsSchema().
| SQLRCLIENT_DLLSPEC const char * sqlrcon_getCurrentSchema | ( | sqlrcon | sqlrconref | ) |
Returns the schema that is currently in use.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_getCurrentUser | ( | sqlrcon | sqlrconref | ) |
Returns the user that sqlrelay is currently logged in to the database as, or NULL if no user could be determined or if an error occurred.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_getDatabaseFeature | ( | sqlrcon | sqlrconref, |
| const char * | feature ) |
Returns the value of the specified database "feature".
Valid features include:
Returns the value of the feature as a string, or NULL if an error occurred or an invalid feature was requested.
| SQLRCLIENT_DLLSPEC int sqlrcon_getDatabaseIsSchema | ( | sqlrcon | sqlrconref | ) |
Returns true if the backend database equates "database" with "schema", and false if it equates "database" with "catalog".
| SQLRCLIENT_DLLSPEC int sqlrcon_getDebug | ( | sqlrcon | sqlrconref | ) |
Returns false if debugging is off and true if debugging is on.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_getDefaultIsolationLevel | ( | sqlrcon | sqlrconref | ) |
Returns the database-specific default isolation level, or NULL if an error occurred.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_getDefaultTransactionModel | ( | sqlrcon | sqlrconref | ) |
Returns the database's native transaction model. See setTranscationModel() for a list of potential return values. Returns NULL if an error occurred.
| SQLRCLIENT_DLLSPEC int sqlrcon_getInTransaction | ( | sqlrcon | sqlrconref | ) |
Returns true if the session is currently inside a transaction, false otherwise.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_getIsolationLevel | ( | sqlrcon | sqlrconref | ) |
Returns the database-specific isolation level, "unknown" if the isolation level is unknown, or NULL if an error occurred.
| SQLRCLIENT_DLLSPEC uint64_t sqlrcon_getLastInsertId | ( | sqlrcon | sqlrconref | ) |
Returns the value of the autoincrement column for the last insert
| SQLRCLIENT_DLLSPEC void sqlrcon_getResponseTimeout | ( | sqlrcon | sqlrconref, |
| int32_t * | timeoutsec, | ||
| int32_t * | timeoutusec ) |
Gets the response timeout in seconds and microseconds.
| SQLRCLIENT_DLLSPEC int32_t sqlrcon_getResponseTimeoutMicroseconds | ( | sqlrcon | sqlrconref | ) |
Gets the response timeout in microseconds.
| SQLRCLIENT_DLLSPEC int32_t sqlrcon_getResponseTimeoutSeconds | ( | sqlrcon | sqlrconref | ) |
Gets the response timeout in seconds.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_getTransactionModel | ( | sqlrcon | sqlrconref | ) |
Returns the current transaction model. See setTranscationModel() for a list of potential return values. Returns NULL if an error occurred.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_identify | ( | sqlrcon | sqlrconref | ) |
Returns the type of database: oracle, postgresql, mysql, etc.
| SQLRCLIENT_DLLSPEC const char * sqlrcon_nextvalFormat | ( | sqlrcon | sqlrconref | ) |
Returns a string representing the format of the sequence nextval command used in the database. The format will contain a s in place of the sequence name. For example:
(nextval for s) next value for s nextval('s') s.nextval
Returns an empty string if the database does not support sequences.
| SQLRCLIENT_DLLSPEC int sqlrcon_ping | ( | sqlrcon | sqlrconref | ) |
Returns true if the database is up and false if it's down.
| SQLRCLIENT_DLLSPEC int sqlrcon_resumeSession | ( | sqlrcon | sqlrconref, |
| uint16_t | port, | ||
| const char * | socket ) |
Resumes a session previously left open using suspendSession(). Returns true on success and false on failure.
| SQLRCLIENT_DLLSPEC int sqlrcon_rollback | ( | sqlrcon | sqlrconref | ) |
Rolls back a transaction. Returns true if the rollback succeeded, false if it failed.
| SQLRCLIENT_DLLSPEC int sqlrcon_selectCatalog | ( | sqlrcon | sqlrconref, |
| const char * | catalog ) |
Sets the current catalog to "catalog"
| SQLRCLIENT_DLLSPEC int sqlrcon_selectDatabase | ( | sqlrcon | sqlrconref, |
| const char * | database ) |
Sets the current database to "database".
May set the current catalog or schema, depending on whether the backend database equates "database" with catalog or schema.
See getDatabaseIsSchema().
| SQLRCLIENT_DLLSPEC int sqlrcon_selectSchema | ( | sqlrcon | sqlrconref, |
| const char * | schema ) |
Sets the current schema to "schema"
| SQLRCLIENT_DLLSPEC const char * sqlrcon_serverVersion | ( | sqlrcon | sqlrconref | ) |
Returns the version of the sqlrelay server software.
| void sqlrcon_setBindVariableDelimiters | ( | sqlrcon | sqlrconref, |
| const char * | delimiters ) |
Sets which delimiters are used to identify bind variables in countBindVariables() and validateBinds(). Valid delimiters include ?,:,@, and $. Defaults to "?:@$"
| SQLRCLIENT_DLLSPEC void sqlrcon_setClientInfo | ( | sqlrcon | sqlrconref, |
| const char * | clientinfo ) |
Allows you to set a string that will be passed to the server and ultimately included in server-side logging along with queries that were run by this instance of the client.
| SQLRCLIENT_DLLSPEC void sqlrcon_setConnectTimeout | ( | sqlrcon | sqlrconref, |
| int32_t | timeoutsec, | ||
| int32_t | timeoutusec ) |
Sets the server connect timeout in seconds and microseconds. Setting either parameter to -1 disables the timeout. You can also set this timeout using the SQLR_CLIENT_CONNECT_TIMEOUT environment variable.
| SQLRCLIENT_DLLSPEC void sqlrcon_setDebugFile | ( | sqlrcon | sqlrconref, |
| const char * | filename ) |
Allows you to specify a file to write debug to. Setting "filename" to NULL or an empty string causes debug to be written to standard output (the default).
| SQLRCLIENT_DLLSPEC int sqlrcon_setIsolationLevel | ( | sqlrcon | sqlrconref, |
| const char * | isolationlevel ) |
Sets the transaction isolation level to "isolationlevel". The string is the database-specific (native) name and is matched case-insensitively.
Valid isolation levels include:
For PostgreSQL:
For MySQL/MariaDB:
For Oracle:
For DB2:
For MS SQL Server (via FreeTDS):
For SAP ASE (Sybase):
For Informix:
For Firebird:
For SQLite:
For ODBC:
(whether a given level is actually supported depends on the underlying ODBC driver and target database). The generic ODBC backend also accepts the database-specific native names listed above for any of the other backends, as well as the JDBC TRANSACTION_* names, and maps them to the closest of the four ODBC levels above.
For other databases, the string is passed through to the backend as the argument to "set transaction isolation level".
Returns true if setting the isolation level succeeded, false if it failed.
| SQLRCLIENT_DLLSPEC void sqlrcon_setResponseTimeout | ( | sqlrcon | sqlrconref, |
| int32_t | timeoutsec, | ||
| int32_t | timeoutusec ) |
Sets the response timeout (for queries, commits, rollbacks, pings, etc.) in seconds and microseconds. Setting either parameter to -1 disables the timeout. You can also set this timeout using the SQLR_CLIENT_RESPONSE_TIMEOUT environment variable.
| SQLRCLIENT_DLLSPEC int sqlrcon_setTransactionModel | ( | sqlrcon | sqlrconref, |
| const char * | txmodel ) |
Sets the current transaction model to "txmodel" which should be one of:
Returns true on success and false on failure.
| SQLRCLIENT_DLLSPEC int sqlrcon_suspendSession | ( | sqlrcon | sqlrconref | ) |
Disconnects this connection from the current session but leaves the session open so that another connection can connect to it using resumeSession().
| SQLRCLIENT_DLLSPEC uint64_t sqlrcur_affectedRows | ( | sqlrcur | sqlrcurref | ) |
Returns the number of rows that were updated, inserted or deleted by the query. Not all databases support this call. Don't use it for applications which are designed to be portable across databases. 0 is returned by databases which don't support this option.
| SQLRCLIENT_DLLSPEC sqlrcur sqlrcur_alloc | ( | sqlrcon | sqlrconref | ) |
Creates a cursor to run queries and fetch result sets using connecton "sqlrconref".
| SQLRCLIENT_DLLSPEC void sqlrcur_cacheOff | ( | sqlrcur | sqlrcurref | ) |
Sets query caching off.
| SQLRCLIENT_DLLSPEC void sqlrcur_cacheToFile | ( | sqlrcur | sqlrcurref, |
| const char * | filename ) |
Sets query caching on. Future queries will be cached to the file "filename".
A default time-to-live of 10 minutes is also set.
Note that once cacheToFile() is called, the result sets of all future queries will be cached to that file until another call to cacheToFile() changes which file to cache to or a call to cacheOff() turns off caching.
| SQLRCLIENT_DLLSPEC void sqlrcur_clearBinds | ( | sqlrcur | sqlrcurref | ) |
Clears all bind variables.
| SQLRCLIENT_DLLSPEC void sqlrcur_closeResultSet | ( | sqlrcur | sqlrcurref | ) |
Closes the current result set, if one is open. Data that has been fetched already is still available but no more data may be fetched. Server side resources for the result set are freed as well.
| SQLRCLIENT_DLLSPEC uint32_t sqlrcur_colCount | ( | sqlrcur | sqlrcurref | ) |
Returns the number of columns in the current result set.
| SQLRCLIENT_DLLSPEC uint16_t sqlrcur_countBindVariables | ( | sqlrcur | sqlrcurref | ) |
Parses the previously prepared query, counts the number of bind variables defined in it and returns that number.
| SQLRCLIENT_DLLSPEC void sqlrcur_defineOutputBindBlob | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Defines a binary lob output bind variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_defineOutputBindClob | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Defines a character lob output bind variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_defineOutputBindCursor | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Defines a cursor output bind variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_defineOutputBindDate | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Defines a date output bind variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_defineOutputBindDouble | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Defines a decimal output bind variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_defineOutputBindInteger | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Defines an integer output bind variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_defineOutputBindString | ( | sqlrcur | sqlrcurref, |
| const char * | variable, | ||
| uint32_t | length ) |
Defines an output bind variable. "bufferlength" bytes will be reserved to store the value.
| SQLRCLIENT_DLLSPEC void sqlrcur_dontGetColumnInfo | ( | sqlrcur | sqlrcurref | ) |
Tells the server not to send any column info (names, types, sizes). If you don't need that info, you should call this method to improve performance.
| SQLRCLIENT_DLLSPEC int sqlrcur_endOfResultSet | ( | sqlrcur | sqlrcurref | ) |
Returns false if part of the result set is still pending on the server and true if not. This method can only return false if setResultSetBufferSize() has been called with a parameter other than 0.
| SQLRCLIENT_DLLSPEC const char * sqlrcur_errorMessage | ( | sqlrcur | sqlrcurref | ) |
If a query failed and generated an error, the error message is available here. If the query succeeded then this method returns NULL.
| SQLRCLIENT_DLLSPEC int64_t sqlrcur_errorNumber | ( | sqlrcur | sqlrcurref | ) |
If a query failed and generated an error, the error number is available here. If there is no error then this method returns 0.
| SQLRCLIENT_DLLSPEC int sqlrcur_executeQuery | ( | sqlrcur | sqlrcurref | ) |
Execute the query that was previously prepared and bound.
| SQLRCLIENT_DLLSPEC int sqlrcur_fetchFromBindCursor | ( | sqlrcur | sqlrcurref | ) |
Fetch from a cursor that was returned as an output bind variable.
| SQLRCLIENT_DLLSPEC uint64_t sqlrcur_firstRowIndex | ( | sqlrcur | sqlrcurref | ) |
Returns the index of the first buffered row. This is useful when buffering only part of the result set at a time.
| SQLRCLIENT_DLLSPEC void sqlrcur_free | ( | sqlrcur | sqlrcurref | ) |
Destroys the cursor and cleans up all associated result set data.
| SQLRCLIENT_DLLSPEC const char * sqlrcur_getCacheFileName | ( | sqlrcur | sqlrcurref | ) |
Returns the name of the file containing the cached result set.
| SQLRCLIENT_DLLSPEC int sqlrcur_getCatalogList | ( | sqlrcur | sqlrcurref, |
| const char * | catalogs ) |
Generates a result set containing catalogs that match the pattern "catalog".
The result set will contain the following columns:
If "catalog" is empty or NULL then a result set containing all catalogs will be returned.
If SQL Relay doesn't support getting a list of catalogs for the current database backend (or the database doesn't) then an empty result set will be returned.
| SQLRCLIENT_DLLSPEC void sqlrcur_getColumnInfo | ( | sqlrcur | sqlrcurref | ) |
Tells the server to send column info.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsAutoIncrementByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns true if the specified column auto-increments and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsAutoIncrementByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns true if the specified column auto-increments and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsBinaryByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns true if the specified column contains binary data and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsBinaryByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns true if the specified column contains binary data and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsNullableByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns true if the specified column can contain nulls and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsNullableByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns true if the specified column can contain nulls and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsPartOfKeyByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns true if the specified column is part of a composite key and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsPartOfKeyByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns true if the specified column is part of a composite key and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsPrimaryKeyByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns true if the specified column is a primary key and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsPrimaryKeyByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns true if the specified column is a primary key and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsUniqueByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns true if the specified column is unique and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsUniqueByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns true if the specified column is unique and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsUnsignedByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns true if the specified column is an unsigned number and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsUnsignedByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns true if the specified column is an unsigned number and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsZeroFilledByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns true if the specified column was created with the zero-fill flag and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnIsZeroFilledByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns true if the specified column was created with the zero-fill flag and false otherwise.
| SQLRCLIENT_DLLSPEC uint32_t sqlrcur_getColumnLengthByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns the number of bytes required on the server to store the data for the specified column
| SQLRCLIENT_DLLSPEC uint32_t sqlrcur_getColumnLengthByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns the number of bytes required on the server to store the data for the specified column
| SQLRCLIENT_DLLSPEC int sqlrcur_getColumnList | ( | sqlrcur | sqlrcurref, |
| const char * | table, | ||
| const char * | columns ) |
Generates a result set containing the columns of "table", which match the pattern "columns".
The result set will contain the following columns:
If "columns" is empty or NULL then a list of all columns of "table" will be returned.
If SQL Relay doesn't support getting a list of columns for the current database backend (or the database doesn't) then an empty result set will be returned.
| SQLRCLIENT_DLLSPEC const char * sqlrcur_getColumnName | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns the name of the specified column.
| SQLRCLIENT_DLLSPEC const char *const * sqlrcur_getColumnNames | ( | sqlrcur | sqlrcurref | ) |
Returns a null terminated array of the column names of the current result set.
| SQLRCLIENT_DLLSPEC uint32_t sqlrcur_getColumnPrecisionByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns the precision of the specified column. Precision is the total number of digits in a number. eg: 123.45 has a precision of 5. For non-numeric types, it's the number of characters in the string.
| SQLRCLIENT_DLLSPEC uint32_t sqlrcur_getColumnPrecisionByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns the precision of the specified column. Precision is the total number of digits in a number. eg: 123.45 has a precision of 5. For non-numeric types, it's the number of characters in the string.
| SQLRCLIENT_DLLSPEC uint32_t sqlrcur_getColumnScaleByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns the scale of the specified column. Scale is the total number of digits to the right of the decimal point in a number. eg: 123.45 has a scale of 2.
| SQLRCLIENT_DLLSPEC uint32_t sqlrcur_getColumnScaleByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns the scale of the specified column. Scale is the total number of digits to the right of the decimal point in a number. eg: 123.45 has a scale of 2.
| SQLRCLIENT_DLLSPEC const char * sqlrcur_getColumnTypeByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns the type of the specified column.
| SQLRCLIENT_DLLSPEC const char * sqlrcur_getColumnTypeByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns the type of the specified column.
| SQLRCLIENT_DLLSPEC int sqlrcur_getDatabaseList | ( | sqlrcur | sqlrcurref, |
| const char * | databases ) |
Generates a result set containing databases that match the pattern "databases".
The result set will contain the following columns:
If "databases" is empty or NULL then a result set containing all databases will be returned.
May actually return a result set of catalogs or schemas, depending on whether the backend database equates "database" with catalog or schema.
See getDatabaseIsSchema().
If SQL Relay doesn't support getting a list of databases for the current database backend (or the database doesn't) then an empty result set will be returned.
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsBooleanByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Returns the specified field as a boolean.
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsBooleanByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Returns the specified field as a boolean.
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsBooleanByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Returns the specified field as a boolean, ignoring the case of "col".
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsDateByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col, | ||
| int16_t * | year, | ||
| int16_t * | month, | ||
| int16_t * | day, | ||
| int16_t * | hour, | ||
| int16_t * | minute, | ||
| int16_t * | second, | ||
| int32_t * | microsecond, | ||
| int * | isnegative ) |
Interprets the specified field as a date and populates its broken-down parts.
Returns true if it was able to interpret the field as a date, and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsDateByIndexWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters, | ||
| int16_t * | year, | ||
| int16_t * | month, | ||
| int16_t * | day, | ||
| int16_t * | hour, | ||
| int16_t * | minute, | ||
| int16_t * | second, | ||
| int32_t * | microsecond, | ||
| int * | isnegative ) |
Interprets the specified field as a date and populates its broken-down parts.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
Returns true if it was able to interpret the field as a date, and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsDateByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int16_t * | year, | ||
| int16_t * | month, | ||
| int16_t * | day, | ||
| int16_t * | hour, | ||
| int16_t * | minute, | ||
| int16_t * | second, | ||
| int32_t * | microsecond, | ||
| int * | isnegative ) |
Interprets the specified field as a date and populates its broken-down parts.
Returns true if it was able to interpret the field as a date, and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsDateByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int16_t * | year, | ||
| int16_t * | month, | ||
| int16_t * | day, | ||
| int16_t * | hour, | ||
| int16_t * | minute, | ||
| int16_t * | second, | ||
| int32_t * | microsecond, | ||
| int * | isnegative ) |
Interprets the specified field as a date and populates its broken-down parts, ignoring the case of "col".
Returns true if it was able to interpret the field as a date, and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsDateByNameWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters, | ||
| int16_t * | year, | ||
| int16_t * | month, | ||
| int16_t * | day, | ||
| int16_t * | hour, | ||
| int16_t * | minute, | ||
| int16_t * | second, | ||
| int32_t * | microsecond, | ||
| int * | isnegative ) |
Interprets the specified field as a date and populates its broken-down parts.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
Returns true if it was able to interpret the field as a date, and false otherwise.
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsDateByNameWithDdMmIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters, | ||
| int16_t * | year, | ||
| int16_t * | month, | ||
| int16_t * | day, | ||
| int16_t * | hour, | ||
| int16_t * | minute, | ||
| int16_t * | second, | ||
| int32_t * | microsecond, | ||
| int * | isnegative ) |
Interprets the specified field as a date and populates its broken-down parts, ignoring the case of "col".
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
Returns true if it was able to interpret the field as a date, and false otherwise.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateDayByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Interprets the specified field as a date and returns the day component.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateDayByIndexWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the day component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateDayByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the day component.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateDayByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the day component, ignoring the case of "col".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateDayByNameWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the day component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateDayByNameWithDdMmIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the day component, ignoring the case of "col".
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateHourByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Interprets the specified field as a date and returns the hour component.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateHourByIndexWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the hour component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateHourByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the hour component.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateHourByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the hour component, ignoring the case of "col".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateHourByNameWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the hour component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateHourByNameWithDdMmIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the hour component, ignoring the case of "col".
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsDateIsNegativeByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Interprets the specified field as a date and returns whether the hour component is negative.
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsDateIsNegativeByIndexWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns whether the hour component is negative.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsDateIsNegativeByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns whether the hour component is negative.
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsDateIsNegativeByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns whether the hour component is negative, ignoring the case of "col".
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsDateIsNegativeByNameWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns whether the hour component is negative.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int sqlrcur_getFieldAsDateIsNegativeByNameWithDdMmIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns whether the hour component is negative, ignoring the case of "col".
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int32_t sqlrcur_getFieldAsDateMicrosecondByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Interprets the specified field as a date and returns the microsecond component.
| SQLRCLIENT_DLLSPEC int32_t sqlrcur_getFieldAsDateMicrosecondByIndexWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the microsecond component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int32_t sqlrcur_getFieldAsDateMicrosecondByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the microsecond component.
| SQLRCLIENT_DLLSPEC int32_t sqlrcur_getFieldAsDateMicrosecondByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the microsecond component, ignoring the case of "col".
| SQLRCLIENT_DLLSPEC int32_t sqlrcur_getFieldAsDateMicrosecondByNameWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the microsecond component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int32_t sqlrcur_getFieldAsDateMicrosecondByNameWithDdMmIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the microsecond component, ignoring the case of "col".
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateMinuteByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Interprets the specified field as a date and returns the minute component.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateMinuteByIndexWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the minute component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateMinuteByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the minute component.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateMinuteByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the minute component, ignoring the case of "col".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateMinuteByNameWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the minute component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateMinuteByNameWithDdMmIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the minute component, ignoring the case of "col".
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateMonthByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Interprets the specified field as a date and returns the month component.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateMonthByIndexWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the month component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateMonthByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the month component.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateMonthByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the month component, ignoring the case of "col".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateMonthByNameWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the month component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateMonthByNameWithDdMmIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the month component, ignoring the case of "col".
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateSecondByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Interprets the specified field as a date and returns the second component.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateSecondByIndexWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the second component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateSecondByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the second component.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateSecondByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the second component, ignoring the case of "col".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateSecondByNameWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the second component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateSecondByNameWithDdMmIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the second component, ignoring the case of "col".
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateYearByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Interprets the specified field as a date and returns the year component.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateYearByIndexWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the year component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateYearByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the year component.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateYearByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Interprets the specified field as a date and returns the year component, ignoring the case of "col".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateYearByNameWithDdMm | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the year component.
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getFieldAsDateYearByNameWithDdMmIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col, | ||
| int | ddmm, | ||
| int | yyyyddmm, | ||
| const char * | datedelimiters ) |
Interprets the specified field as a date and returns the year component, ignoring the case of "col".
If "ddmm" is set true then the date format is assumed to be dd/mm/yyyy rather than mm/dd/yyyy when a date with a trailing year is encountered.
If "yyyyddmm" is set true then the date format is assumed to be yyyy/dd/mm rather than yyyy/mm/dd when a date with a leading year is encountered.
"datedelimiters" may be set to a set of valid date delimiters and may contain any combination of '/', '-', '.', and ':'. Eg. "/-" would mean that only '/' and '-' are valid date delimiters. If left NULL then it defaults to "/-.:".
| SQLRCLIENT_DLLSPEC double sqlrcur_getFieldAsDoubleByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Returns the specified field as an decimal.
| SQLRCLIENT_DLLSPEC double sqlrcur_getFieldAsDoubleByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Returns the specified field as an decimal.
| SQLRCLIENT_DLLSPEC double sqlrcur_getFieldAsDoubleByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Returns the specified field as a decimal, ignoring the case of "col".
| SQLRCLIENT_DLLSPEC int64_t sqlrcur_getFieldAsIntegerByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Returns the specified field as an integer.
| SQLRCLIENT_DLLSPEC int64_t sqlrcur_getFieldAsIntegerByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Returns the specified field as an integer.
| SQLRCLIENT_DLLSPEC int64_t sqlrcur_getFieldAsIntegerByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Returns the specified field as an integer, ignoring the case of "col".
| SQLRCLIENT_DLLSPEC const char * sqlrcur_getFieldByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Returns the specified field as a string.
| SQLRCLIENT_DLLSPEC const char * sqlrcur_getFieldByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Returns the specified field as a string.
| SQLRCLIENT_DLLSPEC const char * sqlrcur_getFieldByNameIgnoringCase | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Returns the specified field as a string, ignoring the case of "col".
| SQLRCLIENT_DLLSPEC uint32_t sqlrcur_getFieldLengthByIndex | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| uint32_t | col ) |
Returns the length of the specified field.
| SQLRCLIENT_DLLSPEC uint32_t sqlrcur_getFieldLengthByName | ( | sqlrcur | sqlrcurref, |
| uint64_t | row, | ||
| const char * | col ) |
Returns the length of the specified field.
| SQLRCLIENT_DLLSPEC int sqlrcur_getKeyAndIndexList | ( | sqlrcur | sqlrcurref, |
| const char * | table, | ||
| const char * | qualifier ) |
Generates a result set containing the keys and indexes of "table", which match the pattern "qualifier".
The result set will contain the following columns:
If "qualifier" is empty or NULL then a result set containing all keys and indexes of "table" will be returned.
If SQL Relay doesn't support getting a list of keys and indexes for the current database backend (or the database doesn't) then an empty result set will be returned.
| SQLRCLIENT_DLLSPEC uint32_t sqlrcur_getLongestByIndex | ( | sqlrcur | sqlrcurref, |
| uint32_t | col ) |
Returns the length of the longest field in the specified column.
| SQLRCLIENT_DLLSPEC uint32_t sqlrcur_getLongestByName | ( | sqlrcur | sqlrcurref, |
| const char * | col ) |
Returns the length of the longest field in the specified column.
| SQLRCLIENT_DLLSPEC void sqlrcur_getNullsAsEmptyStrings | ( | sqlrcur | sqlrcurref | ) |
Tells the connection to return NULL fields and output bind variables as empty strings. This is the default.
| SQLRCLIENT_DLLSPEC void sqlrcur_getNullsAsNulls | ( | sqlrcur | sqlrcurref | ) |
Tells the connection to return NULL fields and output bind variables as NULL's rather than as empty strings.
| SQLRCLIENT_DLLSPEC const char * sqlrcur_getOutputBindBlob | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the value stored in a previously defined binary lob output bind variable.
| SQLRCLIENT_DLLSPEC const char * sqlrcur_getOutputBindClob | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the value stored in a previously defined character lob output bind variable.
| SQLRCLIENT_DLLSPEC sqlrcur sqlrcur_getOutputBindCursor | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the cursor associated with a previously defined output bind variable.
| SQLRCLIENT_DLLSPEC int sqlrcur_getOutputBindDate | ( | sqlrcur | sqlrcurref, |
| const char * | variable, | ||
| int16_t * | year, | ||
| int16_t * | month, | ||
| int16_t * | day, | ||
| int16_t * | hour, | ||
| int16_t * | minute, | ||
| int16_t * | second, | ||
| int32_t * | microsecond, | ||
| const char ** | tz, | ||
| int * | isnegative ) |
Get the value stored in a previously defined date output bind variable.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getOutputBindDateDay | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the day from a previously defined date output bind variable.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getOutputBindDateHour | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the hour from a previously defined date output bind variable.
| SQLRCLIENT_DLLSPEC int sqlrcur_getOutputBindDateIsNegative | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get whether the value is negative from a previously defined date output bind variable.
| SQLRCLIENT_DLLSPEC int32_t sqlrcur_getOutputBindDateMicrosecond | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the microsecond from a previously defined date output bind variable.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getOutputBindDateMinute | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the minute from a previously defined date output bind variable.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getOutputBindDateMonth | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the month from a previously defined date output bind variable.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getOutputBindDateSecond | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the second from a previously defined date output bind variable.
| SQLRCLIENT_DLLSPEC const char * sqlrcur_getOutputBindDateTz | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the time zone from a previously defined date output bind variable.
| SQLRCLIENT_DLLSPEC int16_t sqlrcur_getOutputBindDateYear | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the year from a previously defined date output bind variable.
| SQLRCLIENT_DLLSPEC double sqlrcur_getOutputBindDouble | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the value stored in a previously defined decimal output bind variable.
| SQLRCLIENT_DLLSPEC int64_t sqlrcur_getOutputBindInteger | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the value stored in a previously defined integer output bind variable.
| SQLRCLIENT_DLLSPEC uint32_t sqlrcur_getOutputBindLength | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the length of the value stored in a previously defined output bind variable.
| SQLRCLIENT_DLLSPEC const char * sqlrcur_getOutputBindString | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Get the value stored in a previously defined string output bind variable.
| SQLRCLIENT_DLLSPEC int sqlrcur_getPrimaryKeysList | ( | sqlrcur | sqlrcurref, |
| const char * | table, | ||
| const char * | columns ) |
Generates a result set containing the primary keys of "table", which match the pattern "columns".
The result set will contain the following columns:
If "columns" is empty or NULL then a result set containing all primary keys of "table" will be returned.
If SQL Relay doesn't support getting a list of primary keys for the current database backend (or the database doesn't) then an empty result set will be returned.
| SQLRCLIENT_DLLSPEC int sqlrcur_getProcedureList | ( | sqlrcur | sqlrcurref, |
| const char * | procedures ) |
Generates a result set containing procedures that match the pattern "procedures".
The result set will contain the following columns:
If "procedures" is empty or NULL then a result set containing all procedures in the current database/schema will be returned.
If SQL Relay doesn't support getting a list of procedures for the current database backend (or the database doesn't) then an empty result set will be returned.
| SQLRCLIENT_DLLSPEC int sqlrcur_getProcedureParameterList | ( | sqlrcur | sqlrcurref, |
| const char * | procedure, | ||
| const char * | parameters ) |
Generates a result set containing the parameters of "procedure", which match the pattern "parameters".
The result set will contain the following columns:
If "parameters" is empty or NULL then a result set containing all parameters of "procedure" will be returned.
If SQL Relay doesn't support getting a list of procedure parameters for the current database backend (or the database doesn't) then an empty result set will be returned.
| SQLRCLIENT_DLLSPEC uint64_t sqlrcur_getResultSetBufferSize | ( | sqlrcur | sqlrcurref | ) |
Returns the number of result set rows that will be buffered at a time or 0 for the entire result set.
| SQLRCLIENT_DLLSPEC uint16_t sqlrcur_getResultSetId | ( | sqlrcur | sqlrcurref | ) |
Returns the internal ID of this result set. This parameter may be passed to another cursor for use in the resumeResultSet() method. Note: The value this method returns is only valid after a call to suspendResultSet().
| SQLRCLIENT_DLLSPEC const char *const * sqlrcur_getRow | ( | sqlrcur | sqlrcurref, |
| uint64_t | row ) |
Returns a null terminated array of the values of the fields in the specified row.
| SQLRCLIENT_DLLSPEC uint32_t * sqlrcur_getRowLengths | ( | sqlrcur | sqlrcurref, |
| uint64_t | row ) |
Returns a null terminated array of the lengths of the fields in the specified row.
| SQLRCLIENT_DLLSPEC int sqlrcur_getSchemaList | ( | sqlrcur | sqlrcurref, |
| const char * | schemas ) |
Generates a result set containing schemas that match the pattern "schemas".
The result set will contain the following columns:
(The column name is a bit of a misnomer, the results are schemas, not databases.)
If "schemas" is empty or NULL then a result set containing all schemas in the current database will be returned.
If SQL Relay doesn't support getting a list of schemas for the current database backend (or the database doesn't) then an empty result set will be returned.
| SQLRCLIENT_DLLSPEC int sqlrcur_getTableList | ( | sqlrcur | sqlrcurref, |
| const char * | tables ) |
Generates a result set containing the tables in the current database and schema that match the pattern "tables".
The result set will contain the following columns:
If "tables" is empty or NULL then a result set containing all tables in the current database/schema will be returned.
If SQL Relay doesn't support getting a list of tables for the current database backend (or the database doesn't) then an empty result set will be returned.
| SQLRCLIENT_DLLSPEC int sqlrcur_getTableTypeList | ( | sqlrcur | sqlrcurref | ) |
Generates a result set containing supported table types.
The result set will contain the following columns:
If SQL Relay doesn't support getting a list of table types for the current database backend (or the database doesn't) then an empty result set will be returned.
| SQLRCLIENT_DLLSPEC int sqlrcur_getTypeInfoList | ( | sqlrcur | sqlrcurref, |
| const char * | type ) |
Generates a result set containing data type information for "type".
The result set will contain the following columns:
If "type" is empty or NULL then a result set containing all data types in the current databas/schema will be returned.
If SQL Relay doesn't support getting type info for the current database backend (or the database doesn't) then an empty result set will be returned.
| SQLRCLIENT_DLLSPEC void sqlrcur_inputBindBlob | ( | sqlrcur | sqlrcurref, |
| const char * | variable, | ||
| const char * | value, | ||
| uint32_t | size ) |
Defines a binary lob input bind variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_inputBindClob | ( | sqlrcur | sqlrcurref, |
| const char * | variable, | ||
| const char * | value, | ||
| uint32_t | size ) |
Defines a character lob input bind variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_inputBindDate | ( | sqlrcur | sqlrcurref, |
| const char * | variable, | ||
| int16_t | year, | ||
| int16_t | month, | ||
| int16_t | day, | ||
| int16_t | hour, | ||
| int16_t | minute, | ||
| int16_t | second, | ||
| int32_t | microsecond, | ||
| const char * | tz, | ||
| int | isnegative ) |
Defines a date input bind variable. "day" and "month" are 1-based.
Some databases distinguish between date, time, and datetime types. For those databases...
"tz" is the timezone abbreviation, and may be left NULL. Most databases ignore "tz".
Set "isnegative" may be set to true to represent a negative time interval. However, few databases support negative time intervals and ignore "isnegative".
| SQLRCLIENT_DLLSPEC void sqlrcur_inputBindDouble | ( | sqlrcur | sqlrcurref, |
| const char * | variable, | ||
| double | value, | ||
| uint32_t | precision, | ||
| uint32_t | scale ) |
Defines a decimal input bind variable. (If you don't have the precision and scale then set them both 0. However in that case you may get unexpected rounding behavior if the server is faking binds.)
| SQLRCLIENT_DLLSPEC void sqlrcur_inputBindDoubles | ( | sqlrcur | sqlrcurref, |
| const char ** | variables, | ||
| const double * | values, | ||
| const uint32_t * | precisions, | ||
| const uint32_t * | scales ) |
Defines an array of decimal input bind variables.
| SQLRCLIENT_DLLSPEC void sqlrcur_inputBindLong | ( | sqlrcur | sqlrcurref, |
| const char * | variable, | ||
| int64_t | value ) |
Defines a integer input bind variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_inputBindLongs | ( | sqlrcur | sqlrcurref, |
| const char ** | variables, | ||
| const int64_t * | values ) |
Defines an array of integer input bind variables.
| SQLRCLIENT_DLLSPEC void sqlrcur_inputBindString | ( | sqlrcur | sqlrcurref, |
| const char * | variable, | ||
| const char * | value ) |
Defines a string input bind variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_inputBindStrings | ( | sqlrcur | sqlrcurref, |
| const char ** | variables, | ||
| const char ** | values ) |
Defines an array of string input bind variables.
| SQLRCLIENT_DLLSPEC void sqlrcur_inputBindStringWithLength | ( | sqlrcur | sqlrcurref, |
| const char * | variable, | ||
| const char * | value, | ||
| uint32_t | valuelength ) |
Defines a string input bind variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_lowerCaseColumnNames | ( | sqlrcur | sqlrcurref | ) |
Columns names are converted to lower case.
| SQLRCLIENT_DLLSPEC void sqlrcur_mixedCaseColumnNames | ( | sqlrcur | sqlrcurref | ) |
Columns names are returned in the same case as they are defined in the database. This is the default.
| SQLRCLIENT_DLLSPEC int sqlrcur_nextResultSet | ( | sqlrcur | sqlrcurref | ) |
Returns true and acts like executeQuery() when there is another result set available from the server.
| SQLRCLIENT_DLLSPEC int sqlrcur_openCachedResultSet | ( | sqlrcur | sqlrcurref, |
| const char * | filename ) |
Opens a cached result set. Returns true on success and false on failure.
| SQLRCLIENT_DLLSPEC void sqlrcur_prepareFileQuery | ( | sqlrcur | sqlrcurref, |
| const char * | path, | ||
| const char * | filename ) |
Prepare to execute the contents of "path"/"filename". Returns false if the // file couldn't be opened.
| SQLRCLIENT_DLLSPEC void sqlrcur_prepareQuery | ( | sqlrcur | sqlrcurref, |
| const char * | query ) |
Prepare to execute "query".
| SQLRCLIENT_DLLSPEC void sqlrcur_prepareQueryWithLength | ( | sqlrcur | sqlrcurref, |
| const char * | query, | ||
| uint32_t | length ) |
Prepare to execute "query" with length "length". This method must be used if the query contains binary data.
| SQLRCLIENT_DLLSPEC int sqlrcur_resumeCachedResultSet | ( | sqlrcur | sqlrcurref, |
| uint16_t | id, | ||
| const char * | filename ) |
Resumes a result set previously left open using suspendSession() and continues caching the result set to "filename". Returns true on success and false on failure.
| SQLRCLIENT_DLLSPEC int sqlrcur_resumeResultSet | ( | sqlrcur | sqlrcurref, |
| uint16_t | id ) |
Resumes a result set previously left open using suspendSession(). Returns true on success and false on failure.
| SQLRCLIENT_DLLSPEC uint64_t sqlrcur_rowCount | ( | sqlrcur | sqlrcurref | ) |
Returns the number of rows in the current result set (if the result set is being stepped through, this returns the number of rows processed so far).
| SQLRCLIENT_DLLSPEC int sqlrcur_sendFileQuery | ( | sqlrcur | sqlrcurref, |
| const char * | path, | ||
| const char * | filename ) |
Sends the query in file "path"/"filename" directly and gets a result set.
| SQLRCLIENT_DLLSPEC int sqlrcur_sendQuery | ( | sqlrcur | sqlrcurref, |
| const char * | query ) |
Sends "query" directly and gets a result set.
| SQLRCLIENT_DLLSPEC int sqlrcur_sendQueryWithLength | ( | sqlrcur | sqlrcurref, |
| const char * | query, | ||
| uint32_t | length ) |
Sends "query" with length "length" directly and gets a result set. This method must be used if the query contains binary data.
| SQLRCLIENT_DLLSPEC void sqlrcur_setCacheTtl | ( | sqlrcur | sqlrcurref, |
| uint32_t | ttl ) |
Sets the time-to-live for cached result sets. The sqlr-cachemanger will remove each cached result set "ttl" seconds after it's created, provided it's scanning the directory containing the cache files.
| SQLRCLIENT_DLLSPEC void sqlrcur_setResultSetBufferSize | ( | sqlrcur | sqlrcurref, |
| uint64_t | rows ) |
Sets the number of rows of the result set to buffer at a time. 0 (the default) means buffer the entire result set.
| SQLRCLIENT_DLLSPEC void sqlrcur_subDouble | ( | sqlrcur | sqlrcurref, |
| const char * | variable, | ||
| double | value, | ||
| uint32_t | precision, | ||
| uint32_t | scale ) |
Defines a decimal substitution variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_subDoubles | ( | sqlrcur | sqlrcurref, |
| const char ** | variables, | ||
| const double * | values, | ||
| const uint32_t * | precisions, | ||
| const uint32_t * | scales ) |
Defines an array of decimal substitution variables.
| SQLRCLIENT_DLLSPEC void sqlrcur_subLong | ( | sqlrcur | sqlrcurref, |
| const char * | variable, | ||
| int64_t | value ) |
Defines an integer substitution variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_subLongs | ( | sqlrcur | sqlrcurref, |
| const char ** | variables, | ||
| const int64_t * | values ) |
Defines an array of integer substitution variables.
| SQLRCLIENT_DLLSPEC void sqlrcur_subString | ( | sqlrcur | sqlrcurref, |
| const char * | variable, | ||
| const char * | value ) |
Defines a string substitution variable.
| SQLRCLIENT_DLLSPEC void sqlrcur_subStrings | ( | sqlrcur | sqlrcurref, |
| const char ** | variables, | ||
| const char ** | values ) |
Defines an array of string substitution variables.
| SQLRCLIENT_DLLSPEC void sqlrcur_suspendResultSet | ( | sqlrcur | sqlrcurref | ) |
Tells the server to leave this result set open when the connection calls suspendSession() so that another connection can connect to it using resumeResultSet() after it calls resumeSession().
| SQLRCLIENT_DLLSPEC uint64_t sqlrcur_totalRows | ( | sqlrcur | sqlrcurref | ) |
Returns the total number of rows that will be returned in the result set. Not all databases support this call. Don't use it for applications which are designed to be portable across databases. 0 is returned by databases which don't support this option.
| SQLRCLIENT_DLLSPEC void sqlrcur_upperCaseColumnNames | ( | sqlrcur | sqlrcurref | ) |
Columns names are converted to upper case.
| SQLRCLIENT_DLLSPEC void sqlrcur_validateBinds | ( | sqlrcur | sqlrcurref | ) |
If you are binding to any variables that might not actually be in your query, call this to ensure that the database won't try to bind them unless they really are in the query. There is a performance penalty for calling this method.
| SQLRCLIENT_DLLSPEC int sqlrcur_validBind | ( | sqlrcur | sqlrcurref, |
| const char * | variable ) |
Returns true if "variable" was a valid bind variable of the query.