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
-
.bootstrap_callback ⇒ nil
(Not documented).
-
.breakout(instance) ⇒ nil
(Not documented).
-
.cancel_http_request(instance, request) ⇒ nil
(Not documented).
-
.cbflush3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.cntl(instance, mode, cmd, arg) ⇒ ErrorT
(Not documented).
-
.cntl_exists(ctl) ⇒ Integer
(Not documented).
-
.cntl_getu32(instance, cmd) ⇒ Integer
(Not documented).
-
.cntl_setu32(instance, cmd, arg) ⇒ ErrorT
(Not documented).
-
.cntl_string(instance, key, value) ⇒ ErrorT
(Not documented).
-
.connect(instance) ⇒ ErrorT
(Not documented).
-
.counter3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.create(instance, options) ⇒ ErrorT
(Not documented).
-
.destroy(instance) ⇒ nil
(Not documented).
-
.destroy_async(instance, arg) ⇒ nil
(Not documented).
-
.destroy_callback ⇒ nil
(Not documented).
-
.disable_timings(instance) ⇒ ErrorT
(Not documented).
-
.dump(instance, fp, flags) ⇒ nil
(Not documented).
-
.durability_validate(instance, persist_to, replicate_to, options) ⇒ ErrorT
(Not documented).
-
.enable_timings(instance) ⇒ ErrorT
(Not documented).
-
.endure3_ctxnew(instance, options, err) ⇒ MULTICMDCTX
(Not documented).
-
.errmap_callback ⇒ ErrorT
(Not documented).
-
.errmap_default(instance, code) ⇒ ErrorT
(Not documented).
-
.flush3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.fts_cancel(t, ftshandle) ⇒ nil
Cancel a full-text query in progress.
-
.fts_query(instance, cookie, cmd) ⇒ ErrorT
Issue a full-text query.
-
.ftscallback ⇒ nil
(Not documented).
-
.get3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.get_bootstrap_status(instance) ⇒ ErrorT
(Not documented).
-
.get_callback3(instance, cbtype) ⇒ Proc(callback_respcallback)
(Not documented).
-
.get_cookie(instance) ⇒ FFI::Pointer(*Void)
(Not documented).
-
.get_errtype(err) ⇒ Integer
(Not documented).
-
.get_keynode(instance, key, nkey) ⇒ String
(Not documented).
-
.get_mutation_token(instance, kb, errp) ⇒ MUTATIONTOKEN
(Not documented).
-
.get_node(instance, type, index) ⇒ String
(Not documented).
-
.get_num_nodes(instance) ⇒ Integer
(Not documented).
-
.get_num_replicas(instance) ⇒ Integer
(Not documented).
-
.get_server_list(instance) ⇒ FFI::Pointer(**CharS)
(Not documented).
-
.get_timings(instance, cookie, callback) ⇒ ErrorT
(Not documented).
-
.get_version(version) ⇒ String
(Not documented).
-
.histogram_callback ⇒ nil
(Not documented).
-
.histogram_create ⇒ HISTOGRAM
(Not documented).
-
.histogram_destroy(hg) ⇒ nil
(Not documented).
-
.histogram_print(hg, stream) ⇒ nil
(Not documented).
-
.histogram_read(hg, cookie, cb) ⇒ nil
(Not documented).
-
.histogram_record(hg, duration) ⇒ nil
(Not documented).
-
.http3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.install_callback3(instance, cbtype, cb) ⇒ Proc(callback_respcallback)
(Not documented).
-
.is_waiting(instance) ⇒ Integer
(Not documented).
-
.mem_alloc(size) ⇒ FFI::Pointer(*Void)
(Not documented).
-
.mem_free(ptr) ⇒ nil
(Not documented).
-
.n1p_encode(params, rc) ⇒ String
(Not documented).
-
.n1p_free(params) ⇒ nil
(Not documented).
-
.n1p_mkcmd(params, cmd) ⇒ ErrorT
(Not documented).
-
.n1p_namedparam(params, name, n_name, value, n_value) ⇒ ErrorT
(Not documented).
-
.n1p_new ⇒ N1QLPARAMS
(Not documented).
-
.n1p_posparam(params, value, n_value) ⇒ ErrorT
(Not documented).
-
.n1p_readonly(params, readonly) ⇒ ErrorT
(Not documented).
-
.n1p_reset(params) ⇒ nil
(Not documented).
-
.n1p_setconsistency(params, mode) ⇒ ErrorT
(Not documented).
-
.n1p_setconsistent_handle(params, instance) ⇒ ErrorT
(Not documented).
-
.n1p_setconsistent_token(params, keyspace, st) ⇒ ErrorT
(Not documented).
-
.n1p_setopt(params, name, n_name, value, n_value) ⇒ ErrorT
(Not documented).
-
.n1p_setquery(params, qstr, nqstr, type) ⇒ ErrorT
(Not documented).
-
.n1ql_cancel(instance, handle) ⇒ nil
(Not documented).
-
.n1ql_query(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.n1qlcallback ⇒ nil
(Not documented).
-
.nstime ⇒ Integer
(Not documented).
-
.observe3_ctxnew(instance) ⇒ MULTICMDCTX
(Not documented).
-
.observe_seqno3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.refresh_config(instance) ⇒ nil
(Not documented).
-
.remove3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.resp_get_mutation_token(cbtype, rb) ⇒ MUTATIONTOKEN
(Not documented).
-
.respcallback ⇒ nil
(Not documented).
-
.rget3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.run_loop(instance) ⇒ nil
(Not documented).
-
.sched_enter(instance) ⇒ nil
(Not documented).
-
.sched_fail(instance) ⇒ nil
(Not documented).
-
.sched_flush(instance) ⇒ nil
(Not documented).
-
.sched_leave(instance) ⇒ nil
(Not documented).
-
.sdresult_next(resp, out, iter) ⇒ Integer
(Not documented).
-
.server_verbosity3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.server_versions3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.set_bootstrap_callback(instance, callback) ⇒ Proc(callback_bootstrap_callback)
(Not documented).
-
.set_cookie(instance, cookie) ⇒ nil
(Not documented).
-
.set_destroy_callback(t, destroy_callback) ⇒ Proc(callback_destroy_callback)
(Not documented).
-
.set_errmap_callback(t, errmap_callback) ⇒ Proc(callback_errmap_callback)
(Not documented).
-
.stats3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.stop_loop(instance) ⇒ nil
(Not documented).
-
.store3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.storedur3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.strcbtype(cbtype) ⇒ String
(Not documented).
-
.strerror(instance, error) ⇒ String
(Not documented).
-
.subdoc3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.supports_feature(n) ⇒ Integer
(Not documented).
-
.tick_nowait(instance) ⇒ ErrorT
(Not documented).
-
.timings_callback ⇒ nil
(Not documented).
-
.touch3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.unlock3(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.view_cancel(instance, handle) ⇒ nil
(Not documented).
-
.view_query(instance, cookie, cmd) ⇒ ErrorT
(Not documented).
-
.view_query_initcmd(vq, design, view, options, callback) ⇒ nil
(Not documented).
-
.viewquerycallback ⇒ nil
(Not documented).
-
.wait(instance) ⇒ ErrorT
(Not documented).
-
.wait3(instance, flags) ⇒ nil
(Not documented).
Class Method Details
.bootstrap_callback ⇒ nil
(Not documented)
91 |
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 91 callback :bootstrap_callback, [T.by_ref, ErrorT], :void |
.breakout(instance) ⇒ nil
(Not documented)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
647 |
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 647 attach_function :destroy_async, :lcb_destroy_async, [T.by_ref, :pointer], :void, :blocking => true |
.destroy_callback ⇒ nil
(Not documented)
111 |
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 111 callback :destroy_callback, [:pointer], :void |
.disable_timings(instance) ⇒ ErrorT
(Not documented)
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)
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)
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)
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)
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_callback ⇒ ErrorT
(Not documented)
81 |
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 81 callback :errmap_callback, [T.by_ref, :ushort], ErrorT |
.errmap_default(instance, code) ⇒ ErrorT
(Not documented)
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)
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.
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
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 |
.ftscallback ⇒ nil
(Not documented)
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)
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)
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)
271 |
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 271 attach_function :get_callback3, :lcb_get_callback3, [T.by_ref, :int], :respcallback |
.get_cookie(instance) ⇒ FFI::Pointer(*Void)
(Not documented)
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)
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)
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)
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)
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)
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)
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)
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)
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)
798 |
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 798 attach_function :get_version, :lcb_get_version, [:pointer], :string, :blocking => true |
.histogram_callback ⇒ nil
(Not documented)
140 |
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 140 callback :histogram_callback, [:pointer, TimeunitT, :uint, :uint, :uint, :uint], :void |
.histogram_create ⇒ HISTOGRAM
(Not documented)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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_new ⇒ N1QLPARAMS
(Not documented)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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 |
.n1qlcallback ⇒ nil
(Not documented)
162 |
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 162 callback :n1qlcallback, [T.by_ref, :int, RESPN1QL.by_ref], :void |
.nstime ⇒ Integer
(Not documented)
851 |
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 851 attach_function :nstime, :lcb_nstime, [], :ulong_long, :blocking => true |
.observe3_ctxnew(instance) ⇒ MULTICMDCTX
(Not documented)
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)
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)
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)
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)
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 |
.respcallback ⇒ nil
(Not documented)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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 |
.set_cookie(instance, cookie) ⇒ nil
(Not documented)
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)
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)
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)
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)
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)
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)
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)
280 |
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 280 attach_function :strcbtype, :lcb_strcbtype, [:int], :string |
.strerror(instance, error) ⇒ String
(Not documented)
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)
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)
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)
545 |
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 545 attach_function :tick_nowait, :lcb_tick_nowait, [T.by_ref], ErrorT, :blocking => true |
.timings_callback ⇒ nil
(Not documented)
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)
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)
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)
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)
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)
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 |
.viewquerycallback ⇒ nil
(Not documented)
151 |
# File 'lib/libcouchbase/ext/libcouchbase.rb', line 151 callback :viewquerycallback, [T.by_ref, :int, RESPVIEWQUERY.by_ref], :void |