예제 #1
0
        echo "<br><br>";
    }
    // if $cs
    echo '<p>24. reset snapshot</p>';
    // reset Snapshot
    var_dump($sdb->resetSnapshot());
    echo "<br><br>";
    echo '<p>25. get snapshot</p>';
    // reset Snapshot
    $sdb_cursor = $sdb->getSnapshot(SDB_SNAP_DATABASE);
    if ($sdb_cursor) {
        while ($arr = $sdb_cursor->getNext()) {
            var_dump($arr);
            echo "<br><br>";
        }
    }
    echo '<p>26. get list</p>';
    // reset Snapshot
    $sdb_cursor = $sdb->getList(SDB_LIST_STORAGEUNITS);
    if ($sdb_cursor) {
        while ($arr = $sdb_cursor->getNext()) {
            var_dump($arr);
            echo "<br><br>";
        }
    }
    echo '<p>27. disconnection</p>';
    // delete collection
    $sdb->close();
    echo "<br><br>";
}
// if $sdb
예제 #2
0
 } else {
     if ($work == "getSnapshot") {
         $cursor = $sequoia_db->getSnapshot($listType, $condition, $selected, $orderBy);
         if ($cursor) {
             //$cursor->install ( array ( "install"=>false ) ) ;
             while ($srt = $cursor->getNext()) {
                 var_dump($srt);
                 echo "<br />";
             }
         }
     } else {
         if ($work == "resetSnapshot") {
             var_dump($sequoia_db->resetSnapshot());
         } else {
             if ($work == "getList") {
                 $cursor = $sequoia_db->getList($listType, $condition, $selected, $orderBy);
                 if ($cursor) {
                     while ($srt = $cursor->getNext()) {
                         var_dump($srt);
                         echo "<br />";
                     }
                 }
             } else {
                 if ($work == "collectionRename") {
                     $cs = $sequoia_db->selectCS($space);
                     $cl = $cs->selectCollection($collectname);
                     var_dump($cl->rename($pName));
                 } else {
                     if ($work == "getIndex") {
                         $cs = $sequoia_db->selectCS($space);
                         $cl = $cs->selectCollection($collectname);