You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use the docker image and it seems broken.
When I connect to the console require('mysql') doesn't load the rock.
unix/:/var/run/tarantool/tarantool.sock> local mysql = require('mysql')
---
...
unix/:/var/run/tarantool/tarantool.sock> local pool = mysql.pool_create({ host = '127.0.0.1', user = 'user', password = 'password', db = 'db', size = 5 })
---
- error: '[string "local pool = mysql.pool_create({ host = ''127...."]:1: attempt
to index global ''mysql'' (a nil value)'
...
When I logon to the container via /bin/sh
tarantoolctl rocks list shows nothing
~ # tarantoolctl rocks list
Installed rocks:
----------------
Why are local variables difficult in the interactive interpreter
Because it runs each line in a new scope:
> local a=5; print(a)
5
> print(a) -- a is out of scope now, so global a is used
nil
If I don't assign to local scope everything is working.
Trying to use the docker image and it seems broken.
When I connect to the console
require('mysql')
doesn't load the rock.When I logon to the container via
/bin/sh
tarantoolctl rocks list
shows nothingluarocks list
shows all the bundled rocksTrying to move forward with testing. Please advise.
The text was updated successfully, but these errors were encountered: