Difference between revisions of "DBA"
(→Editor) |
|||
Line 47: | Line 47: | ||
;Version 8.4 | ;Version 8.4 | ||
− | * Added: Key combination 'Shift-Ctrl-Enter' | + | * Added: Editor: Key combination 'Shift-Ctrl-Enter', realtime mode removed. |
Introduced with Version 8.0. | Introduced with Version 8.0. |
Revision as of 14:58, 4 December 2015
This page is part of the Getting Started Section.
The full distributions of BaseX are equipped with a simple browser-based database administration interface, the DBA. It allows you to create and administrate databases, evaluate queries in realtime, view log files and manage users. The server-side code is completely written in XQuery and RESTXQ.
These were our design goals:
- The code base is supposed to help and motivate you developing your own RESTXQ web applications.
- The whole DBA code consumes only 100 KB. It uses very simple Javascript code that should run with nearly every browser. The interface is functional, but limited in terms of flashiness and interactivity.
- We tried to make the DBA features as self-explanatory as possible. All functionalities are also available via Commands, XQuery Modules or the Java GUI.
- The
dba
sub-directory can simply be copied and moved to any other place. All URL paths point to the same directory; it should be straightforward to adjust the RESTXQ path.
Please be aware that it is an obvious security risk if you simply put DBA online along with your web page. At the very least, you should change the DBA path and the password of the admin
user!
The DBA has just been released, and it is in beta stage. We are looking forward to your reports and feature requests! Patches and extensions are even more welcome.
Contents
Startup
- Download the ZIP Archive or the Windows Installer from the download page
- Start the BaseX HTTP Server
- Open a browser and visit the URL
http://localhost:8984/dba
First Steps
On the welcome page, you will need to authenticate yourself by entering a username and password. The default user is admin
/admin
; after the first login, it should be changed in the Users panel. By specifying a host and port, you can communicate with a remote BaseX server instance. If you keep the field empty, you will be connected to the local BaseX instance.
The main page of the DBA interface contains a list of all databases on the left. On the right, the global and local options are listed, along with some system information. With the "Create…" button, a new database can be created. Existing database can be viewed, optimized, and dropped. |
File:Bla.png DBA Main Page |
Editor
In the editor panel, you can execute XQuery expressions. If evaluation takes too long, or if it consumes too much memory, it will be interrupted. You need to choose if your query is updating. Inside the editor area, you can press Ctrl-Enter to execute the query.
Since Version 8.4, you can press Shift-Ctrl-Enter to run your XQuery expression as updating query (or non-updating, if "Updating" is choosen in the dropdown menu). The realtime mode was removed.
Changelog
- Version 8.4
- Added: Editor: Key combination 'Shift-Ctrl-Enter', realtime mode removed.
Introduced with Version 8.0.