Re: [basex-talk] Rest Access from javascript using AngularJs

2014-05-07 Thread Marco Lettere
Hi Yoann, we had written an example about two years ago when we were using Openlaszlo (RIP) as GUI tool so my example is in the framework's code. I think it is rather understandable and easily portable to JQuery or any othe AJAX tk. Following the method for building and sending the request in

Re: [basex-talk] Rest Access from javascript using AngularJs

2014-05-07 Thread Maximilian Gärber
Hi Yoann, I guess having examples like these would be helpful in general. Together with basex, we built a larger project for managing conference registrations etc. last year. I could extract some of the modules - maybe we could manage to publish them on some github repo or a dedicated site?

Re: [basex-talk] Rest Access from javascript using AngularJs

2014-05-07 Thread Dirk Kirsten
Hi, I agree with Max that it would be a good idea to have a list of projects and examples, which are build on top of BaseX. A problem might be that many applications which are build on top of BaseX are not open source. @Yoann: Please be aware that there is a Rest and RestXQ implementation within

Re: [basex-talk] Rest Access from javascript using AngularJs

2014-05-07 Thread Dirk Kirsten
Hello Yoann, You do not need to do so, but I remember your project quite well and I was one of the people who said you don't actually need PHP. From what I saw and remember, I think RestXQ is simply a much better fit. RestXQ enables you to do complete server-side processing (just like PHP does)

Re: [basex-talk] 7.8 MAINMEM option

2014-05-07 Thread Christian Grün
Hi Max, finally some feedback... Creating the main-memory db via xquery (declare option or pragma) did not work: declare option db:mainmem 'true'; or (# db:mainmem true #) Via command line it works: set mainmem true Yes, this is on purpose, and for two reasons: * All databases that are

Re: [basex-talk] 7.8 MAINMEM option

2014-05-07 Thread Maximilian Gärber
Hi 2014-05-07 12:12 GMT+02:00 Christian Grün christian.gr...@gmail.com: Considering the current penalty with calling optimize() after every change and otherwise (at least for me) no big differences in usage this would make an interesting use case When it comes to optimize(), you could play

[basex-talk] basex 782 war exception

2014-05-07 Thread Ioannis Kavvouras
Hello, I would like to inform you that basex 782 war cannot be deployed, in contrast to the previous versions. It throws an exception. 07-May-2014 17:31:18.297 INFO [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Marking servlet RESTXQ as unavailable 07-May-2014

Re: [basex-talk] dynamic number of attributes

2014-05-07 Thread Erol Akarsu
Thanks Marco, I have another question. I am trying to use Basex's SQL functions. I have tried some basic SQL commands for connecting and selecting some rows from table, it works fine. For my project, I need to upload and export pdf document/word doc/images form/into Oracle database that needs

Re: [basex-talk] Oracle blob

2014-05-07 Thread Dirk Kirsten
Hello Erol, Some time ago we had a short discussion on the ML about using clob with Oracle: https://mailman.uni-konstanz.de/pipermail/basex-talk/2014-March/006481.html Blob is even a standard java.sql type and should work fine. If not, don't hesitate to report a bug here. Cheers, Dirk PS: Next

Re: [basex-talk] Oracle blob

2014-05-07 Thread Erol Akarsu
Scott, Can you please share your experience? Thanks On Wed, May 7, 2014 at 3:43 PM, Dirk Kirsten d...@basex.org wrote: Hello Erol, Some time ago we had a short discussion on the ML about using clob with Oracle: https://mailman.uni-konstanz.de/pipermail/basex-talk/2014-March/006481.html

Re: [basex-talk] Oracle blob

2014-05-07 Thread Erol Akarsu
Also, I need to upload binary data into Oracle and can see I can not do it with current Basex. Am I wrong? Probably, I need to use native method calls. How can I get Connection object from sql:connect basex xquery method? Then I can call creatBlob method on connection object as the following

Re: [basex-talk] Oracle blob

2014-05-07 Thread Bednar, Scott E
Erol, I don’t know of a way to set this dynamically (though there might be some method of doing this…) Are you saying you need to have the proprietary Oracle XMLType returned sometimes, and the JDBC standard SQLXML type object others? I’d stick with the standard if you can. Scott From: Erol

Re: [basex-talk] Oracle blob

2014-05-07 Thread Erol Akarsu
Scott, Like to insert pdf document or image into one blob field of a table, Erol Akarsu On Wed, May 7, 2014 at 5:49 PM, Bednar, Scott E scott.e.bed...@boeing.comwrote: Erol, I don’t know of a way to set this dynamically (though there might be some method of doing this…) Are you saying you