Changes

Jump to navigation Jump to search
1,367 bytes added ,  12:21, 8 March 2019
no edit summary
==Querying Your Data==
==='''Create a New Project==='''
* To create a new project choose the ''Create new project'' option from the start screen or select ''New''→''Project...'' from the ''File'' menu.
* In the ''New Project'' dialog, choose ''Empty Project'' from the left-hand column and click the ''Next'' button.
* Enter a name and location for your projectand click on the ''Finish'' button.
==='''Customize the XQuery Module==='''
* Click the ''Add Configuration'' button below the IntelliJ IDEA menu bar.
[[File:Intellij-add-configuration.png]]
* Click ''Apply'' and then ''OK'' to close the ''Run/Debug Configurations'' dialog.
==='''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 and save your file.
==='''Create a New Configuration==='''
* Click on the ''Add Configuration'' button once again.
* In the ''Run/Debug Configurations'' dialog, click the {{Code|+}} button to create a new configuration based on a template.
[[File:Intellij-run-button.png]]
==='''Execute Your Query==='''
* If the configuration does not run as a standalone instance, make sure that BaseX is up and running.
* Click the ''Run'' button to execute your query.
==Querying Your Data==
 
'''Create a New Project'''
* To create a new project choose the ''Create new project'' option from the start screen or select ''New''→''Project...'' from the ''File'' menu.
* In the ''New Project'' dialog, choose ''Empty Project'' from the left-hand column and click the ''Next'' button.
* Enter a name and location for your projectand click on the ''Finish'' button. '''Customize the XQuery Module'''* Click the ''Add Configuration'' button below the IntelliJ IDEA menu bar.[[File:Intellij-add-configuration.png]]* In the ''Run/Debug Configurations'' dialog, expand the Templates list and choose the ''XQuery Main Module'' entry.* Click on the ''Configure'' button next to the ''Data Source'' field and either choose the previously configured standalone version (''BaseX (native embedded)'' item) or the client version (''BaseX'' item) from the list.* Click ''Apply'' and then ''OK'' to close the ''Run/Debug Configurations'' dialog. '''Create a Query File'''* In the project view, create a new XQuery file, either by right-clicking on the project name and choosing New→XQuery File. Enter a file name, select ''Main Module'' from the ''Kind'' dropdown and click OK.* Type in your query and save your file. '''Create a NewConfiguration'''* Click on the ''Add Configuration''button once again.* In the ''Run/Debug Configurations'' dialog, click the {{Code|+}} button to create a new configuration based on a template.* Choose the "XQuery FileMain Module" template you configured earlier.* Enter a name, e.g. "BaseX", into the ''Name'' field.* The data source should be preset either to "BaseX (native embedded)" or by selecting ''NewBaseX''depending on your processor configuration.* In the ''XQuery FileMain file'' from field, enter the path to your query file.[[File menu:Intellij-xquery-configuration2. Enter a file name png]]* Click ''Apply'' and click then ''OK''to close the ''Run/Debug Configurations'' dialog.* Now, the configuration should be set and the green ''Run'' button should be available below the IntelliJ IDEA menu bar.[[File:Intellij-run-button.png]]  '''Execute Your Query'''* If the configuration does not run as a standalone instance, make sure that BaseX is up and running.* Type in Click the ''Run'' button to execute your query.
[[File:Intellij-query.png]]
* Click the green ''Run'' button below the IntelliJ IDEA menu bar.
* In the ''Edit Configuration'' dialog, choose one of the two data sources from the dropdown box, either "BaseX" or "BaseX (native embedded)". If you select "BaseX", make sure that BaseX is up and running.
* Click ''Run'' to execute your query.
administrator, editor
162

edits

Navigation menu