问题
Background
A simple database with about 20 tables, sprinkled with unique constraints, primary keys, and foreign key relationships. This is a database for internal use only. Only two or three people will have direct access to the data. Only one of those people is qualified to be a DBA.
The database was developed using DbSchema and PostgreSQL 9.1.
The project itself is meant to be a quick-and-dirty prototype, but using clean data. Authentication and security are non-issues.
Problem
I'd like to supply a simple web-based CRUD application so that any data errors can be resolved without having to get the DBA involved.
Question
What software would you recommend that exposes a simple web interface that allows non-DBAs the ability to update data?
Example
To clarify, if it was a Java application, here is the simplicity I envision:
- Download a
jar
file (e.g.,crud-web-app.jar
). - Run:
java -jar crud-web-app.jar --username=postgres --password=password --host=localhost:5432 --database=database --listen=127.0.0.1:8080
- Browse to 127.0.0.1:8080
- Select a table (one click).
- Edit data (saves over AJAX).
Related
phpPgAdmin comes close, but I thought there might be something simpler (i.e., less intimidating for non-DBAs).
Any suggestions?
Thank you!
回答1:
To generate CRUD without writing any code:
- PHP Generator
PostgreSQL PHP Generator is a PostgreSQL GUI frontend that allows you to generate high-quality PHP scripts for selected tables, views, and queries for updates over the web.
Demo Page
- http://demo.sqlmaestro.com/
The free version is fairly extensive, the commercial version includes a vast number of features. Using the tool, it took about 30 minutes (from the software download) to generate CRUD pages for two dozen tables. The software automatically provides drop-downs for foreign key relationships.
Example Output
The following screen shot shows the output from running the generator:

回答2:
Another option is DaDaBIK, you can create a CRUD front-end/web application without coding.
来源:https://stackoverflow.com/questions/11697330/drop-in-crud-web-application