Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I have a database in the intranet with a lot of tables that use foreign keys to reference "basic" tables like Customers and Products, and I wish to allow advanced users to update values in records of orders (not delete records,not remove, but just change values in columns), preferably logging from what value which column in which record has changed and to what new value. Say, I have to edit list of orders;I wish "customer name" and "product id" to be displayed instead of their IDs in corresponding columns. Of course paging through tables (tables contain a lot of records) and preferably quick jumping to a specific date and may be sorting are desired, everything with web interface of course. I guess almost every Perl web programmer had such a task. So presumably there are lot of frameworks/packages for this. Could you please suggest any?

It would be nice if that thing worked under mod_fastcgi (not mod_perl!), be internationalizable (labels "Prev.page"/"Next page" etc to be easily translatable via external files) and allowed adding hooks (I have to log what value was changed to which one).

DBMS used is Postgres. I understand that I can create a view for each table to be edited that will replace customer id with their name and write triggers for it to make the view updateable and able to log the history of changes, and totally avoid web-based mode, give out users something GUI-ish like DBExplorer that will allow them to edit those views via GUI on Windows, but I prefer web-based solutions..

Thank you very much for your suggestions in advance!

  • Comment on Please recommend a web-based database browser and editor

Replies are listed 'Best First'.
Re: Please recommend a web-based database browser and editor
by davorg (Chancellor) on Jul 21, 2005 at 12:18 UTC
Re: Please recommend a web-based database browser and editor
by anonymized user 468275 (Curate) on Jul 21, 2005 at 11:16 UTC
    The normal solution for such customised security is to CREATE a stored PROCEDURE, which you will design to control the columns and values for the update via parameters and whose execution can be granted as a permission. The rights of a stored procedure are inherited from its owner rather than the user running it.

    One world, one people

Re: Please recommend a web-based database browser and editor
by spectraphonic (Scribe) on Jul 21, 2005 at 23:32 UTC
Re: Please recommend a web-based database browser and editor
by Anonymous Monk on Jul 21, 2005 at 12:52 UTC
    It's me, poster of original question. In case you know something that is implmenented in PHP and works acceptably, rather than in Perl - please also let me know. I hate PHP, but if there are nice PHP suits, I will use them.. Thanks in advance for suggestions given so far, and in advance!

      phpMyAdmin works very well and is easy to setup. I beleive the newest version has support for the colum bits you want to handle.


      ___________
      Eric Hodges