-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I use this client with tarantool queues? #33
Comments
I wrote wrapper for eval. And now I can use it in a such way:
In my case it works. But I'm not sure if I've done it correctly.
|
It seems the same as tarantool/go-tarantool#94. I suggest to create a wrapper around local function queue_create_tube(...)
queue.create_tube(...)
end
_G.queue_create_tube = queue_create_tube
box.schema.func.create('queue_create_tube', {if_not_exists = true})
box.schema.user.grant('username', 'execute', 'function', 'queue_create_tube', {
if_not_exists = true
}) |
Thank you for solution. I'll try it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I try to use this client with queues in tarantool (it's modified code from Simple.cpp). And can't do it in normal way.
As result I get an error from conn.call:
RESPONSE ERROR: msg=unsupported Lua type 'function' line=/usr/src/tarantool/src/lua/utils.c file=/usr/src/tarantool/src/lua/utils.c errno=0 type=LuajitError code=32
But tube is created, in fact.
I guess, that I should use eval instead of call. But client doesn't contain this method.
So I have 2 questions:
The text was updated successfully, but these errors were encountered: