Hi Diaa, if you are implementing your functions in Javascript you can refer to this
http://orientdb.com/docs/last/Functions.html To implement functions in Java, instead, you have to implement OSQLFunction interface and register functions in the database using db.getMetadata().getFunctionLibrary(). You can see this as an example https://github.com/orientechnologies/orientdb/blob/07efb413a606a692ce99bcf1c11c9868ce5e3248/core/src/main/java/com/orientechnologies/orient/core/sql/functions/math/OSQLFunctionSum.java Hope it helps Luigi 2015-04-21 19:52 GMT+02:00 Diaa ElKott <[email protected]>: > Hello, everyone: > > I was wondering if someone could share with me a tutorial on how to create > server-side functions in OrientDB. The lecture on this topic in the Getting > Started OrientDB course assumes a pre-existing function "*createPerson()*" > within the example databases, and builds on it. Unfortunately, this code > does not actually exist in the sample databases. > > Thanks in advance for your help, and have a nice day. > > Diaa > > -- > > --- > 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. > -- --- 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.
