Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/liexusong/CuteDB

Tiny DB implements in PHP
https://github.com/liexusong/CuteDB

Last synced: 10 days ago
JSON representation

Tiny DB implements in PHP

Awesome Lists containing this project

README

        

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

Example:
========
```php
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](https://raw.githubusercontent.com/liexusong/CuteDB/master/CuteDB.jpg)