|
OCILIB (C and C++ Driver for Oracle)
4.0.0
|
External Large Objects (FILEs) were introduced with Oracle 8i
Oracle OCI supplies a set APIs to manipulate this data type.
OCILIB encapsulates this API by supplying:
OCILIB currently supports 2 types of Lobs :
OCI_Lob objects can be :
Functions | |
| OCI_EXPORT OCI_File *OCI_API | OCI_FileCreate (OCI_Connection *con, unsigned int type) |
| Create a file object instance. More... | |
| OCI_EXPORT boolean OCI_API | OCI_FileFree (OCI_File *file) |
| Free a local File object. More... | |
| OCI_EXPORT OCI_File **OCI_API | OCI_FileArrayCreate (OCI_Connection *con, unsigned int type, unsigned int nbelem) |
| Create an array of file object. More... | |
| OCI_EXPORT boolean OCI_API | OCI_FileArrayFree (OCI_File **files) |
| Free an array of file objects. More... | |
| OCI_EXPORT unsigned int OCI_API | OCI_FileGetType (OCI_File *file) |
| Return the type of the given File object. More... | |
| OCI_EXPORT boolean OCI_API | OCI_FileSeek (OCI_File *file, big_uint offset, unsigned int mode) |
| Perform a seek operation on the OCI_File content buffer. More... | |
| OCI_EXPORT big_uint OCI_API | OCI_FileGetOffset (OCI_File *file) |
| Return the current position in the file. More... | |
| OCI_EXPORT unsigned int OCI_API | OCI_FileRead (OCI_File *file, void *buffer, unsigned int len) |
| Read a portion of a file into the given buffer. More... | |
| OCI_EXPORT big_uint OCI_API | OCI_FileGetSize (OCI_File *file) |
| Return the size in bytes of a file. More... | |
| OCI_EXPORT boolean OCI_API | OCI_FileExists (OCI_File *file) |
| Check if the given file exists on server. More... | |
| OCI_EXPORT boolean OCI_API | OCI_FileSetName (OCI_File *file, const otext *dir, const otext *name) |
| Set the directory and file name of FILE handle. More... | |
| OCI_EXPORT const otext *OCI_API | OCI_FileGetDirectory (OCI_File *file) |
| Return the directory of the given file. More... | |
| OCI_EXPORT const otext *OCI_API | OCI_FileGetName (OCI_File *file) |
| Return the name of the given file. More... | |
| OCI_EXPORT boolean OCI_API | OCI_FileOpen (OCI_File *file) |
| Open a file for reading. More... | |
| OCI_EXPORT boolean OCI_API | OCI_FileIsOpen (OCI_File *file) |
| Check if the specified file is opened within the file handle. More... | |
| OCI_EXPORT boolean OCI_API | OCI_FileClose (OCI_File *file) |
| Close a file. More... | |
| OCI_EXPORT boolean OCI_API | OCI_FileIsEqual (OCI_File *file, OCI_File *file2) |
| Compare two file handle for equality. More... | |
| OCI_EXPORT boolean OCI_API | OCI_FileAssign (OCI_File *file, OCI_File *file_src) |
| Assign a file to another one. More... | |
| OCI_EXPORT OCI_Connection *OCI_API | OCI_FileGetConnection (OCI_File *file) |
| Retrieve connection handle from the file handle. More... | |
| OCI_EXPORT OCI_File* OCI_API OCI_FileCreate | ( | OCI_Connection * | con, |
| unsigned int | type | ||
| ) |
#include <ocilib.h>
Create a file object instance.
| con | - Connection handle |
| type | - File type |
Supported file types :
Referenced by ocilib::File::File().
| OCI_EXPORT boolean OCI_API OCI_FileFree | ( | OCI_File * | file | ) |
#include <ocilib.h>
Free a local File object.
| file | - File handle |
Referenced by ocilib::File::File().
| OCI_EXPORT OCI_File** OCI_API OCI_FileArrayCreate | ( | OCI_Connection * | con, |
| unsigned int | type, | ||
| unsigned int | nbelem | ||
| ) |
#include <ocilib.h>
Create an array of file object.
| con | - Connection handle |
| type | - File type |
| nbelem | - number of elements in the array |
| OCI_EXPORT boolean OCI_API OCI_FileArrayFree | ( | OCI_File ** | files | ) |
#include <ocilib.h>
Free an array of file objects.
| files | - Array of file objects |
| OCI_EXPORT unsigned int OCI_API OCI_FileGetType | ( | OCI_File * | file | ) |
#include <ocilib.h>
Return the type of the given File object.
| file | - File handle |
| OCI_EXPORT boolean OCI_API OCI_FileSeek | ( | OCI_File * | file, |
| big_uint | offset, | ||
| unsigned int | mode | ||
| ) |
#include <ocilib.h>
Perform a seek operation on the OCI_File content buffer.
| file | - File handle |
| offset | - Offset from current position |
| mode | - Seek mode |
Mode parameter can be one of the following value :
Referenced by ocilib::File::Seek().
| OCI_EXPORT big_uint OCI_API OCI_FileGetOffset | ( | OCI_File * | file | ) |
#include <ocilib.h>
Return the current position in the file.
| file | - File handle |
Referenced by ocilib::File::GetOffset().
| OCI_EXPORT unsigned int OCI_API OCI_FileRead | ( | OCI_File * | file, |
| void * | buffer, | ||
| unsigned int | len | ||
| ) |
#include <ocilib.h>
Read a portion of a file into the given buffer.
| file | - File handle |
| buffer | - Pointer to a buffer |
| len | - Length of the buffer in bytes |
Referenced by ocilib::File::Read().
| OCI_EXPORT big_uint OCI_API OCI_FileGetSize | ( | OCI_File * | file | ) |
#include <ocilib.h>
Return the size in bytes of a file.
| file | - File handle |
Referenced by ocilib::File::GetLength().
| OCI_EXPORT boolean OCI_API OCI_FileExists | ( | OCI_File * | file | ) |
#include <ocilib.h>
Check if the given file exists on server.
| file | - File handle |
Referenced by ocilib::File::Exists().
| OCI_EXPORT boolean OCI_API OCI_FileSetName | ( | OCI_File * | file, |
| const otext * | dir, | ||
| const otext * | name | ||
| ) |
#include <ocilib.h>
Set the directory and file name of FILE handle.
| file | - File handle |
| dir | - File directory |
| name | - File name |
Referenced by ocilib::File::SetInfos().
| OCI_EXPORT const otext* OCI_API OCI_FileGetDirectory | ( | OCI_File * | file | ) |
#include <ocilib.h>
Return the directory of the given file.
| file | - File handle |
Referenced by ocilib::File::GetDirectory().
| OCI_EXPORT const otext* OCI_API OCI_FileGetName | ( | OCI_File * | file | ) |
#include <ocilib.h>
Return the name of the given file.
| file | - File handle |
Referenced by ocilib::File::GetName().
| OCI_EXPORT boolean OCI_API OCI_FileOpen | ( | OCI_File * | file | ) |
#include <ocilib.h>
Open a file for reading.
| file | - File handle |
Referenced by ocilib::File::Open().
| OCI_EXPORT boolean OCI_API OCI_FileIsOpen | ( | OCI_File * | file | ) |
#include <ocilib.h>
Check if the specified file is opened within the file handle.
| file | - File handle |
Referenced by ocilib::File::IsOpened().
| OCI_EXPORT boolean OCI_API OCI_FileClose | ( | OCI_File * | file | ) |
#include <ocilib.h>
Close a file.
| file | - File handle |
Referenced by ocilib::File::Close().
#include <ocilib.h>
Compare two file handle for equality.
| file | - File handle |
| file2 | - File2 handle |
#include <ocilib.h>
Assign a file to another one.
| file | - Destination File handle |
| file_src | - Source File handle |
Referenced by ocilib::File::Clone().
| OCI_EXPORT OCI_Connection* OCI_API OCI_FileGetConnection | ( | OCI_File * | file | ) |
#include <ocilib.h>
Retrieve connection handle from the file handle.
| file | - file handle |
Referenced by ocilib::File::GetConnection().