Characters allowed in database names
Wednesday, 12 April 2017 · 3 messages
BV
Bram Vanroy12 Apr 2017 14:04 #
Hello, list
Upon creating specific database names I came across the following issue: when creating a database named ''wrpee|advp|hd%bw" (without quotes) from the CREATE command I got the basic 'how to use CREATE' screen in my terminal. This would seem to indicate that my syntax is wrong, even though "CREATE DATABASE wrpee|advp|hd%bw C:\\sonar\\grinded\\WRPEE\\advp\\ advp|hd%bw.xml" is syntactically valid (two arguments for CREATE DATABASE).
The issue seems to be in the database name. The pipe | is not allowed, it seems. When replaced by a dash "-" it works as expected. However, I cannot find this documented anywhere. Is it possible to make the error message more clear, e.g. 'invalid database name', or at least update the documentation on this? Which characters are allowed, and which aren't?
Thanks in advance,
Kind regards
Bram Vanroy
DK
Dirk Kirsten12 Apr 2017 14:07 #
Hello Bram,
at least the documentation seems to reflect that:
http://docs.basex.org/wiki/Commands#Valid_Names. It is also linked within http://docs.basex.org/wiki/Commands#CREATE_DB, so I think the documentation is hard to improve.
However, I agree that the error message should be improved.
And you have some weird database names...
Cheers
Dirk
Quoted text · Bram Vanroy · 34 lines
On 04/12/2017 02:04 PM, Bram Vanroy wrote: > > Hello, list > > > > Upon creating specific database names I came across the following > issue: when creating a database named ‘’wrpee|advp|hd%bw” (without > quotes) from the CREATE command I got the basic ‘how to use CREATE’ > screen in my terminal. This would seem to indicate that my syntax is > wrong, even though “CREATE DATABASE wrpee|advp|hd%bw > C:\\sonar\\grinded\\WRPEE\\advp\\ advp|hd%bw.xml” is syntactically > valid (two arguments for CREATE DATABASE). > > > > The issue seems to be in the database name. The pipe | is not allowed, > it seems. When replaced by a dash “-“ it works as expected. However, I > cannot find this documented anywhere. Is it possible to make the error > message more clear, e.g. ‘invalid database name’, or at least update > the documentation on this? Which characters are allowed, and which aren’t? > > > > > > Thanks in advance, > > Kind regards > > > > Bram Vanroy >
--
Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
BV
Bram Vanroy12 Apr 2017 14:16 #
Doh! I was completely looking in the wrong places, Im sorry about that.
In our case, database names are built by taking attributes of subtrees into account. Later this year, well publish a paper about this with the speed improvements we get with this.
Thanks and apologies for not looking well enough.
Quoted text · basex-talk-bounces at mailman.uni-konstanz.de · 36 lines
Van: basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] Namens Dirk Kirsten Verzonden: woensdag 12 april 2017 14:08 Aan: basex-talk at mailman.uni-konstanz.de Onderwerp: Re: [basex-talk] Characters allowed in database names Hello Bram, at least the documentation seems to reflect that: http://docs.basex.org/wiki/Commands#Valid_Names. It is also linked within http://docs.basex.org/wiki/Commands#CREATE_DB, so I think the documentation is hard to improve. However, I agree that the error message should be improved. And you have some weird database names... Cheers Dirk On 04/12/2017 02:04 PM, Bram Vanroy wrote: Hello, list Upon creating specific database names I came across the following issue: when creating a database named wrpee|advp|hd%bw (without quotes) from the CREATE command I got the basic how to use CREATE screen in my terminal. This would seem to indicate that my syntax is wrong, even though CREATE DATABASE wrpee|advp|hd%bw C:\\sonar\\grinded\\WRPEE\\advp\\ advp|hd%bw.xml is syntactically valid (two arguments for CREATE DATABASE). The issue seems to be in the database name. The pipe | is not allowed, it seems. When replaced by a dash - it works as expected. However, I cannot find this documented anywhere. Is it possible to make the error message more clear, e.g. invalid database name, or at least update the documentation on this? Which characters are allowed, and which arent? Thanks in advance, Kind regards Bram Vanroy -- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery