Store custom functions?

is there a way to store a custom function in InfluxDB 2 like for example stored procedures / stored functions are stored in traditional SQL databases?

I mean, they are very neat when you use them multiple times in the same flux script - but if I need them in multiple different ones (which is mostly the case), I would have to duplicate their definition into each of them. Not so good.

If it is not possible, is there an include-capability or is this feature planned for the future?


Hello @Steven_Weiss,
Unfortunately there isn’t.
I wish there was.
You used to be able to contribute functions to Flux or you could add a function and recompile the binary but I wouldn’t recommend doing that.