SequoiaCursor Class. To get this Class object must be call SequoiaDB::list or SequoiaDB::snapshot or SequoiaCL::find, and so on.
Class for create an object of the cursor
SequoiaCursor::current |
( |
| ) |
|
Return the current element.
- Returns
- Returns the record, default return array.
- Return values
-
Example:
$cursor = $cl -> find( array( 'a' => array( '$lte' => 50 ) ) ) ;
if( empty( $cursor ) ) {
$err = $db -> getError() ;
echo "Failed to find, error code: ".$err['errno'] ;
return ;
}
if( $record = $cursor ->
next() ) {
var_dump( $record ) ;
var_dump( $record ) ;
}
SequoiaCursor::getNext |
( |
| ) |
|
Drop the specified collection.
- See Also
- next().
- Deprecated:
- This function is deprecated, use the function next() instead.
Return the next record to which this cursor points, and advance the cursor.
- Returns
- Returns the record, default return array.
- Return values
-
Example:
$cursor = $cl -> find( array( 'a' => array( '$lte' => 50 ) ) ) ;
if( empty( $cursor ) ) {
$err = $db -> getError() ;
echo "Failed to find, error code: ".$err['errno'] ;
return ;
}
while( $record = $cursor ->
next() ) {
var_dump( $record ) ;
}
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/compile_db_x86_branch_2.6/sequoiadb/driver/php5/ext/class/class_cursor.php
- /var/lib/jenkins/workspace/compile_db_x86_branch_2.6/sequoiadb/driver/php5/ext/class/deprecated_function.php