*
orang...@gmail.com <
orang...@gmail.com> [15/07/21 13:35]:
drop() на объект сейчас может сделать только его создатель или
суперюзер.
tarantool> box.schema.space.create('test')
2015-07-21 14:22:27.974 [22222] wal I> creating `./00000000000000000000.xlog.inprogress'
---
- index: []
on_replace: 'function: 0x406181b0'
temporary: false
id: 512
engine: memtx
enabled: false
name: test
field_count: 0
- created
...
tarantool> box.schema.user.grant('guest', 'read,write,execute', 'universe')
---
...
tarantool>
box.session.su('guest')
---
...
tarantool> box.space.test:drop()
---
- error: Create or drop access denied for user 'guest'
...
tarantool> box.schema.space.create('test1')
---
- index: []
on_replace: 'function: 0x4061bb88'
temporary: false
id: 513
engine: memtx
enabled: false
name: test1
field_count: 0
- created
...
tarantool> box.space.test1:drop()
---
...
--
http://tarantool.org - a NoSQL database in a Lua script