Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 520 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 520 Bytes

CuteDB

A single PHP file. Tiny DB implements in PHP using HashTable algorithm.

Example:

<?php

include('CuteDB.php');

$db = new CuteDB();

$db->open('test'); // Open DB

$db->set('test_key', 'test_value'); // Set key value map

echo $db->get('test_key'); // Get key's value

$db->moveHead();

while (true) {
    $next = $db->next();
    echo $next[0].":".$next[1];
}

$db->close(); // Close DB

Principle

avatar