php-src icon indicating copy to clipboard operation
php-src copied to clipboard

CSV like database

Open ghost opened this issue 4 years ago • 1 comments

Description

Hi, is there a module to create a flat file database using CSV, similar to SQL?

I want to use it in an intranet web application without the complexity of a full database.

Thank you!

ghost avatar Dec 31 '21 11:12 ghost

This is a question really better asked on something like Stackoverflow.

You can use fgetcsv/fputcsv to write to CSV yourself.

That being said, I'm very skeptical that complex, relational content stored in CSV is a good idea. There are many tools to work with databases (like Doctrine), a database will be much more stable in terms of data integrity and validation, and will be much more efficient. It doesn't have to be mySQL, SQLite will do if you want to avoid hosting another server.

iluuu1994 avatar Dec 31 '21 11:12 iluuu1994