Currently one function is implemented:
dateTimePlusSeconds
. Add seconds to a timestamp:dateTimePlusSeconds <datetime> <seconds>
- Configure Maven credentials for Nexus
mvn deploy
Copy orientdb-functions-plugin-<version>.jar
to <orientdb-install-dir>/plugins/
.
On server startup you should see the following
2015-07-13 09:34:15:289 INFO Installing dynamic plugin 'orientdb-functions-plugin-1.0.1.jar'... [OServerPluginManager]
2015-07-13 09:34:15:334 INFO dateTimePlusSeconds function registered [OYlabsFunctionsPlugin]
- Add dependency to project:
"springnz" % "orientdb-functions-plugin" % "1.0.1",
- Register functions with embedded server
OSQLFunctions.registerPlugins(this)
- Use it. E.g.,
select dateTimePlusSeconds(date("2015-07-10 12:00:00"), 30)