SQLGetDataNative typedef

SQLGetDataNative = SQLRETURN Function(SQLHANDLE stmt, Uint16 colNumber, Uint16 targetType, Pointer<Void> targetValue, Int64 bufferLength, Pointer<Int64> strLenOrIndPtr)

Native signature for SQLGetData. Retrieves data for a single column in the current row of the result set. Typically called after SQLFetch.

Implementation

typedef SQLGetDataNative =
    SQLRETURN Function(
      SQLHANDLE stmt, // Statement handle.
      Uint16 colNumber, // Column number to retrieve data from (1-based).
      Uint16
      targetType, // The C data type to convert the column data to (e.g., SQL_C_CHAR, SQL_C_SLONG).
      Pointer<Void>
      targetValue, // Pointer to the buffer to store the retrieved data.
      Int64 bufferLength, // Length of the targetValue buffer in bytes.
      Pointer<Int64>
      strLenOrIndPtr, // Pointer to store the length of the data or an indicator (e.g., SQL_NULL_DATA).
    );