Module tarantool

By saying require('tarantool'), one can answer some questions about how the tarantool server was built, such as “what flags were used”, or “what was the version of the compiler”.

Additionally one can see the uptime and the server version and the process id. Those information items can also be accessed with box.info() but use of the tarantool module is recommended.

Example:

tarantool> tarantool = require('tarantool') --- ... tarantool> tarantool --- - version: 2.10.4-0-g816000e  build:  target: Darwin-x86_64-Release  options: cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/tarantool/2.10.4 -DENABLE_BACKTRACE=ON  linking: dynamic  mod_format: dylib  flags: ' -fexceptions -funwind-tables -fno-common -fopenmp -msse2 -Wformat -Wformat-security  -Werror=format-security -fstack-protector-strong -fPIC -fmacro-prefix-map=/tmp/tarantool-20221113-6655-1clb1lj/tarantool-2.10.4=.  -std=c11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation  -Wno-gnu-alignof-expression -Wno-cast-function-type'  compiler: Clang-14.0.0.14000029  pid: 'function: 0x0102df34f8'  package: Tarantool  uptime: 'function: 0x0102df34c0' ... tarantool> tarantool.pid() --- - 30155 ... tarantool> tarantool.uptime() --- - 108.64641499519 ... 

Tarantool includes parts of tzdata package and uses its database for a correct time zone support. Since 3.2.0, you can get a used version of tzdata:

tarantool> tarantool.build.tzdata_version --- - 2022a ... 
Found what you were looking for?
Feedback