donjajo/php-jsondb

cant update collumn

Closed this issue · 4 comments

idk its my fault or this code, can you test it? thanks

php, for example
`

update([ 'name' => 'test' ])->from('users.json')->where(['name' => 'Thomas'])->get(); `

It's trigger() method not get(). You are not getting any response, so use the trigger. This was a typo in the README.md, I have corrected it.

$db->update([ 'name' => 'test' ])->from('users.json')->where(['name' => 'Thomas'])->trigger();

thanks for your fast response