Remove Server-Side functions

20 views
Skip to first unread message

Xavier Rigal

unread,
Aug 9, 2017, 5:05:03 AM8/9/17
to OrientDB
Hi,

I just created a function 

CREATE FUNCTION fixImage "return value.replace(new RegExp(\"src='/foo/\", 'g'), \"src='/images\");" PARAMETERS [value] LANGUAGE javascript;

It works..

But how can i remove this function after?

I try
REMOVE FUNCTION fixImage
DELETE FUNCTION fixImage
DROP FUNCTION fixImage

none works :(

Luigi Dell'Aquila

unread,
Aug 9, 2017, 5:14:48 AM8/9/17
to orient-...@googlegroups.com
Hi Xavier,

you can just do

DELETE FROM OFunction WHERE name = ...

Thanks

Luigi

--

---
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 orient-database+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages