Open zloidemon opened 7 years ago
Does possible to give access into box from C Api?
We have box_XXX() family of functions to work with spaces, indexes and so on. Our Lua integration is fully based on this API.
I wish to see cluster info and anyone else might wish to get more info about server/cluster into own module.
Do you mean box.info.replication? We can export this information too, but it requires some new API which should be designed and discussed with the community. Could you please propose some API which will solve your problem? Remember that module.h API can't have structures to keep ABI compatibility.
BTW, @tonyfreeman has already exported luaT_state() function which can be used to call Lua from C stored procedures. You can use it to query box.info.replication from C as a temporary workaround.
I need box.info.uuid
, box.info.replication
, box.info.cluster
, box.info.uptime
at the moment and fast access to that values without handling Lua api by swift
. (i discussed with that question with @tonyfreeman before make that request).
Does possible to give access into
box
from C Api? I wish to see cluster info and anyone else might wish to get more info about server/cluster into own module.