I thought about diving into the code because my system has been using the same procedures for years with emqttd and modifying our system to use select statements means adding tables with redundant data, which can get out of sync, becoming a maintenance issue.
But I got these errors when I tried to build master branch:
cc erlang_jq_nif.o port_nif_common.o -pthread -shared -L /src/local/lib/erlang/lib/erl_interface-5.3.2/lib -L ext_libs -lei -ljq -lonig -o ../priv/jq_nif1.so
Undefined symbols for architecture arm64:
"_enif_alloc", referenced from:
_load_helper in erlang_jq_nif.o
_jq_enif_alloc in erlang_jq_nif.o
Great stuff! Thanks for that. Please feel free to submit a pull request, we’ll try to review and merge it ASAP. The code looks fine to me, only lacking the autotests, but we can help with that.