On Mon, Nov 24, 2008 at 11:58 AM, matt <mattmobile@proweb.co.uk> wrote:
That's exactly what constraints, rules in SQL etc are for. Maybe some similar ruling system for filesystems would be fine :)That's what I was driving at. To map SQL <> FS you end up replicating lots of SQL logic in your client FS. Reads are *always* out of date. Writes can happen across tables but need to be atomic and able to roll back.
(any suggestions ?)
The problems:
- a "ctrl" file which accept only COMMIT, ROLLBACK and ABORT
- an "error" file
- a "notice" file (postgresql has RAISE NOTICE... may be others have it too)
- a "data" file (append only in the transaction, but not outside) where the INSERT, UPDATES, DELETE and all the DDL and DCL commands will be written
- each SELECT have to be written in a different file (named sequentially): after writing the query, the same file could be read to get the results (in xml...)
- on errors, sequents writes fails and error file will be readable