Most kawaii and simplest database abstraction layer ever
Nightfly 5387e45b68 backport from Ubilling upstream | vor 1 Monat | |
---|---|---|
api | vor 1 Monat | |
config | vor 5 Jahren | |
exports | vor 5 Jahren | |
.gitignore | vor 5 Jahren | |
.travis.yml | vor 4 Jahren | |
LICENSE | vor 5 Jahren | |
README.md | vor 4 Jahren | |
cli_routing_sample.php | vor 4 Jahren | |
sample.php | vor 5 Jahren | |
tests.php | vor 4 Jahren |
Most kawaii and simplest database abstraction layer ever
Creating model for database table "devices" with some kind of magic:
$devices=new nya_devices();
Retrieving all data from it:
$allDevices=$devices->getAll();
Filtering data before selecting data:
$devices->where('id','=','42');
Creating new device
$devices->data('name','device name');
$devices->data('price','50');
$devices->create();
Changing some device record:
$devices->data('name','newname');
$devices->where('id','=','42');
$devices->save();
Deleting device record:
$devices->where('id','=','42');
$devices->delete();
....and many many other things