Open danielniccoli opened 11 years ago
From alobbs on October 29, 2008 11:58:37 So.. you'd send the 'plain query' and expect to receive XML (as in XML-RPC)?
From ste...@konink.de on October 29, 2008 14:01:32 Yes; I think I have it almost implemented (train trip was too short).
But the reason I added it has a completely different reason (not slayer related); Tim is working on something extremely cool, and XML-RPC is required for it.
From alobbs on October 29, 2008 14:26:38 Sounds cool.. please send the patch when you finish it :)
From tah...@gmail.com on October 29, 2008 14:45:36 +1 I would love to see the code for that :)
From ste...@konink.de on October 29, 2008 15:18:38 It has code now; but I need to verify the correct output. Anyone has a quick way to do this in a qa test?
From optimiza...@gmail.com on October 29, 2008 15:43:54 And, instead of a 'plain query' full XML-RPC compatibility wouldn't make sense?
This way one could do (python):
import xmlrpclib db = xmlrpclib.ServerProxy("http://host/dbslayer")
result = db.query("SELECT * FROM ....... ")
what do you think?
From ste...@konink.de on October 29, 2008 15:48:28 It compiles but is NOT tested, so consider it less than alpha ;) Tahers if you, next to looking at it, also want to try it, be my guest.
From tah...@gmail.com on October 29, 2008 16:08:02 I will as soon as I get the chance :)
From alobbs on October 29, 2008 17:11:21 Stefan, since you are the coder, it'd much more easy if you could send both the patch and a working example. :- )
From ste...@konink.de on October 29, 2008 17:46:08 I have absolutely no problem using the unittest you must have created to test the dwriter code. If only I had it.
From alobbs on October 29, 2008 17:55:22 DBslayer is the only handler using dwriter, so as long as it cannot be automatically tested because its dependency on MySQL, there are no QA tests for that class.
Anyway, the only thing you'd need at this stage is a proof of concept client, don't you think? :-) Something like a Python script that can receive the information and convert back to native structures.
From ste...@konink.de on October 29, 2008 18:04:59 My problem is that I don't have a dbslayer setup available to play with ;) But I have finally managed to create a small test.c to test any dwriter. Will provide the code later (because I noticed some 'this should not happen' things).
From ste...@konink.de on October 30, 2008 02:48:48 Output: [ "test", 0.0001, "oeutest", 1.0001 ] { "test": "test", "hoi": "yessir" }
From ste...@konink.de on October 21, 2011 02:30:49 https://github.com/skinkie/webserver/commit/0aa0b71f75d2edd59a22bab8f00963fb0291b99e
From alobbs on October 21, 2011 09:31:56 Stefan, let's not close the bugs until the features make it upstream or are rejected.
Original author: ste...@konink.de (October 29, 2008 11:35:39)
I think something that implements XML-RPC, concatenation based not DOM, would be a great extension for dwriter (and thus dbslayer). You can assign me :)
Original issue: http://code.google.com/p/cherokee/issues/detail?id=170