-
Notifications
You must be signed in to change notification settings - Fork 1
Was Milestone 1
Adam Jeniski edited this page Oct 21, 2019
·
3 revisions
- No need for Milestone 1: web server uses a fixed DB user
- There may be no separate login page, if we decide to develop a single-page application
- Accept SQL query
- Submit SQL query
- Use POST (not GET)
- Obviously use AJAJ
- Display brief status: "Running...", "Completed successfully", "Query timed out", "Error"
- Would be nice to show number of result rows
- Place the status just above the result table
- If query ran, display returned rows in a table: no pagination needed; result could have zero rows
- If query failed, display the error detail in a separate text area
- Show either the result table or the error detail; not both: might need to revise this scheme after some trials
- Serve "home page" directly from a file: browser displays the page as is
- Extract query
- Create a session-specific DB connection and reuse connection
- Use fixed DB parameters: server, database, user
- Return at least three components: status, result, error; need to revise based on DB module's capability