Cant use console in manipulating data
Hello, I tried to use this awesome package, but it seems command line does not work,
Running
vendor/bin/flatbase insert users name=Ian address=phil --path="storage/db"
vendor/bin/flatbase: /e/projects/offline-report/vendor/flatbase/flatbase/flatbase: /usr/bin/php: bad interpreter: No such file or directory
Any idea how to fix this?
Which version of flatbase are you using? And could you confirm where your php executable is on your system (or provide the output of whereis php)
Hi adamnicholson, I am using the 0.4.1 version, I forgot to mention I am using gitbash, but this work perfectly if I use windows cmd
vendor\bin\flatbase insert users name="donald" surname="trump" position="army"
May I also ask how to auto create auto increment id when I run manual insert?Below is my sample flatbase file created
a:4:{i:1125223;a:2:{s:4:"name";s:6:"Ademes";s:7:"address";s:4:"phil";}i:1728394;a:2:{s:4:"name";s:4:"Gene";s:7:"address";s:4:"cuba";}i:1574829;a:2:{s:4:"name";s:5:"Rocky";s:7:"address";s:4:"cebu";}i:1051025;a:2:{s:4:"name";s:4:"john";s:7:"address";s:5:"cubao";}}