CHECK Cmd
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
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
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
Written for BaseX 7.2. BaseX may have changed since: please check the current documentation.