hanneskod / yaysondb Goto Github PK
View Code? Open in Web Editor NEWFlat file db in pure php
Flat file db in pure php
To validate json structure before load...
Engine
instead of defaulting to json content. The datasource could be anything (eg a line based textfile, csv, an array, a json string, or whatever...). Some engines may support a document id, others may not: Needs an abstract Engine::accepts($data)
implementation instead of Collection::containsDocument()
.Yaysondb
more versitile so that setup supports both Adapter
and Engine
. (Some engines might be auto-commit, others not. Some engines might be read-only, others not.. Needs a way to identify engine type in adapter. Maybe use Flysystem universally??)Basic usage could be something like:
$db = new Yaysondb(
// Could be a regular flysystem instance, or a MountManager if multiple
// filesystems is to be used...
new FlysystemSetup(...)
);
// creates local://log.txt if it does not exist
// chooses en Engine based on mime-type
$db->collection('local://log.txt')->insert('teststst')->commit();
// osv...
$db->collection('local://log.txt')->findOne(y::doc([
'_id' => y::equals('1')
]));
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.