multi-line queries in the command line client
Thursday, 20 August 2020 · 3 messages · last reply 21 Aug 2020
MS
Use the GUI ( run “basexgui &” from the command line )!
You can run and edit commands from the top command line, and if they start to grow into longer expressions, copy and paste them into the file window, where you can click on the run button. Plus it will give you some syntax guidance while you’re typing.
Really handy when you are learning XQuery.
— Steve.
Quoted text · Bill Osmond · 12 lines
> On Aug 20, 2020, at 5:07 PM, Bill Osmond <bill at with.in> wrote: > > Hi all, > > First, thanks for making BaseX! I'm in the process of learning it (and XQuery) after an ill-fated attempt to coerce complicated XML data into a relational database, and I'm optimistic about the prospects of success. > > But there is one thorn in my side: it seems like xquery commands have to all be on a single line when run from the command line client. Multiple lines/indentation goes a long way towards helping me mentally structure the queries I'm (trying to) run, but it seems I have to join them together on a single line in order to actually run them. I've tried the standard \ character with no luck, and I couldn't find anything in the documentation about it. > > Is there any solution, or is that just the way it is? > > Thanks, > Bill
BO
Bill Osmond21 Aug 2020 01:08 #
Hi all,
First, thanks for making BaseX! I'm in the process of learning it (and XQuery) after an ill-fated attempt to coerce complicated XML data into a relational database, and I'm optimistic about the prospects of success.
But there is one thorn in my side: it seems like xquery commands have to all be on a single line when run from the command line client. Multiple lines/indentation goes a long way towards helping me mentally structure the queries I'm (trying to) run, but it seems I have to join them together on a single line in order to actually run them. I've tried the standard \ character with no luck, and I couldn't find anything in the documentation about it.
Is there any solution, or is that just the way it is?
Thanks,
Bill
BO
A simple solution for a simple problem, I will do that - thanks Steve!
Quoted text · Steven Dennis (sdm7g) · 37 lines
On Thu, Aug 20, 2020 at 2:58 PM Majewski, Steven Dennis (sdm7g) < sdm7g at virginia.edu> wrote: > > Use the GUI ( run “basexgui &” from the command line )! > > You can run and edit commands from the top command line, and if they start > to grow into longer expressions, copy and paste them into the file window, > where you can click on the run button. > Plus it will give you some syntax guidance while you’re typing. > > Really handy when you are learning XQuery. > > — Steve. > > > > On Aug 20, 2020, at 5:07 PM, Bill Osmond <bill at with.in> wrote: > > > > Hi all, > > > > First, thanks for making BaseX! I'm in the process of learning it (and > XQuery) after an ill-fated attempt to coerce complicated XML data into a > relational database, and I'm optimistic about the prospects of success. > > > > But there is one thorn in my side: it seems like xquery commands have to > all be on a single line when run from the command line client. Multiple > lines/indentation goes a long way towards helping me mentally structure the > queries I'm (trying to) run, but it seems I have to join them together on a > single line in order to actually run them. I've tried the standard \ > character with no luck, and I couldn't find anything in the documentation > about it. > > > > Is there any solution, or is that just the way it is? > > > > Thanks, > > Bill > >
--
<http://www.with.in>
*William Osmond*
Manager, System Operations & IT
3760 Motor Ave, Los Angeles, CA 90034
310-853-8737 | www.with.in
Written for BaseX 9.4. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery