AntonTerekhov / OrientDB-PHP

Binary protocol for OrientDB for PHP applications (Beta)
http://code.google.com/p/orient/wiki/NetworkBinaryProtocol
BSD 3-Clause "New" or "Revised" License
108 stars 23 forks source link

Support for server-side scripting #37

Open andrewcurioso opened 10 years ago

andrewcurioso commented 10 years ago

Currently there appears to be no way to execute server-side script (OrientDB 1.0) via this wrapper.

More documentation is here: https://github.com/orientechnologies/orientdb/wiki/Javascript-Command

lvca commented 10 years ago

OrientDB 1.0 is pretty old, you've to use a more recent version.

AntonTerekhov commented 10 years ago

Yes, you're right: no server-side scripting is possible right now.

andrewcurioso commented 10 years ago

@lvca I should have specified "since" 1.0. I'm not actually using 1.0.

I started on a patch but I figured it might be faster for someone core to the project to do it. I'd be more than happy to finish the patch / do a push request if it is "low priority" and it will be a while before someone gets to it.

I'm going off of the documentation here: https://github.com/orientechnologies/orientdb/wiki/Network-Binary-Protocol#wiki-SQL_Script_command_payload