I'd says stick it up there. The more the merrier. I certainly would like to see it even just as an example to base other work on.
Some other comments have pointed out that tables do not map to a filesystem but I don't agree. A table maps perfectly to a directory full of subdirectories (one for each row in the table). Each name of each subdirectory should correspond to the primary key for that row. Each row's directory would have a file for each field which you can edit directly. Any field that is a foreign key, referencing another table could have 2 entries, one for the actual value and another that is a symlink to the row in the table that is referenced.
For example here's the table definitions.
now wandering around the filesystem would look likeCREATE TABLE persons (name CHAR(50) PRIMARY KEY, company char(50) refe +rences companies.name); CREATE TABLE companies (name CHAR(50) PRIMARY KEY, business char(50));
tables map just fine onto a filesystem. You could even get fancy and provide automatic reverse lookups on foreign keys> cd db > ls persons companies > ls persons Fergal Daly Bill O'Brien > cd "persons/Fergal Daly" > ls name company company:row > cat company Blogtronic > ls -l company:row cmopany:row -> ../../companies/Blogtronic > ls company:row name business > cat company:row/business Maker of electric lawnmowers and dangerous toys
This allows very compfortable wandering around the database, editing fields etc. It's not a great interface for queries though. I think this is actually something like reiserfs's goal.> cd companies/Blogtronic > ls name business :referers > ls :referers persons > ls referers/persons company > ls referers/persons/company Fergal Daly ... other rows of persons who's company field references Blogtronic's +primary key
In reply to Re: RFC: Fuse::DBI - mount database as filesystem
by fergal
in thread RFC: Fuse::DBI - mount database as filesystem
by dpavlin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |