CHECK Cmd

Thursday, 7 June 2012 · 3 messages · last reply 8 Jun 2012
CG
Christian Grünin reply to Henrique Oliveira, 7 Jun 2012, 02:577 Jun 2012 01:09 #
Hi Henrique,
Quoted text · Henrique Oliveira · 2 lines
> I am trying to execute the command Check, I am getting the follow exception: > java.io.IOException: Database 'TRADE' was not found.
CHECK will create a database for a specified input document, or open open an existing database that contains this resource. When reading your mail, though, it seems completely obvious that the command could also be used to create a new, empty database for the given database name. I'll think about it and give you an update. Christian
HO
Henrique Oliveira7 Jun 2012 02:57 #
Hi guys, I am trying to execute the command Check, I am getting the follow exception: java.io.IOException: Database 'TRADE' was not found. Shouldn't it create a new one DB if it does not exist? Regards
-- Henrique Oliveira
CG
Christian Grünin reply to Christian Grün, 7 Jun 2012, 01:098 Jun 2012 19:04 #
Hi Henrique, thanks again for your observation. I have slightly modified the CHECK command such that it can also be used to create empty databases [1]. Feel free to check out the latest snapshot. Christian [1] http://docs.basex.org/wiki/Commands#CHECK [2] http://files.basex.org/releases/latest/
Quoted text · Christian Grün · 10 lines
>> I am trying to execute the command Check, I am getting the follow exception: >> java.io.IOException: Database 'TRADE' was not found. > > CHECK will create a database for a specified input document, or open > open an existing database that contains this resource. When reading > your mail, though, it seems completely obvious that the command could > also be used to create a new, empty database for the given database > name. I'll think about it and give you an update. > > Christian

⚡Generated with XQuery