module Tarantool16
Constants
- DBErrors
- INDEX_INDEX_NAME
- INDEX_INDEX_PRIMARY
- INDEX_SPACE_NAME
- INDEX_SPACE_PRIMARY
- IPROTO_CODE
- IPROTO_DATA
- IPROTO_DEF_DUPLE
- IPROTO_ERROR
- IPROTO_EXPR
- IPROTO_FUNCTION_NAME
- IPROTO_GREETING_SIZE
- IPROTO_INDEX_ID
- IPROTO_ITERATOR
- IPROTO_KEY
- IPROTO_LIMIT
- IPROTO_OFFSET
- IPROTO_SPACE_ID
- IPROTO_SYNC
- IPROTO_TUPLE
- IPROTO_USER_NAME
- ITERATOR_ALL
- ITERATOR_BITS_ALL_NOT_SET
- ITERATOR_BITS_ALL_SET
- ITERATOR_BITS_ANY_SET
- ITERATOR_EQ
- ITERATOR_GE
- ITERATOR_GT
- ITERATOR_LE
- ITERATOR_LT
- ITERATOR_REQ
- ITERATOR_RTREE_NEIGHBOR
- ITERATOR_RTREE_OVERLAPS
- Iterators
- RECONNECT_DELAY
Default delay between attempts to reconnect (seconds)
- RECONNECT_MAX_ATTEMPTS
Default maximum number of attempts to reconnect
- REQUEST_TYPE_AUTHENTICATE
- REQUEST_TYPE_CALL16
- REQUEST_TYPE_CALL17
- REQUEST_TYPE_DELETE
- REQUEST_TYPE_ERROR
- REQUEST_TYPE_EVAL
- REQUEST_TYPE_INSERT
- REQUEST_TYPE_OK
- REQUEST_TYPE_PING
- REQUEST_TYPE_REPLACE
- REQUEST_TYPE_SELECT
- REQUEST_TYPE_UPDATE
- REQUEST_TYPE_UPSERT
- RETRY_MAX_ATTEMPTS
Number of reattempts in case of server return completion_status == 1 (try again)
- SOCKET_TIMEOUT
Default value for socket timeout (seconds)
- SPACE_CLUSTER
- SPACE_FUNC
- SPACE_INDEX
- SPACE_PRIV
- SPACE_SCHEMA
- SPACE_SPACE
- SPACE_USER
- SPACE_VINDEX
- SPACE_VSPACE
- VERSION
Public Class Methods
iter(iter)
click to toggle source
# File lib/tarantool16/consts.rb, line 85 def self.iter(iter) unless it = Iterators[iter] raise "Unknown iterator #{iter.inspect}" end it end
new(opts = {})
click to toggle source
# File lib/tarantool16.rb, line 6 def self.new(opts = {}) opts = opts.dup if opts[:unix] && opts[:host] raise "`:host` and `:unix` options are mutually exclusive" elsif opts[:unix] hosts = ["unix", opts[:unix]] elsif opts[:host] host = opts[:host] if Array === host hosts = host else host = [host, opts[:port]].compact.join(':') hosts = ["tcp", host] end end type = opts[:type] && opts[:type].to_s || 'dumb' case type when 'dumb' DumbDB.new hosts, opts else raise "Unknown DB type" end end