library nondb
A NoSQL Database Based On Json Storage.
xtlsoft/nondb
A NoSQL Database Based On Json Storage.
- Sunday, March 4, 2018
- by xtlsoft
- Repository
- 1 Watchers
- 9 Stars
- 68 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 24 Forks
- 1 Open issues
- 1 Versions
- 240 % Grown
NonDB
NonDB Stands for None DB., (*1)
Install 安装
composer install xtlsoft/nondb
Usage 使用
<?php
require_once "vendor/autoload.php";
use \NonDB\NonDB;
$db = new NonDB( NonDB::driver('LocalDriver:./data/') );
$name = $db->table('test')->getAll()[0]->another[0]->name;
$person = $db->table('person')->create();
$person->id = $person->parent()->autoincrement();
$person->name = $name;
$person->hobbies = ['swimming', 'dancing'];
$person->location = $db->table('location')[10]->name;
$person->save();
$anotherPerson = $person->parent()->find(NonDB::where('location', '%China%'));
$anotherPerson->setMode('id', NonDB::Auto)->save();
echo $anotherPerson->name;
echo $db->dump(\NonDB\Components\Dump::DUMP_JSON_PRETTY);
Documents 文档
https://docs.xapps.top, (*2)
dev-master
9999999-dev
A NoSQL Database Based On Json Storage.
Sources
Download
MIT
The Requires
by
xtl