Class: OCI8::CLOB

Inherits:
LOB show all
Defined in:
ext/oci8/lob.c

Constant Summary

Instance Method Summary (collapse)

Methods inherited from LOB

#available?, #chunk_size, #close, #eof?, #pos, #read, #rewind, #seek, #size, #size=, #truncate, #write

Constructor Details

- (OCI8::CLOB) initialize(conn, contents = nil)

Creates a temporary CLOB when contents is not nil. Otherwise, it creates an uninitialized lob, which is used internally to fetch CLOB column data.

Examples:

# Inserts a file name and its contents as CLOB.
clob = OCI8::CLOB.new(conn, File.read(file_name))
conn.exec('insert into file_contents values (:1, :2)', file_name, clob)

Parameters:



288
289
290
291
292
# File 'ext/oci8/lob.c', line 288

static VALUE oci8_clob_initialize(int argc, VALUE *argv, VALUE self)
{
    oci8_lob_do_initialize(argc, argv, self, SQLCS_IMPLICIT, OCI_TEMP_CLOB);
    return Qnil;
}