from Hacker News

FlatDB – database designed to persist data using just PHP and flat-files

by maxko on 5/12/16, 12:21 PM with 12 comments

  • by throwaway2016a on 5/12/16, 12:48 PM

    At 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 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.

  • by mhuffman on 5/12/16, 2:37 PM

    There is already a super-fast flat-file database system that supports sorting (alphabetically and timestamps), ultra-fast lookup and retrieval, and optimized caching -- it's called a filesystem.
  • by creshal on 5/12/16, 12:35 PM

    So why this and not SQLite? Just to save the dependency? What makes it "secure"?