EL
Size: a a a
EL
МЖ
EL
МЖ
EL
prepare_sql это ненастоящий?МЖ
МЖ
EL
.prepare_sql("select * from TABLE1 where COLUMN1=?")
.bind(1)это в итоге в строку превращается " select ... COLUMN1=1"?МЖ
МЖ
EL
D
nginx_1 | 2020/06/08 05:15:59 [error] 6#6: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /tnt_api?arg1=1 HTTP/1.1", upstream: "tnt://[::1]:8088", host: "127.0.0.1"
AK
AK
D
local function init(opts)
if opts.is_master then
box.schema.user.grant('guest',
'read,write',
'universe',
nil, { if_not_exists = true }
)
box.schema.func.create('tnt_api', {if_not_exists = true})
box.schema.user.grant('guest', 'execute', 'function', 'tnt_api')
end
rawset(_G, 'tnt_api', tnt_api)
...
AK
local function init(opts)
if opts.is_master then
box.schema.user.grant('guest',
'read,write',
'universe',
nil, { if_not_exists = true }
)
box.schema.func.create('tnt_api', {if_not_exists = true})
box.schema.user.grant('guest', 'execute', 'function', 'tnt_api')
end
rawset(_G, 'tnt_api', tnt_api)
...