FlatDB – database designed to persist data using just PHP and flat-files
1–10 of 13 posts
Re: FlatDB – database designed to persist data using just PHP and flat-files
#2Re: FlatDB – database designed to persist data using just PHP and flat-files
#3With that said, PHP has sqlite support built in since 5.0 and sqlite3 since 5.3 so I see no reason to use this over that. Maybe the author can elaborate.
I remember writing code to do stuff like this in C way back when because there were literally no other choices.
Also, why is this on Hacker News?
Edit: I do, however, applaud any effort to contribute to the open source community. However, for anyone to trust this they would need unit tests and a composer package on Packagist.
Re: FlatDB – database designed to persist data using just PHP and flat-files
#4So why this and not SQLite? Just to save the dependency? What makes it "secure"?
Re: FlatDB – database designed to persist data using just PHP and flat-files
#5Re: FlatDB – database designed to persist data using just PHP and flat-files
#6So why this and not SQLite? Just to save the dependency? What makes it "secure"?
Re: FlatDB – database designed to persist data using just PHP and flat-files
#7Re: FlatDB – database designed to persist data using just PHP and flat-files
#8Earlier quoted context omitted.
Sometimes SQLite is not an option and I created FlatDB for my own needs. This is not a replacement for SQLite or other database engine.
When is it not an option?
Re: FlatDB – database designed to persist data using just PHP and flat-files
#9At what point does it stop being a flat file and start being an actual database albeit one implemented in a bit of a round about way? With that said, PHP has sqlite support built in since 5.0 and sqlite3 since 5.3 so I see no reason to use this over that. Maybe the author can elaborate. I remember writing code to do stuff like this in C way back when because there were literally no other choices. Also, why is this on…
Re: FlatDB – database designed to persist data using just PHP and flat-files
#10At what point does it stop being a flat file and start being an actual database albeit one implemented in a bit of a round about way? With that said, PHP has sqlite support built in since 5.0 and sqlite3 since 5.3 so I see no reason to use this over that. Maybe the author can elaborate. I remember writing code to do stuff like this in C way back when because there were literally no other choices. Also, why is this on…
Well, not great, but usable. The write method is not reliable for asynchronous operations.