basex-node does not cope with raw data #7
Labels
No labels
dependencies
javascript
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quodatum/basex-node#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
node.js breaks in:
\node_modules\basex\lib\parser.js:35
+ ":" + buf;
^
expected status marker at2=65533:
When the query is:
session.query("declare option output:method 'raw'; db:retrieve('assets', '"+asset+"')");
Yes, I am aware of this. I think it needs to use node buffers in place of strings (and implement the BaseX \0 escape protocol). I plan to fix this, and ideally implement a stream interface.
Thanks a lot!
I have a work around for now (accessing directly the file in the database
raw folder), but won't work long term as I intent to generate the data on
the fly.
BTW, I was wondering if it would be possible to have basex-node in the
basex documentation - along with the PHP chapter?
Best Regards
-- Rémi
On Fri, Oct 26, 2012 at 3:02 PM, Andy Bunce notifications@github.comwrote:
This error is fixed in ver 0.6, which implements the BaseX FF escape protocol. See examples
raw.jsand 'RawExample.js`More work is required to make this fully useful, and stream-able, but I think this will require changes to the interface.
Currently binary results are returned as a string in the reply object.