forked from tarantool/tarantool
-
Notifications
You must be signed in to change notification settings - Fork 0
Recipes General
Roman Tsisyk edited this page Jul 25, 2016
·
1 revision
Create a script and run it.
#!/usr/bin/env tarantool
-- Lua code
print('Hello, World!')
Use :func:`box.once()` to initialize database schema at the first run.
#!/usr/bin/env tarantool
-- Configure database
box.cfg {
listen = 3313
}
-- Create spaces (once)
box.once("bootstrap", function()
box.schema.space.create('tweedledum')
box.space.tweedledum:create_index('primary',
{ type = 'TREE', parts = {1, 'NUM'}})
end)
-- Start interactive mode
require('console').start()
Architecture Specifications
- Server architecture
- Feature specifications
- What's in a good specification
- Functional indexes
- Space _index structure
- R tree index quick start and usage
- LuaJIT
- Vinyl
- SQL
- Testing
- Performance
How To ...?
- ... add new fuzzers
- ... build RPM or Deb package using packpack
- ... calculate memory size
- ... debug core dump of stripped tarantool
- ... debug core from different OS
- ... debug Lua state with GDB
- ... generate new bootstrap snapshot
- ... use Address Sanitizer
- ... collect a coredump
Lua modules
Useful links