SequoiaLob Class. To get this Class object must be call SequoiaCL::openLob.
Close lob.
- Returns
- Returns the result, default return array.
- Return values
-
array | array( 'errno' => 0 ) |
string | { "errno": 0 } |
Example:
$err = $lobObj ->
close() ;
if( $err['errno'] != 0 ) {
echo "Failed to close lob, error code: ".$err['errno'] ;
return ;
}
SequoiaLob::getCreateTime |
( |
| ) |
|
Get the lob create time (millisecond).
- Returns
- Returns the create time.
- Return values
-
integer|SequoiaINT64 | millisecond |
Example:
$err = $db -> getError() ;
if( $err['errno'] != 0 ) {
echo "Failed to get lob create time, error code: ".$err['errno'] ;
return ;
}
echo "Lob create time is: ".$times ;
Get the lob size.
- Returns
- Returns the number of lob size.
- Return values
-
integer|SequoiaINT64 | lob size |
Example:
$err = $db -> getError() ;
if( $err['errno'] != 0 ) {
echo "Failed to get lob size, error code: ".$err['errno'] ;
return ;
}
echo "Lob size is: ".$lobSize ;
Read lob.
- Parameters
-
$length | an integer or the SequoiaINT64 object argument. The length want to read. |
- Returns
- Returns the string of read.
- Return values
-
Example:
$buffer = $lobObj ->
read( 5 ) ;
$err = $db -> getError() ;
if( $err['errno'] != 0 ) {
echo "Failed to read lob, error code: ".$err['errno'] ;
return ;
}
Seek the place to read.
- Parameters
-
$offset | an integer or the SequoiaINT64 object argument. Lob offset position. |
$whence | an integer argument. Where to start position.
SDB_LOB_CUR : Set position to current location plus offset.
SDB_LOB_END : Set position to end of lob plus offset.
|
- Returns
- Returns the result, default return array.
- Return values
-
array | array( 'errno' => 0 ) |
string | { "errno": 0 } |
Example:
if( $err['errno'] != 0 ) {
echo "Failed to call seek, error code: ".$err['errno'] ;
return ;
}
SequoiaLob::write |
( |
string |
$buffer | ) |
|
Write lob.
- Parameters
-
$buffer | the string argument. The buffer of write. |
- Returns
- Returns the result, default return array.
- Return values
-
array | array( 'errno' => 0 ) |
string | { "errno": 0 } |
Example:
$err = $lobObj ->
write(
'hello' ) ;
if( $err['errno'] != 0 ) {
echo "Failed to write lob, error code: ".$err['errno'] ;
return ;
}
const SequoiaLob::SDB_LOB_CUR 1 |
Set position to current location plus offset.
const SequoiaLob::SDB_LOB_END 2 |
Set position to end of lob plus offset.
const SequoiaLob::SDB_LOB_SET 0 |
Set position equal to offset bytes.
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/compile_db_x86_branch_2.6/sequoiadb/driver/php5/ext/class/class_lob.php