Module: Libcouchbase::Ext

Extended by:
FFI::Library
Defined in:
lib/libcouchbase/ext/libcouchbase.rb,
lib/libcouchbase/ext/libcouchbase/t.rb,
lib/libcouchbase/ext/libcouchbase/enums.rb,
lib/libcouchbase/ext/libcouchbase/cmdfts.rb,
lib/libcouchbase/ext/libcouchbase/cmdget.rb,
lib/libcouchbase/ext/libcouchbase/crst_u.rb,
lib/libcouchbase/ext/libcouchbase/keybuf.rb,
lib/libcouchbase/ext/libcouchbase/sdspec.rb,
lib/libcouchbase/ext/libcouchbase/valbuf.rb,
lib/libcouchbase/ext/libcouchbase/cmdbase.rb,
lib/libcouchbase/ext/libcouchbase/cmdhttp.rb,
lib/libcouchbase/ext/libcouchbase/cmdn1ql.rb,
lib/libcouchbase/ext/libcouchbase/fragbuf.rb,
lib/libcouchbase/ext/libcouchbase/respfts.rb,
lib/libcouchbase/ext/libcouchbase/respget.rb,
lib/libcouchbase/ext/libcouchbase/sdentry.rb,
lib/libcouchbase/ext/libcouchbase/cmdstore.rb,
lib/libcouchbase/ext/libcouchbase/respbase.rb,
lib/libcouchbase/ext/libcouchbase/resphttp.rb,
lib/libcouchbase/ext/libcouchbase/respn1ql.rb,
lib/libcouchbase/ext/libcouchbase/cmdendure.rb,
lib/libcouchbase/ext/libcouchbase/cmdsubdoc.rb,
lib/libcouchbase/ext/libcouchbase/contigbuf.rb,
lib/libcouchbase/ext/libcouchbase/create_st.rb,
lib/libcouchbase/ext/libcouchbase/ftshandle.rb,
lib/libcouchbase/ext/libcouchbase/histogram.rb,
lib/libcouchbase/ext/libcouchbase/respstats.rb,
lib/libcouchbase/ext/libcouchbase/respstore.rb,
lib/libcouchbase/ext/libcouchbase/cmdcounter.rb,
lib/libcouchbase/ext/libcouchbase/cmdobseqno.rb,
lib/libcouchbase/ext/libcouchbase/cmdobserve.rb,
lib/libcouchbase/ext/libcouchbase/create_st0.rb,
lib/libcouchbase/ext/libcouchbase/create_st1.rb,
lib/libcouchbase/ext/libcouchbase/create_st2.rb,
lib/libcouchbase/ext/libcouchbase/create_st3.rb,
lib/libcouchbase/ext/libcouchbase/n1qlhandle.rb,
lib/libcouchbase/ext/libcouchbase/n1qlparams.rb,
lib/libcouchbase/ext/libcouchbase/respendure.rb,
lib/libcouchbase/ext/libcouchbase/respsubdoc.rb,
lib/libcouchbase/ext/libcouchbase/viewhandle.rb,
lib/libcouchbase/ext/libcouchbase/cmdstoredur.rb,
lib/libcouchbase/ext/libcouchbase/respcounter.rb,
lib/libcouchbase/ext/libcouchbase/respobseqno.rb,
lib/libcouchbase/ext/libcouchbase/respobserve.rb,
lib/libcouchbase/ext/libcouchbase/cmdverbosity.rb,
lib/libcouchbase/ext/libcouchbase/cmdviewquery.rb,
lib/libcouchbase/ext/libcouchbase/multicmd_ctx.rb,
lib/libcouchbase/ext/libcouchbase/respstoredur.rb,
lib/libcouchbase/ext/libcouchbase/valbuf_u_buf.rb,
lib/libcouchbase/ext/libcouchbase/cmdgetreplica.rb,
lib/libcouchbase/ext/libcouchbase/respmcversion.rb,
lib/libcouchbase/ext/libcouchbase/respviewquery.rb,
lib/libcouchbase/ext/libcouchbase/http_request_t.rb,
lib/libcouchbase/ext/libcouchbase/mutation_token.rb,
lib/libcouchbase/ext/libcouchbase/respserverbase.rb,
lib/libcouchbase/ext/libcouchbase/durability_opts_t.rb,
lib/libcouchbase/ext/libcouchbase/durabilityopt_sv0.rb,
lib/libcouchbase/ext/libcouchbase/durability_opts_st_v.rb

Defined Under Namespace

Modules: HISTOGRAMWrappers, Libuv Classes: CMDBASE, CMDCOUNTER, CMDENDURE, CMDFTS, CMDGET, CMDGETREPLICA, CMDHTTP, CMDN1QL, CMDOBSEQNO, CMDOBSERVE, CMDSTORE, CMDSTOREDUR, CMDSUBDOC, CMDVERBOSITY, CMDVIEWQUERY, CONTIGBUF, CRSTU, CreateSt, CreateSt0, CreateSt1, CreateSt2, CreateSt3, DURABILITYOPTSv0, DurabilityOptsStV, DurabilityOptsT, FRAGBUF, FTSHANDLE, HISTOGRAM, HttpRequestT, KEYBUF, MULTICMDCTX, MUTATIONTOKEN, N1QLHANDLE, N1QLPARAMS, RESPBASE, RESPCOUNTER, RESPENDURE, RESPFTS, RESPGET, RESPHTTP, RESPMCVERSION, RESPN1QL, RESPOBSEQNO, RESPOBSERVE, RESPSERVERBASE, RESPSTATS, RESPSTORE, RESPSTOREDUR, RESPSUBDOC, RESPVIEWQUERY, SDENTRY, SDSPEC, T, VALBUF, VALBUFUBuf, VIEWHANDLE

Constant Summary collapse

ErrflagsT =
enum [
  :errtype_input, 1,
  :errtype_network, 2,
  :errtype_fatal, 4,
  :errtype_transient, 8,
  :errtype_dataop, 16,
  :errtype_internal, 32,
  :errtype_plugin, 64,
  :errtype_srvload, 128,
  :errtype_srvgen, 256,
  :errtype_subdoc, 512
]
KVBUFTYPE =
enum [
  :kv_copy, 0,
  :kv_contig, 1,
  :kv_iov, 2,
  :kv_vbid, 3,
  :kv_iovcopy, 4
]
ConfigTransportT =
enum [
  :list_end, 0,
  :http, 1,
  :cccp, 2,
  :max, 3
]
RESPFLAGS =
enum [
  :resp_f_final, 1,
  :resp_f_clientgen, 2,
  :resp_f_nmvgen, 4,
  :resp_f_extdata, 8,
  :resp_f_sdsingle, 16,
  :resp_f_errinfo, 0x20
]
ReplicaT =
enum [
  :first, 0,
  :all, 1,
  :select, 2
]
StorageT =
enum [
  :add, 1,
  :replace, 2,
  :set, 3,
  :upsert, 0,
  :append, 4,
  :prepend, 5
]
DURMODE =
enum [
  :durability_mode_default, 0,
  :durability_mode_cas, 1,
  :durability_mode_seqno, 2
]
ObserveT =
enum [
  :found, 0,
  :persisted, 1,
  :not_found, 128,
  :logically_deleted, 129,
  :max, 130
]
VerbosityLevelT =
enum [
  :detail, 0,
  :debug, 1,
  :info, 2,
  :warning, 3
]
HttpTypeT =
enum [
  :view, 0,
  :management, 1,
  :raw, 2,
  :n1ql, 3,
  :fts, 4,
  :max, 5
]
WAITFLAGS =
enum [
  :wait_default, 0,
  :wait_nocheck, 1
]
VALUEFLAGS =
enum [
  :value_raw, 0,
  :value_f_json, 1,
  :value_f_snappycomp, 2
]
TimeunitT =
enum [
  :nsec, 0,
  :usec, 1,
  :msec, 2,
  :sec, 3
]
DUMPFLAGS =
enum [
  :dump_vbconfig, 1,
  :dump_pktinfo, 2,
  :dump_bufinfo, 4,
  :dump_all, 255
]
SUBDOCOP =
enum [
  :sdcmd_get, 1,
  :sdcmd_exists, 2,
  :sdcmd_replace, 3,
  :sdcmd_dict_add, 4,
  :sdcmd_dict_upsert, 5,
  :sdcmd_array_add_first, 6,
  :sdcmd_array_add_last, 7,
  :sdcmd_array_add_unique, 8,
  :sdcmd_array_insert, 9,
  :sdcmd_counter, 10,
  :sdcmd_remove, 11,
  :sdcmd_get_count, 12,
  :sdcmd_max, 13
]
ErrorT =
enum [
  :success, 0,
  :auth_continue, 1,
  :auth_error, 2,
  :delta_badval, 3,
  :e2big, 4,
  :ebusy, 5,
  :einternal, 6,
  :einval, 7,
  :enomem, 8,
  :erange, 9,
  :error, 10,
  :etmpfail, 11,
  :key_eexists, 12,
  :key_enoent, 13,
  :dlopen_failed, 14,
  :dlsym_failed, 15,
  :network_error, 16,
  :not_my_vbucket, 17,
  :not_stored, 18,
  :not_supported, 19,
  :unknown_command, 20,
  :unknown_host, 21,
  :protocol_error, 22,
  :etimedout, 23,
  :connect_error, 24,
  :bucket_enoent, 25,
  :client_enomem, 26,
  :client_enoconf, 27,
  :ebadhandle, 28,
  :server_bug, 29,
  :plugin_version_mismatch, 30,
  :invalid_host_format, 31,
  :invalid_char, 32,
  :durability_etoomany, 33,
  :duplicate_commands, 34,
  :no_matching_server, 35,
  :bad_environment, 36,
  :busy, 37,
  :invalid_username, 38,
  :config_cache_invalid, 39,
  :saslmech_unavailable, 40,
  :too_many_redirects, 41,
  :map_changed, 42,
  :incomplete_packet, 43,
  :econnrefused, 44,
  :esockshutdown, 45,
  :econnreset, 46,
  :ecantgetport, 47,
  :efdlimitreached, 48,
  :enetunreach, 49,
  :ectl_unknown, 50,
  :ectl_unsuppmode, 51,
  :ectl_badarg, 52,
  :empty_key, 53,
  :ssl_error, 54,
  :ssl_cantverify, 55,
  :schedfail_internal, 56,
  :client_feature_unavailable, 57,
  :options_conflict, 58,
  :http_error, 59,
  :durability_no_mutation_tokens, 60,
  :unknown_memcached_error, 61,
  :mutation_lost, 62,
  :subdoc_path_enoent, 63,
  :subdoc_path_mismatch, 64,
  :subdoc_path_einval, 65,
  :subdoc_path_e2big, 66,
  :subdoc_doc_e2deep, 67,
  :subdoc_value_cantinsert, 68,
  :subdoc_doc_notjson, 69,
  :subdoc_num_erange, 70,
  :subdoc_bad_delta, 71,
  :subdoc_path_eexists, 72,
  :subdoc_multi_failure, 73,
  :subdoc_value_e2deep, 74,
  :einval_mcd, 75,
  :empty_path, 76,
  :unknown_sdcmd, 77,
  :eno_commands, 78,
  :query_error, 79,
  :generic_tmperr, 80,
  :generic_subdocerr, 81,
  :generic_constraint_err, 82,
  :nameserver_error, 83,
  :not_authorized, 84,
  :subdoc_invalid_combo, 85,
  :subdoc_multi_path_failure, 86,
  :subdoc_success_deleted, 87,
  :subdoc_xattr_invalid_flag_combo, 88,
  :subdoc_xattr_invalid_key_combo, 89,
  :subdoc_xattr_unknown_macro, 90,
  :subdoc_xattr_unknown_vattr, 91,
  :subdoc_xattr_cant_modify_vattr, 92,
  :subdoc_multi_path_failure_deleted, 93,
  :subdoc_invalid_xattr_order, 94,
  :max_error, 4096
]
TypeT =
enum [
  :bucket, 0,
  :cluster, 1
]
CALLBACKTYPE =
enum [
  :callback_default, 0,
  :callback_get, 1,
  :callback_store, 2,
  :callback_counter, 3,
  :callback_touch, 4,
  :callback_remove, 5,
  :callback_unlock, 6,
  :callback_stats, 7,
  :callback_versions, 8,
  :callback_verbosity, 9,
  :callback_flush, 10,
  :callback_observe, 11,
  :callback_getreplica, 12,
  :callback_endure, 13,
  :callback_http, 14,
  :callback_cbflush, 15,
  :callback_obseqno, 16,
  :callback_storedur, 17,
  :callback_sdlookup, 18,
  :callback_sdmutate, 19,
  :callback_max, 20
]
HttpMethodT =
enum [
  :get, 0,
  :post, 1,
  :put, 2,
  :delete, 3,
  :max, 4
]
GETNODETYPE =
enum [
  :node_htconfig, 1,
  :node_data, 2,
  :node_views, 4,
  :node_connected, 8,
  :node_nevernull, 16,
  :node_htconfig_connected, 9,
  :node_htconfig_any, 17
]

Class Method Summary collapse

Class Method Details

.bootstrap_callbacknil

(Not documented)

Parameters:

Returns:

  • (nil)


91
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 91

callback :bootstrap_callback, [T.by_ref, ErrorT], :void

.breakout(instance) ⇒ nil

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (nil)


564
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 564

attach_function :breakout, :lcb_breakout, [T.by_ref], :void, :blocking => true

.cancel_http_request(instance, request) ⇒ nil

(Not documented)

Parameters:

Returns:

  • (nil)


508
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 508

attach_function :cancel_http_request, :lcb_cancel_http_request, [T.by_ref, HttpRequestT.by_ref], :void, :blocking => true

.cbflush3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDBASE)

Returns:



476
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 476

attach_function :cbflush3, :lcb_cbflush3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true

.cntl(instance, mode, cmd, arg) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • mode (Integer)
  • cmd (Integer)
  • arg (FFI::Pointer(*Void))

Returns:



719
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 719

attach_function :cntl, :lcb_cntl, [T.by_ref, :int, :int, :pointer], ErrorT, :blocking => true

.cntl_exists(ctl) ⇒ Integer

(Not documented)

Parameters:

  • ctl (Integer)

Returns:

  • (Integer)


760
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 760

attach_function :cntl_exists, :lcb_cntl_exists, [:int], :int, :blocking => true

.cntl_getu32(instance, cmd) ⇒ Integer

(Not documented)

Parameters:

  • instance (T)
  • cmd (Integer)

Returns:

  • (Integer)


751
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 751

attach_function :cntl_getu32, :lcb_cntl_getu32, [T.by_ref, :int], :uint, :blocking => true

.cntl_setu32(instance, cmd, arg) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cmd (Integer)
  • arg (Integer)

Returns:



741
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 741

attach_function :cntl_setu32, :lcb_cntl_setu32, [T.by_ref, :int, :uint], ErrorT, :blocking => true

.cntl_string(instance, key, value) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • key (String)
  • value (String)

Returns:



730
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 730

attach_function :cntl_string, :lcb_cntl_string, [T.by_ref, :string, :string], ErrorT, :blocking => true

.connect(instance) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)

Returns:



231
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 231

attach_function :connect, :lcb_connect, [T.by_ref], ErrorT, :blocking => true

.counter3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDCOUNTER)

Returns:



410
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 410

attach_function :counter3, :lcb_counter3, [T.by_ref, :pointer, CMDCOUNTER.by_ref], ErrorT, :blocking => true

.create(instance, options) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (FFI::Pointer(*T))
  • options (CreateSt)

Returns:



222
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 222

attach_function :create, :lcb_create, [:pointer, CreateSt.by_ref], ErrorT, :blocking => true

.destroy(instance) ⇒ nil

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (nil)


627
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 627

attach_function :destroy, :lcb_destroy, [T.by_ref], :void, :blocking => true

.destroy_async(instance, arg) ⇒ nil

(Not documented)

Parameters:

  • instance (T)
  • arg (FFI::Pointer(*Void))

Returns:

  • (nil)


647
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 647

attach_function :destroy_async, :lcb_destroy_async, [T.by_ref, :pointer], :void, :blocking => true

.destroy_callbacknil

(Not documented)

Parameters:

  • cookie (FFI::Pointer(*Void))

Returns:

  • (nil)


111
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 111

callback :destroy_callback, [:pointer], :void

.disable_timings(instance) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)

Returns:



778
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 778

attach_function :disable_timings, :lcb_disable_timings, [T.by_ref], ErrorT, :blocking => true

.dump(instance, fp, flags) ⇒ nil

(Not documented)

Parameters:

  • instance (T)
  • fp (FFI::Pointer(*FILE))
  • flags (Integer)

Returns:

  • (nil)


707
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 707

attach_function :dump, :lcb_dump, [T.by_ref, :pointer, :uint], :void, :blocking => true

.durability_validate(instance, persist_to, replicate_to, options) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • persist_to (FFI::Pointer(*U16))
  • replicate_to (FFI::Pointer(*U16))
  • options (Integer)

Returns:



358
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 358

attach_function :durability_validate, :lcb_durability_validate, [T.by_ref, :pointer, :pointer, :int], ErrorT, :blocking => true

.enable_timings(instance) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)

Returns:



769
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 769

attach_function :enable_timings, :lcb_enable_timings, [T.by_ref], ErrorT, :blocking => true

.endure3_ctxnew(instance, options, err) ⇒ MULTICMDCTX

(Not documented)

Parameters:

Returns:



335
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 335

attach_function :endure3_ctxnew, :lcb_endure3_ctxnew, [T.by_ref, DurabilityOptsT.by_ref, :pointer], MULTICMDCTX.by_ref, :blocking => true

.errmap_callbackErrorT

(Not documented)

Parameters:

  • error_t (T)
  • instance (Integer)

Returns:



81
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 81

callback :errmap_callback, [T.by_ref, :ushort], ErrorT

.errmap_default(instance, code) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • code (Integer)

Returns:



202
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 202

attach_function :errmap_default, :lcb_errmap_default, [T.by_ref, :ushort], ErrorT

.flush3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDBASE)

Returns:



487
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 487

attach_function :flush3, :lcb_flush3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true

.fts_cancel(t, ftshandle) ⇒ nil

Cancel a full-text query in progress. The handle is usually obtained via the lcb_CMDFTS::handle pointer.

Parameters:

Returns:

  • (nil)


1173
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1173

attach_function :fts_cancel, :lcb_fts_cancel, [T.by_ref, FTSHANDLE.by_ref], :void, :blocking => true

.fts_query(instance, cookie, cmd) ⇒ ErrorT

Issue a full-text query. The callback (lcb_CMDFTS::callback) will be invoked for each hit. It will then be invoked one last time with the result metadata (including any facets) and the lcb_RESPFTS::rflags field having the @ref LCB_RESP_F_FINAL bit set

Parameters:

  • instance

    the instance

  • cookie

    opaque user cookie to be set in the response object

  • cmd

    command containing the query and callback

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDFTS)

Returns:



1161
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1161

attach_function :fts_query, :lcb_fts_query, [T.by_ref, :pointer, CMDFTS.by_ref], ErrorT, :blocking => true

.ftscallbacknil

(Not documented)

Parameters:

Returns:

  • (nil)


173
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 173

callback :ftscallback, [T.by_ref, :int, RESPFTS.by_ref], :void

.get3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDGET)

Returns:



291
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 291

attach_function :get3, :lcb_get3, [T.by_ref, :pointer, CMDGET.by_ref], ErrorT, :blocking => true

.get_bootstrap_status(instance) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)

Returns:



250
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 250

attach_function :get_bootstrap_status, :lcb_get_bootstrap_status, [T.by_ref], ErrorT

.get_callback3(instance, cbtype) ⇒ Proc(callback_respcallback)

(Not documented)

Parameters:

  • instance (T)
  • cbtype (Integer)

Returns:

  • (Proc(callback_respcallback))


271
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 271

attach_function :get_callback3, :lcb_get_callback3, [T.by_ref, :int], :respcallback

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (FFI::Pointer(*Void))


527
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 527

attach_function :get_cookie, :lcb_get_cookie, [T.by_ref], :pointer

.get_errtype(err) ⇒ Integer

(Not documented)

Parameters:

Returns:

  • (Integer)


182
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 182

attach_function :get_errtype, :lcb_get_errtype, [ErrorT], :int

.get_keynode(instance, key, nkey) ⇒ String

(Not documented)

Parameters:

  • instance (T)
  • key (FFI::Pointer(*Void))
  • nkey (Integer)

Returns:

  • (String)


669
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 669

attach_function :get_keynode, :lcb_get_keynode, [T.by_ref, :pointer, :ulong], :string, :blocking => true

.get_mutation_token(instance, kb, errp) ⇒ MUTATIONTOKEN

(Not documented)

Parameters:

Returns:



399
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 399

attach_function :get_mutation_token, :lcb_get_mutation_token, [T.by_ref, KEYBUF.by_ref, :pointer], MUTATIONTOKEN.by_ref, :blocking => true

.get_node(instance, type, index) ⇒ String

(Not documented)

Parameters:

Returns:

  • (String)


658
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 658

attach_function :get_node, :lcb_get_node, [T.by_ref, GETNODETYPE, :uint], :string, :blocking => true

.get_num_nodes(instance) ⇒ Integer

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (Integer)


687
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 687

attach_function :get_num_nodes, :lcb_get_num_nodes, [T.by_ref], :int

.get_num_replicas(instance) ⇒ Integer

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (Integer)


678
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 678

attach_function :get_num_replicas, :lcb_get_num_replicas, [T.by_ref], :int

.get_server_list(instance) ⇒ FFI::Pointer(**CharS)

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (FFI::Pointer(**CharS))


696
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 696

attach_function :get_server_list, :lcb_get_server_list, [T.by_ref], :pointer, :blocking => true

.get_timings(instance, cookie, callback) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • callback (Proc(callback_timings_callback))

Returns:



789
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 789

attach_function :get_timings, :lcb_get_timings, [T.by_ref, :pointer, :timings_callback], ErrorT, :blocking => true

.get_version(version) ⇒ String

(Not documented)

Parameters:

  • version (FFI::Pointer(*U32))

Returns:

  • (String)


798
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 798

attach_function :get_version, :lcb_get_version, [:pointer], :string, :blocking => true

.histogram_callbacknil

(Not documented)

Parameters:

  • cookie (FFI::Pointer(*Void))
  • timeunit (TimeunitT)
  • min (Integer)
  • max (Integer)
  • total (Integer)
  • maxtotal (Integer)

Returns:

  • (nil)


140
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 140

callback :histogram_callback, [:pointer, TimeunitT, :uint, :uint, :uint, :uint], :void

.histogram_createHISTOGRAM

(Not documented)

Returns:



859
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 859

attach_function :histogram_create, :lcb_histogram_create, [], HISTOGRAM.by_ref, :blocking => true

.histogram_destroy(hg) ⇒ nil

(Not documented)

Parameters:

Returns:

  • (nil)


868
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 868

attach_function :histogram_destroy, :lcb_histogram_destroy, [HISTOGRAM.by_ref], :void, :blocking => true

.histogram_print(hg, stream) ⇒ nil

(Not documented)

Parameters:

  • hg (HISTOGRAM)
  • stream (FFI::Pointer(*FILE))

Returns:

  • (nil)


899
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 899

attach_function :histogram_print, :lcb_histogram_print, [HISTOGRAM.by_ref, :pointer], :void, :blocking => true

.histogram_read(hg, cookie, cb) ⇒ nil

(Not documented)

Parameters:

  • hg (HISTOGRAM)
  • cookie (FFI::Pointer(*Void))
  • cb (Proc(callback_histogram_callback))

Returns:

  • (nil)


889
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 889

attach_function :histogram_read, :lcb_histogram_read, [HISTOGRAM.by_ref, :pointer, :histogram_callback], :void, :blocking => true

.histogram_record(hg, duration) ⇒ nil

(Not documented)

Parameters:

Returns:

  • (nil)


878
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 878

attach_function :histogram_record, :lcb_histogram_record, [HISTOGRAM.by_ref, :ulong_long], :void, :blocking => true

.http3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDHTTP)

Returns:



498
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 498

attach_function :http3, :lcb_http3, [T.by_ref, :pointer, CMDHTTP.by_ref], ErrorT, :blocking => true

.install_callback3(instance, cbtype, cb) ⇒ Proc(callback_respcallback)

(Not documented)

Parameters:

  • instance (T)
  • cbtype (Integer)
  • cb (Proc(callback_respcallback))

Returns:

  • (Proc(callback_respcallback))


261
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 261

attach_function :install_callback3, :lcb_install_callback3, [T.by_ref, :int, :respcallback], :respcallback

.is_waiting(instance) ⇒ Integer

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (Integer)


573
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 573

attach_function :is_waiting, :lcb_is_waiting, [T.by_ref], :int, :blocking => true

.mem_alloc(size) ⇒ FFI::Pointer(*Void)

(Not documented)

Parameters:

  • size (Integer)

Returns:

  • (FFI::Pointer(*Void))


816
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 816

attach_function :mem_alloc, :lcb_mem_alloc, [:ulong], :pointer, :blocking => true

.mem_free(ptr) ⇒ nil

(Not documented)

Parameters:

  • ptr (FFI::Pointer(*Void))

Returns:

  • (nil)


825
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 825

attach_function :mem_free, :lcb_mem_free, [:pointer], :void, :blocking => true

.n1p_encode(params, rc) ⇒ String

(Not documented)

Parameters:

Returns:

  • (String)


1111
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1111

attach_function :n1p_encode, :lcb_n1p_encode, [N1QLPARAMS.by_ref, :pointer], :string

.n1p_free(params) ⇒ nil

(Not documented)

Parameters:

Returns:

  • (nil)


981
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 981

attach_function :n1p_free, :lcb_n1p_free, [N1QLPARAMS.by_ref], :void

.n1p_mkcmd(params, cmd) ⇒ ErrorT

(Not documented)

Parameters:

Returns:



1121
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1121

attach_function :n1p_mkcmd, :lcb_n1p_mkcmd, [N1QLPARAMS.by_ref, CMDN1QL.by_ref], ErrorT

.n1p_namedparam(params, name, n_name, value, n_value) ⇒ ErrorT

(Not documented)

Parameters:

  • params (N1QLPARAMS)
  • name (String)
  • n_name (Integer)
  • value (String)
  • n_value (Integer)

Returns:



1006
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1006

attach_function :n1p_namedparam, :lcb_n1p_namedparam, [N1QLPARAMS.by_ref, :string, :ulong, :string, :ulong], ErrorT

.n1p_newN1QLPARAMS

(Not documented)

Returns:



963
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 963

attach_function :n1p_new, :lcb_n1p_new, [], N1QLPARAMS.by_ref

.n1p_posparam(params, value, n_value) ⇒ ErrorT

(Not documented)

Parameters:

  • params (N1QLPARAMS)
  • value (String)
  • n_value (Integer)

Returns:



1017
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1017

attach_function :n1p_posparam, :lcb_n1p_posparam, [N1QLPARAMS.by_ref, :string, :ulong], ErrorT

.n1p_readonly(params, readonly) ⇒ ErrorT

(Not documented)

Parameters:

  • params (N1QLPARAMS)
  • number (Integer)

    of items execution operators can batch for fetch from the KV

Returns:



1027
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1027

attach_function :n1p_readonly, :lcb_n1p_readonly, [N1QLPARAMS.by_ref, :int], ErrorT

.n1p_reset(params) ⇒ nil

(Not documented)

Parameters:

Returns:

  • (nil)


972
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 972

attach_function :n1p_reset, :lcb_n1p_reset, [N1QLPARAMS.by_ref], :void

.n1p_setconsistency(params, mode) ⇒ ErrorT

(Not documented)

Parameters:

Returns:



1080
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1080

attach_function :n1p_setconsistency, :lcb_n1p_setconsistency, [N1QLPARAMS.by_ref, :int], ErrorT

.n1p_setconsistent_handle(params, instance) ⇒ ErrorT

(Not documented)

Parameters:

Returns:



1101
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1101

attach_function :n1p_setconsistent_handle, :lcb_n1p_setconsistent_handle, [N1QLPARAMS.by_ref, T.by_ref], ErrorT

.n1p_setconsistent_token(params, keyspace, st) ⇒ ErrorT

(Not documented)

Parameters:

Returns:



1091
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1091

attach_function :n1p_setconsistent_token, :lcb_n1p_setconsistent_token, [N1QLPARAMS.by_ref, :string, MUTATIONTOKEN.by_ref], ErrorT

.n1p_setopt(params, name, n_name, value, n_value) ⇒ ErrorT

(Not documented)

Parameters:

  • params (N1QLPARAMS)
  • name (String)
  • n_name (Integer)
  • value (String)
  • n_value (Integer)

Returns:



1070
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1070

attach_function :n1p_setopt, :lcb_n1p_setopt, [N1QLPARAMS.by_ref, :string, :ulong, :string, :ulong], ErrorT

.n1p_setquery(params, qstr, nqstr, type) ⇒ ErrorT

(Not documented)

Parameters:

  • params (N1QLPARAMS)
  • qstr (String)
  • nqstr (Integer)
  • type (Integer)

Returns:



993
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 993

attach_function :n1p_setquery, :lcb_n1p_setquery, [N1QLPARAMS.by_ref, :string, :ulong, :int], ErrorT

.n1ql_cancel(instance, handle) ⇒ nil

(Not documented)

Parameters:

Returns:

  • (nil)


1142
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1142

attach_function :n1ql_cancel, :lcb_n1ql_cancel, [T.by_ref, N1QLHANDLE.by_ref], :void, :blocking => true

.n1ql_query(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDN1QL)

Returns:



1132
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 1132

attach_function :n1ql_query, :lcb_n1ql_query, [T.by_ref, :pointer, CMDN1QL.by_ref], ErrorT, :blocking => true

.n1qlcallbacknil

(Not documented)

Parameters:

Returns:

  • (nil)


162
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 162

callback :n1qlcallback, [T.by_ref, :int, RESPN1QL.by_ref], :void

.nstimeInteger

(Not documented)

Returns:

  • (Integer)


851
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 851

attach_function :nstime, :lcb_nstime, [], :ulong_long, :blocking => true

.observe3_ctxnew(instance) ⇒ MULTICMDCTX

(Not documented)

Parameters:

  • instance (T)

Returns:



367
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 367

attach_function :observe3_ctxnew, :lcb_observe3_ctxnew, [T.by_ref], MULTICMDCTX.by_ref, :blocking => true

.observe_seqno3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDOBSEQNO)

Returns:



378
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 378

attach_function :observe_seqno3, :lcb_observe_seqno3, [T.by_ref, :pointer, CMDOBSEQNO.by_ref], ErrorT, :blocking => true

.refresh_config(instance) ⇒ nil

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (nil)


582
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 582

attach_function :refresh_config, :lcb_refresh_config, [T.by_ref], :void, :blocking => true

.remove3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDBASE)

Returns:



324
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 324

attach_function :remove3, :lcb_remove3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true

.resp_get_mutation_token(cbtype, rb) ⇒ MUTATIONTOKEN

(Not documented)

Parameters:

Returns:



388
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 388

attach_function :resp_get_mutation_token, :lcb_resp_get_mutation_token, [:int, RESPBASE.by_ref], MUTATIONTOKEN.by_ref, :blocking => true

.respcallbacknil

(Not documented)

Parameters:

  • instance (T)
  • cbtype (Integer)
  • resp (RESPBASE)

Returns:

  • (nil)


102
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 102

callback :respcallback, [T.by_ref, :int, RESPBASE.by_ref], :void

.rget3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

Returns:



302
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 302

attach_function :rget3, :lcb_rget3, [T.by_ref, :pointer, CMDGETREPLICA.by_ref], ErrorT, :blocking => true

.run_loop(instance) ⇒ nil

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (nil)


834
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 834

attach_function :run_loop, :lcb_run_loop, [T.by_ref], :void, :blocking => true

.sched_enter(instance) ⇒ nil

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (nil)


591
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 591

attach_function :sched_enter, :lcb_sched_enter, [T.by_ref], :void, :blocking => true

.sched_fail(instance) ⇒ nil

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (nil)


609
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 609

attach_function :sched_fail, :lcb_sched_fail, [T.by_ref], :void, :blocking => true

.sched_flush(instance) ⇒ nil

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (nil)


618
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 618

attach_function :sched_flush, :lcb_sched_flush, [T.by_ref], :void, :blocking => true

.sched_leave(instance) ⇒ nil

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (nil)


600
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 600

attach_function :sched_leave, :lcb_sched_leave, [T.by_ref], :void, :blocking => true

.sdresult_next(resp, out, iter) ⇒ Integer

(Not documented)

Parameters:

Returns:

  • (Integer)


921
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 921

attach_function :sdresult_next, :lcb_sdresult_next, [RESPSUBDOC.by_ref, SDENTRY.by_ref, :pointer], :int, :blocking => true

.server_verbosity3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

Returns:



465
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 465

attach_function :server_verbosity3, :lcb_server_verbosity3, [T.by_ref, :pointer, CMDVERBOSITY.by_ref], ErrorT, :blocking => true

.server_versions3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDBASE)

Returns:



454
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 454

attach_function :server_versions3, :lcb_server_versions3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true

.set_bootstrap_callback(instance, callback) ⇒ Proc(callback_bootstrap_callback)

(Not documented)

Parameters:

  • instance (T)
  • callback (Proc(callback_bootstrap_callback))

Returns:

  • (Proc(callback_bootstrap_callback))


241
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 241

attach_function :set_bootstrap_callback, :lcb_set_bootstrap_callback, [T.by_ref, :bootstrap_callback], :bootstrap_callback

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))

Returns:

  • (nil)


518
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 518

attach_function :set_cookie, :lcb_set_cookie, [T.by_ref, :pointer], :void

.set_destroy_callback(t, destroy_callback) ⇒ Proc(callback_destroy_callback)

(Not documented)

Parameters:

  • t (T)
  • destroy_callback (Proc(callback_destroy_callback))

Returns:

  • (Proc(callback_destroy_callback))


637
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 637

attach_function :set_destroy_callback, :lcb_set_destroy_callback, [T.by_ref, :destroy_callback], :destroy_callback

.set_errmap_callback(t, errmap_callback) ⇒ Proc(callback_errmap_callback)

(Not documented)

Parameters:

  • t (T)
  • errmap_callback (Proc(callback_errmap_callback))

Returns:

  • (Proc(callback_errmap_callback))


212
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 212

attach_function :set_errmap_callback, :lcb_set_errmap_callback, [T.by_ref, :errmap_callback], :errmap_callback

.stats3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDBASE)

Returns:



443
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 443

attach_function :stats3, :lcb_stats3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true

.stop_loop(instance) ⇒ nil

(Not documented)

Parameters:

  • instance (T)

Returns:

  • (nil)


843
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 843

attach_function :stop_loop, :lcb_stop_loop, [T.by_ref], :void, :blocking => true

.store3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDSTORE)

Returns:



313
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 313

attach_function :store3, :lcb_store3, [T.by_ref, :pointer, CMDSTORE.by_ref], ErrorT, :blocking => true

.storedur3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDSTOREDUR)

Returns:



346
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 346

attach_function :storedur3, :lcb_storedur3, [T.by_ref, :pointer, CMDSTOREDUR.by_ref], ErrorT, :blocking => true

.strcbtype(cbtype) ⇒ String

(Not documented)

Parameters:

  • cbtype (Integer)

Returns:

  • (String)


280
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 280

attach_function :strcbtype, :lcb_strcbtype, [:int], :string

.strerror(instance, error) ⇒ String

(Not documented)

Parameters:

Returns:

  • (String)


192
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 192

attach_function :strerror, :lcb_strerror, [T.by_ref, ErrorT], :string

.subdoc3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDSUBDOC)

Returns:



910
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 910

attach_function :subdoc3, :lcb_subdoc3, [T.by_ref, :pointer, CMDSUBDOC.by_ref], ErrorT, :blocking => true

.supports_feature(n) ⇒ Integer

(Not documented)

Parameters:

  • n (Integer)

Returns:

  • (Integer)


807
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 807

attach_function :supports_feature, :lcb_supports_feature, [:int], :int, :blocking => true

.tick_nowait(instance) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)

Returns:



545
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 545

attach_function :tick_nowait, :lcb_tick_nowait, [T.by_ref], ErrorT, :blocking => true

.timings_callbacknil

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • timeunit (TimeunitT)
  • min (Integer)
  • max (Integer)
  • total (Integer)
  • maxtotal (Integer)

Returns:

  • (nil)


126
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 126

callback :timings_callback, [T.by_ref, :pointer, TimeunitT, :uint, :uint, :uint, :uint], :void

.touch3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDBASE)

Returns:



432
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 432

attach_function :touch3, :lcb_touch3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true

.unlock3(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)
  • cookie (FFI::Pointer(*Void))
  • cmd (CMDBASE)

Returns:



421
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 421

attach_function :unlock3, :lcb_unlock3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true

.view_cancel(instance, handle) ⇒ nil

(Not documented)

Parameters:

Returns:

  • (nil)


955
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 955

attach_function :view_cancel, :lcb_view_cancel, [T.by_ref, VIEWHANDLE.by_ref], :void, :blocking => true

.view_query(instance, cookie, cmd) ⇒ ErrorT

(Not documented)

Parameters:

Returns:



932
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 932

attach_function :view_query, :lcb_view_query, [T.by_ref, :pointer, CMDVIEWQUERY.by_ref], ErrorT, :blocking => true

.view_query_initcmd(vq, design, view, options, callback) ⇒ nil

(Not documented)

Parameters:

  • vq (CMDVIEWQUERY)
  • design (String)
  • view (String)
  • options (String)
  • callback (Proc(callback_viewquerycallback))

Returns:

  • (nil)


945
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 945

attach_function :view_query_initcmd, :lcb_view_query_initcmd, [CMDVIEWQUERY.by_ref, :string, :string, :string, :viewquerycallback], :void

.viewquerycallbacknil

(Not documented)

Parameters:

Returns:

  • (nil)


151
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 151

callback :viewquerycallback, [T.by_ref, :int, RESPVIEWQUERY.by_ref], :void

.wait(instance) ⇒ ErrorT

(Not documented)

Parameters:

  • instance (T)

Returns:



536
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 536

attach_function :wait, :lcb_wait, [T.by_ref], ErrorT, :blocking => true

.wait3(instance, flags) ⇒ nil

(Not documented)

Parameters:

Returns:

  • (nil)


555
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 555

attach_function :wait3, :lcb_wait3, [T.by_ref, WAITFLAGS], :void, :blocking => true