https://github.com/mrft/orientdblanguagescompiledtojavascripthook
https://github.com/mrft/orientdblanguagescompiledtojavascripthook
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrft/orientdblanguagescompiledtojavascripthook
- Owner: mrft
- Created: 2014-06-11T11:45:29.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-12T16:43:59.000Z (about 12 years ago)
- Last Synced: 2025-04-24T01:16:17.495Z (about 1 year ago)
- Language: JavaScript
- Size: 3.65 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a hook for OrientDB that will add some functionality to functions.
OrientDB functions are stored in the database as docuemtns of class OFunction.
They have a 'language' property that can be sql or Javascript,
and a 'code' property that contains the sql or javascript code.
What this hook will do is, it will check if the saved OFunction contains
a property called 'icedcoffeescript' or 'livescript'. If it does,
the 'code' will be replaced by the compiled-to-javascript version of the script.
This way, you can also write server-side functions in either coffeescript or livescript.
It should be quite easy to add otehr languages, if there is a javascript compiler available.
Installing the hook is quite easy:
- Use ant to build the IcedCoffeeScriptHook.jar file in the '/target' folder (bad name since it also supports LiveScript but anyway)
- copy the IcedCoffeeScriptHook.jar file to your /orientdb-community-1.7.x/lib directory
- add a section called hooks to /orientdb-community-1.7.x/conf/orientdb-server-config.xml (example below)
...
- restart OrientDB