Importing a document using xquery statements?

Friday, 4 November 2011 · 3 messages
EK
Erdal Karaca4 Nov 2011 09:54 #
I have set up eclipse XQDT to use basex as interpreter... Now, I need to import a document into a database. Is that possible without using the server commands in a command line? For example some basex specific functions?
LK
Lukas Kircher4 Nov 2011 10:10 #
Hi Erdal, you could have a look at our BaseX-specific database functions - db:add() [1] might be what you are looking for. Hope I could help, regards, Lukas [1] http://docs.basex.org/wiki/Database_Functions#db:add
Quoted text · Erdal Karaca · 11 lines
On Fri, Nov 4, 2011 at 9:54 AM, Erdal Karaca <erdal.karaca.de at googlemail.com > wrote: > I have set up eclipse XQDT to use basex as interpreter... Now, I need > to import a document into a database. Is that possible without using > the server commands in a command line? For example some basex specific > functions? > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
LK
Lukas Kircher4 Nov 2011 11:58 #
So far there is no XQuery function that allows you to create or delete a database. I remember this being a conscious design decision, as creating/deleting a database requires CREATE permissions, but I might be wrong... Maybe one of my team mates can help me out here? Cheers, Lukas
Quoted text · Erdal Karaca · 41 lines
On Fri, Nov 4, 2011 at 10:22 AM, Erdal Karaca < erdal.karaca.de at googlemail.com> wrote: > Thanks for the quick reply! > Unfortunately, this function needs an existing database. I could not > find a function like db:create or the like... How would i create the > database, first? > > > 2011/11/4, Lukas Kircher <lukaskircher1 at googlemail.com>: > > Hi Erdal, > > > > you could have a look at our BaseX-specific database functions - > > db:add() [1] might be what you are looking for. > > > > Hope I could help, regards, > > Lukas > > > > > > [1] http://docs.basex.org/wiki/Database_Functions#db:add > > > > > > > > On Fri, Nov 4, 2011 at 9:54 AM, Erdal Karaca < > erdal.karaca.de at googlemail.com > >> wrote: > > > >> I have set up eclipse XQDT to use basex as interpreter... Now, I need > >> to import a document into a database. Is that possible without using > >> the server commands in a command line? For example some basex specific > >> functions? > >> _______________________________________________ > >> BaseX-Talk mailing list > >> BaseX-Talk at mailman.uni-konstanz.de > >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >> > > > > > -- > 1 + 1 = 10 >

⚡Generated with XQuery