On Wed, Mar 9, 2011 at 2:23 AM, Lukas Kircher <lukaskircher1@googlemail.com> wrote:
Hi Godmar, in direct reference to your reference, you may use the already available command 'alter database [db] [newname]' for this [1].
Thanks. I couldn't find this in the client [2]; so could you remind me again how to send this? Is it 'execute', 'query', or do I need to look up the internal code for 'alter' and write my own method? With the reorganized website, the documentation for the client/server protocol is more difficult to find. Thanks. - Godmar [2] https://github.com/BaseXdb/basex-api/blob/master/etc/java/BaseXClient.java
Hope this helps, Lukas [1] http://docs.basex.org/wiki/Commands
On Wed, Mar 9, 2011 at 2:52 AM, Godmar Back <godmar@gmail.com> wrote:
Last year [1], the functionality to rename a database was requested. We need this functionality as well.
The option to rename the folder would require shutting down, and restarting, the BaseX server, which is not a good idea. The other alternative would be to retrieve the entire XML content of the source db, then create the target db with that content; this is wasteful and inefficient for large db.
Please add a db rename functionality to the Java client binding.
- Godmar
[1] https://mailman.uni-konstanz.de/pipermail/basex-talk/2010-May/000298.html _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk