stat and compte_ext_opts, that’s all.
Public instance methods
compute_ext_opts
(opts)
Computes the :int option for the “ext” function (triggering tyrant embedded lua functions)
[show source]
# File lib/rufus/tokyo/ttcommons.rb, line 49 49: def compute_ext_opts (opts) 50: 51: r = 0 52: r = r | 1 if opts[:record_locking] 53: r = r | 2 if opts[:global_locking] 54: r 55: end
stat
()
Returns a hash of information about the Tokyo Tyrant database (or table) at the other end of the connection.
[show source]
# File lib/rufus/tokyo/ttcommons.rb, line 37 37: def stat 38: 39: do_stat.split("\n").inject({}) { |r, l| 40: kv = l.split("\t") 41: r[kv.first] = kv.last 42: r 43: } 44: end