ODPI-C Union dpiDataBuffer¶
This union is used for passing data to and from the database without requiring casts.
-
int dpiDataBuffer.asBoolean¶
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_BOOLEAN. The value should be either 1 (true) or 0 (false).
-
int64_t dpiDataBuffer.asInt64¶
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_INT64.
-
uint64_t dpiDataBuffer.asUint64¶
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_UINT64.
-
float dpiDataBuffer.asFloat¶
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_FLOAT.
-
double dpiDataBuffer.asDouble¶
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_DOUBLE.
-
dpiBytes dpiDataBuffer.asBytes¶
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_BYTES. This is a structure of type dpiBytes.
-
dpiTimestamp dpiDataBuffer.asTimestamp¶
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_TIMESTAMP. This is a structure of type dpiTimestamp.
-
dpiIntervalDS dpiDataBuffer.asIntervalDS¶
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_INTERVAL_DS. This is a structure of type dpiIntervalDS.
-
dpiIntervalYM dpiDataBuffer.asIntervalYM¶
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_INTERVAL_YM. This is a structure of type dpiIntervalYM.
- dpiLob \*dpiDataBuffer.asLOB
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_LOB. This is a reference to a LOB (large object) which can be used for reading and writing the data that belongs to it.
-
int dpiDataBuffer.asObject¶
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_OBJECT. This is a reference to an object which can be used for reading and writing its attributes or element values.
-
int dpiDataBuffer.asStmt¶
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_STMT. This is a reference to a statement which can be used to query data from the database.
-
int dpiDataBuffer.asRowid¶
Value that is used when the native type that is being used is DPI_NATIVE_TYPE_ROWID. This is a reference to a rowid which is used to uniquely identify a row in a table in the database.