Received from [email protected] on Thu, Oct 29, 2015 at 10:59:30AM EDT: > On Wednesday, October 28, 2015 at 7:24:30 PM UTC-4, Lev Givon wrote: > > > > Received from [email protected] <javascript:> on Wed, Oct 28, 2015 at > > 12:52:40PM EDT: > > > Hi. > > > > > > We are using orientdb via pyorient library (so with binary protocol). I > > > am > > > able to run regular gremlin scripts and get a response. But I cannot > > > figure > > > out how to define custom steps to be used in my script. Is there a good > > > way > > > to do it for each call? What about storing them server-side? > > > > Hi, Leonid. > > > > If you define the custom step in one Gremlin script, you should be able to > > use it in > > subsequent scripts executed via the same client instance. > > > > See https://gist.github.com/lebedov/6b0512723c1d28d7748a for an example > > (which > > works against the latest code in the develop branch of pyorient on GitHub > > and OrientDB 2.1.4). > > Thanks! > > Is this script tied to the same client or the same instance of the service?
>From what I can tell, the new step remains defined and usable by other clients until the database is restarted (regardless of whether it is plocal). -- Lev Givon Bionet Group | Neurokernel Project http://lebedov.github.io/ http://neurokernel.github.io/ -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
