Hello and welcome to WWW SQL Designer documentation. This page will hopefully help you with understanding
-how WWW SQL Desginer works and how can it be tailored to suit your needs.
Most commands are intuitively available from the right sidebar. Some tasks are described below.
-
-
To drag a table, press mouse button while pointing at table header. You can then move the
-table around the canvas.
-
-
To edit table properties, either double-click its heading, or select it and
-then press 'Edit table' button in sidebar.
-
-
To edit field properties, either double-click it, or select it and
-then press 'Edit field' button in sidebar.
-
-
To manage keys for a table, select a table and press 'Edit keys' button in sidebar.
-
-
To draw a connector (relation), first select a field which forms a Primary Key. Then click 'Create foreign key' button
-in sidebar and click target table's heading. New field and relation will be created.
-
-
To perform any kind of save/load/export/import task, press the 'Save/Load' button in sidebar.
-A dialog window will appear, allowing you to perform clientside or serverside tasks.
You will need to install WWW SQL Designer if you want to:
-
-
Use custom locale
-
Use custom CSS file
-
Use custom DB definition
-
Use custom server backend
-
-
-
Just download and unpack latest application archive. There are generally no requirements, but to use
-server-side storage, one should have a working webserver.
Many aspects of WWW SQL Designer can be customized and enhanced.
-If you manage to create a new locale / db / backend, feel free to send it to me. I will include your feature
-in a distribution archive.
Supported databases (their datatypes and XSLT template) are stored in db/ subdirectory.
-Each database has a datatype definition file (datatypes.xml) and a XSL transformation
-(output.xsl). New databases must be also registered in
-js/config.js.
Serverside backends allow you to save, load, list and import DB designs. They are written in a serverside
-scripting language and communicate via HTTP requests. Backends are stored in backend/ subdirectory.
-A brief summary of backend API follows:
-
-
-
Saving
-
Request: POST ?action=save&keyword=somename, XML data contained in POST body
- Valid responses: HTTP/201 Created, HTTP/500 Internal Server Error, HTTP/503 Service Unavailable
-
-
Loading
-
Request: GET ?action=load&keyword=somename
- Valid responses: HTTP/200 OK (loaded XML in response body), HTTP/404 Not Found, HTTP/503 Service Unavailable
-
-
Listing
-
Request: GET ?action=list
- Valid responses: HTTP/200 OK (list of available designs separated by newlines in response body), HTTP/503 Service Unavailable
-
-
Importing
-
Request: GET ?action=import
- Valid responses: HTTP/200 OK (imported data in response body), HTTP/503 Service Unavailable
-
-
-
-
For every action mentioned, the backend may also return HTTP/501 Not Implemented, meaning that this action is not supported by the backend.