Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/liexusong/CuteDB
- Owner: liexusong
- Created: 2018-07-19T09:42:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T09:32:28.000Z (over 5 years ago)
- Last Synced: 2024-06-07T13:35:12.972Z (5 months ago)
- Language: PHP
- Size: 1.8 MB
- Stars: 38
- Watchers: 4
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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)