I can see this in the documentation:
public ExecuteTask Execute(WritePolicy policy, Statement statement, string packageName, string functionName, params Value[] functionArgs)
and this:
public RegisterTask RegisterUdfString( Policy policy, string code, string serverPath, Language language )
I register the UDF function in this way:
var removeRecordFunction =
$@"function deleteRecord(r)
aerospike: remove(r)
end";
Client.RegisterUdfString(null, removeRecordFunction, RemoveRecordUdfName, Language.LUA);
and I want to use it:
Client.Execute(null, statement, packageName, RemoveRecordUdfName);
- What is packageName (server package where user defined function resides) ??
- What happens when I register the function other the first time? Is it overwritten?
- Why “remove-record” is an invalid file name ??