Is there any way ,I will set database at the top of xquery file without passing it to spawn/eval/invoke function example -
xquery version "1.0-ml"; set