Changes

Jump to navigation Jump to search
140 bytes added ,  11:15, 25 July 2022
no edit summary
* Install either version of IntelliJ IDEA: [https://www.jetbrains.com/idea/#chooseYourEdition the Community or Ultimate edition].
* Download your favorite [httphttps://basex.org/download BaseX distribution] (JAR, ZIP, EXE).
* Start BaseX (see [[Startup]]).
* Create a BaseX database (see [[Databases]]).
** <code>Database port = 1984</code>
** <code>Username = admin</code>
** <code>Password = admin...</code>
** If you tick the check box ''Create a standalone instance'', the fields ''Hostname'', ''Database port'', ''Username'', and ''Password'' remain empty.
[[File:Intellij-new-query-processor.png]]
'''Create a Query File'''
* In the project view, create a new XQuery file, either by right-clicking on the project name and choosing ''New''→''File'' or by selecting ''New''→''File'' from the File menu. Enter a file name and click ''OK''.
* Type in your query, e.g. <code>db:openget("factbook")</code>, and save your file.
'''Create a New Configuration'''
==Conclusion==
The plugin is very well maintained! It adds support for various XQuery Implementations to the IntelliJ IDEA (among them BaseX). It provides syntax highlighting for XQuery and XML, code completion and detects syntactical errors while you type offering a description for each error. Queries are executed using Run Configurations for which you can configure various query processors, e.g. BaseX. BaseX's admin log can be accessed and displayed using the '''Query Log''' button on the bottom left corner of the IntelliJ IDEA project window.
The plugin contains some minor flaws regarding the use of functions declared in user-defined modules. Such functions are not included in the code completion list and marked as unknown in the code. However, query execution in the BaseX backend works fine nonetheless.
** <code>Database name = factbook</code>
** <code>Username = admin</code>
** <code>Password = admin...</code>
* Select ''Apply'', then ''OK'' and your BaseX {{code|factbook}} database is ready to query.
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu