OCILIB (C and C++ Driver for Oracle)
4.7.5
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
OcilibCApiFiles
Long Objects encapsulate Oracle LONGs data types and were used to store large buffers in Oracle database.
They're still supported but are depreciated. Oracle now provides a newer and better way to deal with data that needs large storage : LOBs
OCILIB supports this data type because it was and still is widely used
OCILIB provides a set of API for manipulating LONGs that is really close to the one provided for LOBs.
OCILIB currently supports 3 types of Long Objects:
OCI_Lob objects can be :
Functions | |
OCI_SYM_PUBLIC OCI_Long *OCI_API | OCI_LongCreate (OCI_Statement *stmt, unsigned int type) |
Create a local temporary Long instance. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_LongFree (OCI_Long *lg) |
Free a local temporary long. | |
OCI_SYM_PUBLIC unsigned int OCI_API | OCI_LongGetType (OCI_Long *lg) |
Return the type of the given Long object. | |
OCI_SYM_PUBLIC unsigned int OCI_API | OCI_LongRead (OCI_Long *lg, void *buffer, unsigned int len) |
Read a portion of a long into the given buffer [Obsolete]. | |
OCI_SYM_PUBLIC unsigned int OCI_API | OCI_LongWrite (OCI_Long *lg, void *buffer, unsigned int len) |
Write a buffer into a Long. | |
OCI_SYM_PUBLIC unsigned int OCI_API | OCI_LongGetSize (OCI_Long *lg) |
Return the buffer size of a long object in bytes (OCI_BLONG) or character (OCI_CLONG) | |
OCI_SYM_PUBLIC void *OCI_API | OCI_LongGetBuffer (OCI_Long *lg) |
Return the internal buffer of an OCI_Long object read from a fetch sequence. | |
OCI_SYM_PUBLIC OCI_Long *OCI_API OCI_LongCreate | ( | OCI_Statement * | stmt, |
unsigned int | type | ||
) |
#include <api.h>
Create a local temporary Long instance.
stmt | - Statement handle |
type | - Long type |
Supported lob types :
Referenced by ocilib::Long< T, U >::Long().
OCI_SYM_PUBLIC boolean OCI_API OCI_LongFree | ( | OCI_Long * | lg | ) |
#include <api.h>
Free a local temporary long.
lg | - Long handle |
OCI_SYM_PUBLIC unsigned int OCI_API OCI_LongGetType | ( | OCI_Long * | lg | ) |
#include <api.h>
Return the type of the given Long object.
lg | - Long handle |
OCI_SYM_PUBLIC unsigned int OCI_API OCI_LongRead | ( | OCI_Long * | lg, |
void * | buffer, | ||
unsigned int | len | ||
) |
#include <api.h>
Read a portion of a long into the given buffer [Obsolete].
lg | - Long handle |
buffer | - Pointer to a buffer |
len | - Length of the buffer in bytes / characters |
OCI_SYM_PUBLIC unsigned int OCI_API OCI_LongWrite | ( | OCI_Long * | lg, |
void * | buffer, | ||
unsigned int | len | ||
) |
#include <api.h>
Write a buffer into a Long.
lg | - Long handle |
buffer | - the pointer to a buffer |
len | - the length of the buffer in bytes (OCI_BLONG) or character (OCI_CLONG) |
Referenced by ocilib::Long< T, U >::Write().
OCI_SYM_PUBLIC unsigned int OCI_API OCI_LongGetSize | ( | OCI_Long * | lg | ) |
#include <api.h>
Return the buffer size of a long object in bytes (OCI_BLONG) or character (OCI_CLONG)
lg | - Long handle |
Referenced by ocilib::Long< T, U >::GetLength().
OCI_SYM_PUBLIC void *OCI_API OCI_LongGetBuffer | ( | OCI_Long * | lg | ) |
#include <api.h>
Return the internal buffer of an OCI_Long object read from a fetch sequence.
lg | - Long handle |