SequoiaDB
 All Classes Functions
Public Member Functions | List of all members
pysequoiadb.lob.lob Class Reference
Inheritance diagram for pysequoiadb.lob.lob:

Public Member Functions

def __init__
 
def __del__
 
def close
 
def get_size
 
def get_oid
 
def get_create_time
 
def seek
 
def read
 
def write
 

Member Function Documentation

def pysequoiadb.lob.lob.close (   self)
close lob

Exceptions:
   pysequoiadb.error.SDBBaseError
def pysequoiadb.lob.lob.get_create_time (   self)
get create-time of lob

Return Values:
   a long int of time
Exceptions:
   pysequoiadb.error.SDBBaseError
def pysequoiadb.lob.lob.get_oid (   self)
get the oid of lob.

Return Values:
   the oid of current lob
Exceptions:
   pysequoiadb.error.SDBBaseError
def pysequoiadb.lob.lob.get_size (   self)
get the size of lob.

Return Values:
   the size of current lob
Exceptions:
   pysequoiadb.error.SDBBaseError
def pysequoiadb.lob.lob.read (   self,
  len 
)
ream data from lob.

Parameters:
   Name     Type                 Info:
   len      int                  The length of data to be read
Return Values:
   binary data of read
Exceptions:
   pysequoiadb.error.SDBTypeError
   pysequoiadb.error.SDBBaseError
def pysequoiadb.lob.lob.seek (   self,
  seek_pos,
  whence = 0 
)
seek in lob.

Parameters:
   Name        Type           Info:
   seek_pos    int            The length to seek
   whence      int            whence of seek, it must be 0/1/2
                              0 means seek from begin to end of lob
                              1 means seek from currend position to end of lob
                              2 means seek from end to begin of lob
Exceptions:
   pysequoiadb.error.SDBTypeError
   pysequoiadb.error.SDBBaseError
def pysequoiadb.lob.lob.write (   self,
  data,
  len 
)
write data into lob.

Parameters:
   Name     Type                 Info:
   data     str                  The data to be written
   len      int                  The length of data to be written
Exceptions:
   pysequoiadb.error.SDBTypeError
   pysequoiadb.error.SDBBaseError

The documentation for this class was generated from the following file: