mt-libcouchbase 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/.gitmodules +3 -0
- data/.rspec +1 -0
- data/.travis.yml +38 -0
- data/Gemfile +4 -0
- data/LICENSE +24 -0
- data/README.md +445 -0
- data/Rakefile +76 -0
- data/ext/README.md +6 -0
- data/ext/Rakefile +19 -0
- data/ext/libcouchbase/.gitignore +132 -0
- data/ext/libcouchbase/CMakeLists.txt +455 -0
- data/ext/libcouchbase/CONTRIBUTING.md +105 -0
- data/ext/libcouchbase/LICENSE +202 -0
- data/ext/libcouchbase/README.markdown +195 -0
- data/ext/libcouchbase/RELEASE_NOTES.markdown +3523 -0
- data/ext/libcouchbase/cmake/Modules/ConfigureDtrace.cmake +52 -0
- data/ext/libcouchbase/cmake/Modules/CopyPDB.cmake +42 -0
- data/ext/libcouchbase/cmake/Modules/DistScript.cmake +17 -0
- data/ext/libcouchbase/cmake/Modules/DownloadLcbDep.cmake +18 -0
- data/ext/libcouchbase/cmake/Modules/FindCouchbaseHdrHistogram.cmake +15 -0
- data/ext/libcouchbase/cmake/Modules/FindCouchbaseLibev.cmake +73 -0
- data/ext/libcouchbase/cmake/Modules/FindCouchbaseLibevent.cmake +54 -0
- data/ext/libcouchbase/cmake/Modules/FindCouchbaseLibuv.cmake +57 -0
- data/ext/libcouchbase/cmake/Modules/FindProfiler.cmake +16 -0
- data/ext/libcouchbase/cmake/Modules/GenerateConfigDotH.cmake +49 -0
- data/ext/libcouchbase/cmake/Modules/GetLibcouchbaseFlags.cmake +142 -0
- data/ext/libcouchbase/cmake/Modules/GetPlatformCCInfo.cmake +45 -0
- data/ext/libcouchbase/cmake/Modules/GetVersionInfo.cmake +70 -0
- data/ext/libcouchbase/cmake/config-cmake.h.in +80 -0
- data/ext/libcouchbase/cmake/configure +355 -0
- data/ext/libcouchbase/cmake/defs.mk.in +6 -0
- data/ext/libcouchbase/cmake/dtrace-instr-link.pl +51 -0
- data/ext/libcouchbase/cmake/libcouchbase.stp.in +829 -0
- data/ext/libcouchbase/cmake/source_files.cmake +104 -0
- data/ext/libcouchbase/contrib/cJSON/cJSON.c +1022 -0
- data/ext/libcouchbase/contrib/cJSON/cJSON.h +158 -0
- data/ext/libcouchbase/contrib/cbsasl/CMakeLists.txt +25 -0
- data/ext/libcouchbase/contrib/cbsasl/COPYING +202 -0
- data/ext/libcouchbase/contrib/cbsasl/include/cbsasl/cbsasl.h +259 -0
- data/ext/libcouchbase/contrib/cbsasl/src/client.c +419 -0
- data/ext/libcouchbase/contrib/cbsasl/src/common.c +50 -0
- data/ext/libcouchbase/contrib/cbsasl/src/cram-md5/hmac.c +67 -0
- data/ext/libcouchbase/contrib/cbsasl/src/cram-md5/hmac.h +33 -0
- data/ext/libcouchbase/contrib/cbsasl/src/cram-md5/md5.c +296 -0
- data/ext/libcouchbase/contrib/cbsasl/src/cram-md5/md5.h +45 -0
- data/ext/libcouchbase/contrib/cbsasl/src/hash.c +573 -0
- data/ext/libcouchbase/contrib/cbsasl/src/hash.h +15 -0
- data/ext/libcouchbase/contrib/cbsasl/src/scram-sha/scram_utils.c +500 -0
- data/ext/libcouchbase/contrib/cbsasl/src/scram-sha/scram_utils.h +99 -0
- data/ext/libcouchbase/contrib/cbsasl/src/util.h +31 -0
- data/ext/libcouchbase/contrib/cliopts/CMakeLists.txt +2 -0
- data/ext/libcouchbase/contrib/cliopts/cliopts.c +938 -0
- data/ext/libcouchbase/contrib/cliopts/cliopts.h +610 -0
- data/ext/libcouchbase/contrib/genhash/genhash.c +371 -0
- data/ext/libcouchbase/contrib/genhash/genhash.h +241 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/CHANGES +157 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/CMakeLists.txt +252 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/CONTRIBUTORS +37 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/LICENSE +28 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/MINIFY.sh +15 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/README +435 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/cmake/internal_utils.cmake +227 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/gtest-death-test.h +294 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/gtest-message.h +250 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/gtest-param-test.h +1421 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/gtest-param-test.h.pump +487 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/gtest-printers.h +855 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/gtest-spi.h +232 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/gtest-test-part.h +179 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/gtest-typed-test.h +259 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/gtest.h +2291 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/gtest_pred_impl.h +358 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/gtest_prod.h +58 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-death-test-internal.h +319 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-filepath.h +206 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-internal.h +1158 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-linked_ptr.h +233 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-param-util-generated.h +5143 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-param-util-generated.h.pump +301 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-param-util.h +619 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-port.h +1947 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-string.h +167 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-tuple.h +1012 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-tuple.h.pump +339 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-type-util.h +3331 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/include/gtest/internal/gtest-type-util.h.pump +297 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/src/gtest-all.cc +48 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/src/gtest-death-test.cc +1344 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/src/gtest-filepath.cc +382 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/src/gtest-internal-inl.h +1218 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/src/gtest-port.cc +805 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/src/gtest-printers.cc +363 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/src/gtest-test-part.cc +110 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/src/gtest-typed-test.cc +110 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/src/gtest.cc +5015 -0
- data/ext/libcouchbase/contrib/gtest-1.7.0/src/gtest_main.cc +38 -0
- data/ext/libcouchbase/contrib/http_parser/LICENSE-MIT +23 -0
- data/ext/libcouchbase/contrib/http_parser/README.md +178 -0
- data/ext/libcouchbase/contrib/http_parser/http_parser.c +2060 -0
- data/ext/libcouchbase/contrib/http_parser/http_parser.h +321 -0
- data/ext/libcouchbase/contrib/jsonsl/LICENSE +20 -0
- data/ext/libcouchbase/contrib/jsonsl/jsonsl.c +1452 -0
- data/ext/libcouchbase/contrib/jsonsl/jsonsl.h +971 -0
- data/ext/libcouchbase/contrib/lcb-jsoncpp/CMakeLists.txt +6 -0
- data/ext/libcouchbase/contrib/lcb-jsoncpp/LICENSE +55 -0
- data/ext/libcouchbase/contrib/lcb-jsoncpp/lcb-jsoncpp-forwards.h +255 -0
- data/ext/libcouchbase/contrib/lcb-jsoncpp/lcb-jsoncpp.cpp +4893 -0
- data/ext/libcouchbase/contrib/lcb-jsoncpp/lcb-jsoncpp.h +1961 -0
- data/ext/libcouchbase/contrib/snappy/CMakeLists.txt +7 -0
- data/ext/libcouchbase/contrib/snappy/COPYING +28 -0
- data/ext/libcouchbase/contrib/snappy/snappy-c.cc +90 -0
- data/ext/libcouchbase/contrib/snappy/snappy-c.h +138 -0
- data/ext/libcouchbase/contrib/snappy/snappy-internal.h +150 -0
- data/ext/libcouchbase/contrib/snappy/snappy-lcb-msvc.h +5 -0
- data/ext/libcouchbase/contrib/snappy/snappy-sinksource.cc +75 -0
- data/ext/libcouchbase/contrib/snappy/snappy-sinksource.h +137 -0
- data/ext/libcouchbase/contrib/snappy/snappy-stubs-internal.cc +42 -0
- data/ext/libcouchbase/contrib/snappy/snappy-stubs-internal.h +491 -0
- data/ext/libcouchbase/contrib/snappy/snappy-stubs-public.h +100 -0
- data/ext/libcouchbase/contrib/snappy/snappy.cc +1312 -0
- data/ext/libcouchbase/contrib/snappy/snappy.h +184 -0
- data/ext/libcouchbase/contrib/win32-defs/iocpdefs.h +133 -0
- data/ext/libcouchbase/contrib/win32-defs/mingwdefs.h +4396 -0
- data/ext/libcouchbase/contrib/win32-defs/win_stdint.h +258 -0
- data/ext/libcouchbase/doc/Doxyfile +2495 -0
- data/ext/libcouchbase/doc/DoxygenLayout.xml +109 -0
- data/ext/libcouchbase/doc/Makefile +44 -0
- data/ext/libcouchbase/doc/apiattr.h +117 -0
- data/ext/libcouchbase/doc/cbc-n1qlback.markdown +88 -0
- data/ext/libcouchbase/doc/cbc-pillowfight.markdown +296 -0
- data/ext/libcouchbase/doc/cbc-subdoc.markdown +299 -0
- data/ext/libcouchbase/doc/cbc.markdown +763 -0
- data/ext/libcouchbase/doc/cbcrc.markdown +52 -0
- data/ext/libcouchbase/doc/common-additional-options.markdown +82 -0
- data/ext/libcouchbase/doc/common-options.markdown +71 -0
- data/ext/libcouchbase/doc/environment.h +93 -0
- data/ext/libcouchbase/doc/example/threads.c +77 -0
- data/ext/libcouchbase/doc/footer.html +22 -0
- data/ext/libcouchbase/doc/genman.sh +25 -0
- data/ext/libcouchbase/doc/header.html +52 -0
- data/ext/libcouchbase/doc/intro.h +130 -0
- data/ext/libcouchbase/doc/mainpage.h +136 -0
- data/ext/libcouchbase/doc/man/cbc-admin.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-bucket-create.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-bucket-delete.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-cat.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-connstr.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-cp.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-create.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-decr.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-flush.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-hash.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-incr.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-lock.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-mcflush.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-mcversion.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-n1ql.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-n1qlback.1 +198 -0
- data/ext/libcouchbase/doc/man/cbc-observe.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-pillowfight.1 +499 -0
- data/ext/libcouchbase/doc/man/cbc-ping.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-rm.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-role-list.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-stats.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-subdoc.1 +494 -0
- data/ext/libcouchbase/doc/man/cbc-unlock.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-user-delete.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-user-list.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-user-upsert.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-verbosity.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-version.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-view.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc-watch.1 +1 -0
- data/ext/libcouchbase/doc/man/cbc.1 +1035 -0
- data/ext/libcouchbase/doc/man/cbcrc.4 +71 -0
- data/ext/libcouchbase/doc/style.css +1162 -0
- data/ext/libcouchbase/example/CMakeLists.txt +52 -0
- data/ext/libcouchbase/example/README.markdown +47 -0
- data/ext/libcouchbase/example/analytics/.gitignore +1 -0
- data/ext/libcouchbase/example/analytics/analytics.c +158 -0
- data/ext/libcouchbase/example/analytics/build-queries.rb +34 -0
- data/ext/libcouchbase/example/analytics/cJSON.c +1 -0
- data/ext/libcouchbase/example/analytics/cJSON.h +1 -0
- data/ext/libcouchbase/example/analytics/queries/00-show-dataverse.json +5 -0
- data/ext/libcouchbase/example/analytics/queries/01-setup-dataset-breweries.json +6 -0
- data/ext/libcouchbase/example/analytics/queries/02-setup-dataset-beers.json +6 -0
- data/ext/libcouchbase/example/analytics/queries/03-initiate-shadow.json +6 -0
- data/ext/libcouchbase/example/analytics/queries/04-list-datasets.json +7 -0
- data/ext/libcouchbase/example/analytics/queries/05-count-breweries.json +5 -0
- data/ext/libcouchbase/example/analytics/queries/06-first-brewery.json +6 -0
- data/ext/libcouchbase/example/analytics/queries/07-key-based-lookup.json +6 -0
- data/ext/libcouchbase/example/analytics/queries/08-exact-match-lookup.json +7 -0
- data/ext/libcouchbase/example/analytics/queries/09-exact-match-lookup-different-shape.json +6 -0
- data/ext/libcouchbase/example/analytics/queries/10-other-query-filters.json +6 -0
- data/ext/libcouchbase/example/analytics/queries/11-equijoin.json +9 -0
- data/ext/libcouchbase/example/analytics/queries/12-equijoin-select-star.json +10 -0
- data/ext/libcouchbase/example/analytics/queries/13-ansi-join.json +8 -0
- data/ext/libcouchbase/example/analytics/queries/14-join-select-values.json +8 -0
- data/ext/libcouchbase/example/analytics/queries/15-nested-outer-join.json +7 -0
- data/ext/libcouchbase/example/analytics/queries/16-theta-join.json +8 -0
- data/ext/libcouchbase/example/analytics/queries/17-existential-quantification.json +9 -0
- data/ext/libcouchbase/example/analytics/queries/18-universal-quantification.json +7 -0
- data/ext/libcouchbase/example/analytics/queries/19-simple-aggregation.json +6 -0
- data/ext/libcouchbase/example/analytics/queries/20-simple-aggregation-unwrapped-value.json +6 -0
- data/ext/libcouchbase/example/analytics/queries/21-simple-aggregation-explicit.json +6 -0
- data/ext/libcouchbase/example/analytics/queries/22-grouping-and-aggregation.json +6 -0
- data/ext/libcouchbase/example/analytics/queries/23-grouping-and-aggregation-with-hint.json +7 -0
- data/ext/libcouchbase/example/analytics/queries/24-grouping-and-limits.json +7 -0
- data/ext/libcouchbase/example/analytics/queries/25-named-parameters.json +7 -0
- data/ext/libcouchbase/example/analytics/queries/26-positional-parameters.json +7 -0
- data/ext/libcouchbase/example/analytics/queries.h +113 -0
- data/ext/libcouchbase/example/crypto/.gitignore +2 -0
- data/ext/libcouchbase/example/crypto/Makefile +13 -0
- data/ext/libcouchbase/example/crypto/common_provider.c +26 -0
- data/ext/libcouchbase/example/crypto/common_provider.h +33 -0
- data/ext/libcouchbase/example/crypto/openssl_symmetric_decrypt.c +144 -0
- data/ext/libcouchbase/example/crypto/openssl_symmetric_encrypt.c +146 -0
- data/ext/libcouchbase/example/crypto/openssl_symmetric_provider.c +271 -0
- data/ext/libcouchbase/example/crypto/openssl_symmetric_provider.h +29 -0
- data/ext/libcouchbase/example/db/db.c +171 -0
- data/ext/libcouchbase/example/db/vb.c +227 -0
- data/ext/libcouchbase/example/fts/.gitignore +1 -0
- data/ext/libcouchbase/example/fts/build-queries.rb +33 -0
- data/ext/libcouchbase/example/fts/fts.c +142 -0
- data/ext/libcouchbase/example/fts/queries/00-simple-text-query.json +12 -0
- data/ext/libcouchbase/example/fts/queries/01-simple-text-query-on-non-default-index.json +9 -0
- data/ext/libcouchbase/example/fts/queries/02-simple-text-query-on-stored-field.json +13 -0
- data/ext/libcouchbase/example/fts/queries/03-match-query-with-facet.json +19 -0
- data/ext/libcouchbase/example/fts/queries/04-docid-query.json +11 -0
- data/ext/libcouchbase/example/fts/queries/05-unanalyzed-term-query-with-fuzziness-level-of-0.json +13 -0
- data/ext/libcouchbase/example/fts/queries/06-unanalyzed-term-query-with-fuzziness-level-of-2.json +14 -0
- data/ext/libcouchbase/example/fts/queries/07-match-phrase-query.json +13 -0
- data/ext/libcouchbase/example/fts/queries/08-phrase-query.json +16 -0
- data/ext/libcouchbase/example/fts/queries/09-query-string-query.json +9 -0
- data/ext/libcouchbase/example/fts/queries/10-conjunction-query.json +21 -0
- data/ext/libcouchbase/example/fts/queries/11-wild-card-query.json +13 -0
- data/ext/libcouchbase/example/fts/queries/12-numeric-range-query.json +11 -0
- data/ext/libcouchbase/example/fts/queries/13-regexp-query.json +13 -0
- data/ext/libcouchbase/example/fts/queries.h +61 -0
- data/ext/libcouchbase/example/instancepool/main.cc +112 -0
- data/ext/libcouchbase/example/instancepool/pool.cc +102 -0
- data/ext/libcouchbase/example/instancepool/pool.h +69 -0
- data/ext/libcouchbase/example/libeventdirect/main.c +222 -0
- data/ext/libcouchbase/example/mcc/mcc.cc +246 -0
- data/ext/libcouchbase/example/minimal/.gitignore +1 -0
- data/ext/libcouchbase/example/minimal/minimal.c +132 -0
- data/ext/libcouchbase/example/minimal/query.c +185 -0
- data/ext/libcouchbase/example/observe/durability.c +102 -0
- data/ext/libcouchbase/example/observe/observe.c +159 -0
- data/ext/libcouchbase/example/subdoc/subdoc-multi.cc +143 -0
- data/ext/libcouchbase/example/subdoc/subdoc-simple.cc +201 -0
- data/ext/libcouchbase/example/subdoc/subdoc-xattrs.c +286 -0
- data/ext/libcouchbase/example/tick/tick.c +119 -0
- data/ext/libcouchbase/example/tracing/.gitignore +2 -0
- data/ext/libcouchbase/example/tracing/Makefile +8 -0
- data/ext/libcouchbase/example/tracing/cJSON.c +1 -0
- data/ext/libcouchbase/example/tracing/cJSON.h +1 -0
- data/ext/libcouchbase/example/tracing/tracing.c +439 -0
- data/ext/libcouchbase/example/tracing/views.c +444 -0
- data/ext/libcouchbase/example/users/README +48 -0
- data/ext/libcouchbase/example/users/users.c +147 -0
- data/ext/libcouchbase/example/views/views-example.cc +83 -0
- data/ext/libcouchbase/include/libcouchbase/_cxxwrap.h +150 -0
- data/ext/libcouchbase/include/libcouchbase/api-legacy.h +1689 -0
- data/ext/libcouchbase/include/libcouchbase/api3.h +2 -0
- data/ext/libcouchbase/include/libcouchbase/assert.h +44 -0
- data/ext/libcouchbase/include/libcouchbase/auth.h +297 -0
- data/ext/libcouchbase/include/libcouchbase/cbft.h +151 -0
- data/ext/libcouchbase/include/libcouchbase/cntl-private.h +319 -0
- data/ext/libcouchbase/include/libcouchbase/cntl.h +1418 -0
- data/ext/libcouchbase/include/libcouchbase/configuration.h.in +29 -0
- data/ext/libcouchbase/include/libcouchbase/couchbase.h +4089 -0
- data/ext/libcouchbase/include/libcouchbase/crypto.h +306 -0
- data/ext/libcouchbase/include/libcouchbase/deprecated.h +312 -0
- data/ext/libcouchbase/include/libcouchbase/error.h +680 -0
- data/ext/libcouchbase/include/libcouchbase/http.h +1 -0
- data/ext/libcouchbase/include/libcouchbase/iops.h +1053 -0
- data/ext/libcouchbase/include/libcouchbase/ixmgmt.h +263 -0
- data/ext/libcouchbase/include/libcouchbase/kvbuf.h +137 -0
- data/ext/libcouchbase/include/libcouchbase/metrics.h +79 -0
- data/ext/libcouchbase/include/libcouchbase/n1ql.h +539 -0
- data/ext/libcouchbase/include/libcouchbase/pktfwd.h +270 -0
- data/ext/libcouchbase/include/libcouchbase/plugins/io/bsdio-inl.c +370 -0
- data/ext/libcouchbase/include/libcouchbase/plugins/io/wsaerr-inl.c +76 -0
- data/ext/libcouchbase/include/libcouchbase/plugins/io/wsaerr.h +199 -0
- data/ext/libcouchbase/include/libcouchbase/subdoc.h +347 -0
- data/ext/libcouchbase/include/libcouchbase/sysdefs.h +98 -0
- data/ext/libcouchbase/include/libcouchbase/tracing.h +437 -0
- data/ext/libcouchbase/include/libcouchbase/vbucket.h +680 -0
- data/ext/libcouchbase/include/libcouchbase/views.h +357 -0
- data/ext/libcouchbase/include/libcouchbase/visibility.h +66 -0
- data/ext/libcouchbase/include/memcached/COPYING +30 -0
- data/ext/libcouchbase/include/memcached/README +10 -0
- data/ext/libcouchbase/include/memcached/protocol_binary.h +885 -0
- data/ext/libcouchbase/packaging/README +7 -0
- data/ext/libcouchbase/packaging/abicheck/.gitignore +4 -0
- data/ext/libcouchbase/packaging/abicheck/Makefile +17 -0
- data/ext/libcouchbase/packaging/abicheck/README.md +27 -0
- data/ext/libcouchbase/packaging/abicheck/template.xml +3 -0
- data/ext/libcouchbase/packaging/deb/compat +1 -0
- data/ext/libcouchbase/packaging/deb/control +72 -0
- data/ext/libcouchbase/packaging/deb/copyright +10 -0
- data/ext/libcouchbase/packaging/deb/libcouchbase-dev.docs +3 -0
- data/ext/libcouchbase/packaging/deb/package.mk +31 -0
- data/ext/libcouchbase/packaging/deb/rules +46 -0
- data/ext/libcouchbase/packaging/deb/source/format +1 -0
- data/ext/libcouchbase/packaging/distinfo/README +1 -0
- data/ext/libcouchbase/packaging/distinfo/distinfo.cmake.in +4 -0
- data/ext/libcouchbase/packaging/dllversion.rc.in +39 -0
- data/ext/libcouchbase/packaging/libcouchbase.pc.in +10 -0
- data/ext/libcouchbase/packaging/nuget/libcouchbase.autopkg +76 -0
- data/ext/libcouchbase/packaging/parse-git-describe.pl +166 -0
- data/ext/libcouchbase/packaging/rpm/libcouchbase.spec.in +101 -0
- data/ext/libcouchbase/packaging/rpm/package.mk +40 -0
- data/ext/libcouchbase/plugins/io/iocp/CMakeLists.txt +9 -0
- data/ext/libcouchbase/plugins/io/iocp/iocp_iops.c +467 -0
- data/ext/libcouchbase/plugins/io/iocp/iocp_iops.h +217 -0
- data/ext/libcouchbase/plugins/io/iocp/iocp_loop.c +295 -0
- data/ext/libcouchbase/plugins/io/iocp/iocp_timer.c +79 -0
- data/ext/libcouchbase/plugins/io/iocp/iocp_util.c +229 -0
- data/ext/libcouchbase/plugins/io/libev/CMakeLists.txt +31 -0
- data/ext/libcouchbase/plugins/io/libev/libev_io_opts.h +66 -0
- data/ext/libcouchbase/plugins/io/libev/plugin-libev.c +289 -0
- data/ext/libcouchbase/plugins/io/libevent/CMakeLists.txt +31 -0
- data/ext/libcouchbase/plugins/io/libevent/libevent_io_opts.h +67 -0
- data/ext/libcouchbase/plugins/io/libevent/plugin-libevent.c +292 -0
- data/ext/libcouchbase/plugins/io/libuv/CMakeLists.txt +44 -0
- data/ext/libcouchbase/plugins/io/libuv/libuv_compat.h +218 -0
- data/ext/libcouchbase/plugins/io/libuv/libuv_io_opts.h +118 -0
- data/ext/libcouchbase/plugins/io/libuv/plugin-internal.h +155 -0
- data/ext/libcouchbase/plugins/io/libuv/plugin-libuv.c +709 -0
- data/ext/libcouchbase/plugins/io/select/CMakeLists.txt +13 -0
- data/ext/libcouchbase/plugins/io/select/plugin-select.c +451 -0
- data/ext/libcouchbase/plugins/io/select/select_io_opts.h +39 -0
- data/ext/libcouchbase/src/README.md +101 -0
- data/ext/libcouchbase/src/aspend.h +105 -0
- data/ext/libcouchbase/src/auth-priv.h +85 -0
- data/ext/libcouchbase/src/auth.cc +146 -0
- data/ext/libcouchbase/src/bootstrap.cc +263 -0
- data/ext/libcouchbase/src/bootstrap.h +149 -0
- data/ext/libcouchbase/src/bucketconfig/bc_cccp.cc +450 -0
- data/ext/libcouchbase/src/bucketconfig/bc_file.cc +281 -0
- data/ext/libcouchbase/src/bucketconfig/bc_http.cc +527 -0
- data/ext/libcouchbase/src/bucketconfig/bc_http.h +107 -0
- data/ext/libcouchbase/src/bucketconfig/bc_static.cc +150 -0
- data/ext/libcouchbase/src/bucketconfig/clconfig.h +700 -0
- data/ext/libcouchbase/src/bucketconfig/confmon.cc +403 -0
- data/ext/libcouchbase/src/callbacks.c +380 -0
- data/ext/libcouchbase/src/cbft.cc +253 -0
- data/ext/libcouchbase/src/cntl.cc +1057 -0
- data/ext/libcouchbase/src/config_static.h +176 -0
- data/ext/libcouchbase/src/connspec.cc +555 -0
- data/ext/libcouchbase/src/connspec.h +155 -0
- data/ext/libcouchbase/src/crypto.cc +399 -0
- data/ext/libcouchbase/src/ctx-log-inl.h +44 -0
- data/ext/libcouchbase/src/dns-srv.cc +146 -0
- data/ext/libcouchbase/src/dump.cc +103 -0
- data/ext/libcouchbase/src/errmap.cc +173 -0
- data/ext/libcouchbase/src/errmap.h +271 -0
- data/ext/libcouchbase/src/getconfig.cc +72 -0
- data/ext/libcouchbase/src/gethrtime.c +109 -0
- data/ext/libcouchbase/src/handler.cc +1101 -0
- data/ext/libcouchbase/src/hashtable.c +75 -0
- data/ext/libcouchbase/src/hdr_timings.c +92 -0
- data/ext/libcouchbase/src/hostlist.cc +293 -0
- data/ext/libcouchbase/src/hostlist.h +160 -0
- data/ext/libcouchbase/src/http/http-priv.h +326 -0
- data/ext/libcouchbase/src/http/http.cc +672 -0
- data/ext/libcouchbase/src/http/http.h +1 -0
- data/ext/libcouchbase/src/http/http_io.cc +316 -0
- data/ext/libcouchbase/src/instance.cc +917 -0
- data/ext/libcouchbase/src/internal.h +285 -0
- data/ext/libcouchbase/src/iofactory.c +575 -0
- data/ext/libcouchbase/src/jsparse/parser.cc +445 -0
- data/ext/libcouchbase/src/jsparse/parser.h +159 -0
- data/ext/libcouchbase/src/lcbht/lcbht.cc +177 -0
- data/ext/libcouchbase/src/lcbht/lcbht.h +210 -0
- data/ext/libcouchbase/src/lcbio/connect.cc +603 -0
- data/ext/libcouchbase/src/lcbio/connect.h +400 -0
- data/ext/libcouchbase/src/lcbio/ctx.c +658 -0
- data/ext/libcouchbase/src/lcbio/ctx.h +405 -0
- data/ext/libcouchbase/src/lcbio/iotable.c +290 -0
- data/ext/libcouchbase/src/lcbio/iotable.h +169 -0
- data/ext/libcouchbase/src/lcbio/ioutils.cc +356 -0
- data/ext/libcouchbase/src/lcbio/ioutils.h +144 -0
- data/ext/libcouchbase/src/lcbio/lcbio.h +51 -0
- data/ext/libcouchbase/src/lcbio/manager.cc +579 -0
- data/ext/libcouchbase/src/lcbio/manager.h +195 -0
- data/ext/libcouchbase/src/lcbio/protoctx.c +84 -0
- data/ext/libcouchbase/src/lcbio/rw-inl.h +137 -0
- data/ext/libcouchbase/src/lcbio/ssl.h +159 -0
- data/ext/libcouchbase/src/lcbio/timer-cxx.h +87 -0
- data/ext/libcouchbase/src/lcbio/timer-ng.h +179 -0
- data/ext/libcouchbase/src/lcbio/timer.c +132 -0
- data/ext/libcouchbase/src/legacy.c +431 -0
- data/ext/libcouchbase/src/list.c +144 -0
- data/ext/libcouchbase/src/list.h +127 -0
- data/ext/libcouchbase/src/logging.c +244 -0
- data/ext/libcouchbase/src/logging.h +88 -0
- data/ext/libcouchbase/src/mc/compress.cc +171 -0
- data/ext/libcouchbase/src/mc/compress.h +56 -0
- data/ext/libcouchbase/src/mc/forward.c +186 -0
- data/ext/libcouchbase/src/mc/forward.h +90 -0
- data/ext/libcouchbase/src/mc/iovcursor-inl.h +279 -0
- data/ext/libcouchbase/src/mc/iovcursor.h +66 -0
- data/ext/libcouchbase/src/mc/mcreq-flush-inl.h +115 -0
- data/ext/libcouchbase/src/mc/mcreq.c +983 -0
- data/ext/libcouchbase/src/mc/mcreq.h +1015 -0
- data/ext/libcouchbase/src/mcserver/mcserver.cc +1055 -0
- data/ext/libcouchbase/src/mcserver/mcserver.h +221 -0
- data/ext/libcouchbase/src/mcserver/negotiate.cc +757 -0
- data/ext/libcouchbase/src/mcserver/negotiate.h +128 -0
- data/ext/libcouchbase/src/mctx-helper.h +62 -0
- data/ext/libcouchbase/src/metrics.cc +132 -0
- data/ext/libcouchbase/src/n1ql/ixmgmt.cc +857 -0
- data/ext/libcouchbase/src/n1ql/n1ql-internal.h +22 -0
- data/ext/libcouchbase/src/n1ql/n1ql.cc +830 -0
- data/ext/libcouchbase/src/n1ql/params.cc +260 -0
- data/ext/libcouchbase/src/netbuf/netbuf-defs.h +89 -0
- data/ext/libcouchbase/src/netbuf/netbuf-mblock.h +235 -0
- data/ext/libcouchbase/src/netbuf/netbuf.c +929 -0
- data/ext/libcouchbase/src/netbuf/netbuf.h +452 -0
- data/ext/libcouchbase/src/newconfig.cc +365 -0
- data/ext/libcouchbase/src/nodeinfo.cc +184 -0
- data/ext/libcouchbase/src/operations/cbflush.cc +63 -0
- data/ext/libcouchbase/src/operations/counter.cc +117 -0
- data/ext/libcouchbase/src/operations/durability-cas.cc +251 -0
- data/ext/libcouchbase/src/operations/durability-seqno.cc +170 -0
- data/ext/libcouchbase/src/operations/durability.cc +668 -0
- data/ext/libcouchbase/src/operations/durability_internal.h +306 -0
- data/ext/libcouchbase/src/operations/get.cc +409 -0
- data/ext/libcouchbase/src/operations/observe-seqno.cc +94 -0
- data/ext/libcouchbase/src/operations/observe.cc +367 -0
- data/ext/libcouchbase/src/operations/ping.cc +496 -0
- data/ext/libcouchbase/src/operations/pktfwd.cc +86 -0
- data/ext/libcouchbase/src/operations/remove.cc +84 -0
- data/ext/libcouchbase/src/operations/stats.cc +459 -0
- data/ext/libcouchbase/src/operations/store.cc +358 -0
- data/ext/libcouchbase/src/operations/subdoc.cc +614 -0
- data/ext/libcouchbase/src/operations/touch.cc +84 -0
- data/ext/libcouchbase/src/packetutils.h +388 -0
- data/ext/libcouchbase/src/probes.d +182 -0
- data/ext/libcouchbase/src/rdb/bigalloc.c +225 -0
- data/ext/libcouchbase/src/rdb/bigalloc.h +73 -0
- data/ext/libcouchbase/src/rdb/chunkalloc.c +174 -0
- data/ext/libcouchbase/src/rdb/libcalloc.c +94 -0
- data/ext/libcouchbase/src/rdb/rope.c +419 -0
- data/ext/libcouchbase/src/rdb/rope.h +488 -0
- data/ext/libcouchbase/src/retrychk.cc +113 -0
- data/ext/libcouchbase/src/retryq.cc +458 -0
- data/ext/libcouchbase/src/retryq.h +170 -0
- data/ext/libcouchbase/src/ringbuffer.c +442 -0
- data/ext/libcouchbase/src/ringbuffer.h +100 -0
- data/ext/libcouchbase/src/rnd.cc +61 -0
- data/ext/libcouchbase/src/rnd.h +39 -0
- data/ext/libcouchbase/src/settings.c +125 -0
- data/ext/libcouchbase/src/settings.h +273 -0
- data/ext/libcouchbase/src/sllist-inl.h +197 -0
- data/ext/libcouchbase/src/sllist.h +76 -0
- data/ext/libcouchbase/src/ssl/CMakeLists.txt +11 -0
- data/ext/libcouchbase/src/ssl/ssl_c.c +442 -0
- data/ext/libcouchbase/src/ssl/ssl_common.c +478 -0
- data/ext/libcouchbase/src/ssl/ssl_e.c +421 -0
- data/ext/libcouchbase/src/ssl/ssl_iot_common.h +182 -0
- data/ext/libcouchbase/src/strcodecs/base64.c +307 -0
- data/ext/libcouchbase/src/strcodecs/strcodecs.h +302 -0
- data/ext/libcouchbase/src/timings.c +207 -0
- data/ext/libcouchbase/src/trace.h +117 -0
- data/ext/libcouchbase/src/tracing/span.cc +421 -0
- data/ext/libcouchbase/src/tracing/threshold_logging_tracer.cc +213 -0
- data/ext/libcouchbase/src/tracing/tracer.cc +53 -0
- data/ext/libcouchbase/src/tracing/tracing-internal.h +198 -0
- data/ext/libcouchbase/src/utilities.c +176 -0
- data/ext/libcouchbase/src/vbucket/CMakeLists.txt +2 -0
- data/ext/libcouchbase/src/vbucket/aliases.h +35 -0
- data/ext/libcouchbase/src/vbucket/crc32.h +83 -0
- data/ext/libcouchbase/src/vbucket/hash.h +30 -0
- data/ext/libcouchbase/src/vbucket/json-inl.h +112 -0
- data/ext/libcouchbase/src/vbucket/ketama.c +66 -0
- data/ext/libcouchbase/src/vbucket/rfc1321/global.h +32 -0
- data/ext/libcouchbase/src/vbucket/rfc1321/md5.h +35 -0
- data/ext/libcouchbase/src/vbucket/rfc1321/md5c-inl.h +335 -0
- data/ext/libcouchbase/src/vbucket/vbucket.c +1735 -0
- data/ext/libcouchbase/src/views/docreq.cc +213 -0
- data/ext/libcouchbase/src/views/docreq.h +94 -0
- data/ext/libcouchbase/src/views/viewreq.cc +381 -0
- data/ext/libcouchbase/src/views/viewreq.h +87 -0
- data/ext/libcouchbase/src/wait.cc +156 -0
- data/ext/libcouchbase/tests/CMakeLists.txt +149 -0
- data/ext/libcouchbase/tests/basic/t_base64.cc +109 -0
- data/ext/libcouchbase/tests/basic/t_ccbc103.cc +95 -0
- data/ext/libcouchbase/tests/basic/t_connstr.cc +456 -0
- data/ext/libcouchbase/tests/basic/t_creds.cc +96 -0
- data/ext/libcouchbase/tests/basic/t_ctlcodes.cc +92 -0
- data/ext/libcouchbase/tests/basic/t_host.cc +210 -0
- data/ext/libcouchbase/tests/basic/t_jsparse.cc +82 -0
- data/ext/libcouchbase/tests/basic/t_jsparse.h +589 -0
- data/ext/libcouchbase/tests/basic/t_list.cc +155 -0
- data/ext/libcouchbase/tests/basic/t_logger.cc +65 -0
- data/ext/libcouchbase/tests/basic/t_misc.cc +24 -0
- data/ext/libcouchbase/tests/basic/t_n1qlstrings.cc +17 -0
- data/ext/libcouchbase/tests/basic/t_netbuf.cc +446 -0
- data/ext/libcouchbase/tests/basic/t_packet.cc +215 -0
- data/ext/libcouchbase/tests/basic/t_ringbuffer.cc +278 -0
- data/ext/libcouchbase/tests/basic/t_scram.cc +514 -0
- data/ext/libcouchbase/tests/basic/t_slist.cc +429 -0
- data/ext/libcouchbase/tests/basic/t_strerror.cc +64 -0
- data/ext/libcouchbase/tests/basic/t_urlencode.cc +132 -0
- data/ext/libcouchbase/tests/check-all.cc +612 -0
- data/ext/libcouchbase/tests/htparse/t_basic.cc +173 -0
- data/ext/libcouchbase/tests/ioserver/connection.cc +166 -0
- data/ext/libcouchbase/tests/ioserver/future.cc +50 -0
- data/ext/libcouchbase/tests/ioserver/ioserver.cc +117 -0
- data/ext/libcouchbase/tests/ioserver/ioserver.h +478 -0
- data/ext/libcouchbase/tests/ioserver/socket.cc +88 -0
- data/ext/libcouchbase/tests/ioserver/ssl_connection.cc +145 -0
- data/ext/libcouchbase/tests/ioserver/threads-pthreads.cc +119 -0
- data/ext/libcouchbase/tests/ioserver/threads-win32.cc +117 -0
- data/ext/libcouchbase/tests/ioserver/threads.h +66 -0
- data/ext/libcouchbase/tests/iotests/iotests.h +15 -0
- data/ext/libcouchbase/tests/iotests/mock-environment.cc +632 -0
- data/ext/libcouchbase/tests/iotests/mock-environment.h +480 -0
- data/ext/libcouchbase/tests/iotests/mock-unit-test.cc +67 -0
- data/ext/libcouchbase/tests/iotests/mock-unit-test.h +61 -0
- data/ext/libcouchbase/tests/iotests/serverparams.h +76 -0
- data/ext/libcouchbase/tests/iotests/t_arithmetic.cc +143 -0
- data/ext/libcouchbase/tests/iotests/t_behavior.cc +220 -0
- data/ext/libcouchbase/tests/iotests/t_configcache.cc +117 -0
- data/ext/libcouchbase/tests/iotests/t_confmon.cc +223 -0
- data/ext/libcouchbase/tests/iotests/t_durability.cc +1108 -0
- data/ext/libcouchbase/tests/iotests/t_eerrs.cc +121 -0
- data/ext/libcouchbase/tests/iotests/t_errmap.cc +181 -0
- data/ext/libcouchbase/tests/iotests/t_forward.cc +118 -0
- data/ext/libcouchbase/tests/iotests/t_get.cc +512 -0
- data/ext/libcouchbase/tests/iotests/t_http.cc +438 -0
- data/ext/libcouchbase/tests/iotests/t_iops.cc +175 -0
- data/ext/libcouchbase/tests/iotests/t_lock.cc +274 -0
- data/ext/libcouchbase/tests/iotests/t_misc.cc +777 -0
- data/ext/libcouchbase/tests/iotests/t_mutate.cc +609 -0
- data/ext/libcouchbase/tests/iotests/t_n1ql.cc +270 -0
- data/ext/libcouchbase/tests/iotests/t_netfail.cc +778 -0
- data/ext/libcouchbase/tests/iotests/t_obseqno.cc +156 -0
- data/ext/libcouchbase/tests/iotests/t_regression.cc +321 -0
- data/ext/libcouchbase/tests/iotests/t_sched.cc +87 -0
- data/ext/libcouchbase/tests/iotests/t_serverops.cc +231 -0
- data/ext/libcouchbase/tests/iotests/t_smoke.cc +528 -0
- data/ext/libcouchbase/tests/iotests/t_snappy.cc +316 -0
- data/ext/libcouchbase/tests/iotests/t_subdoc.cc +857 -0
- data/ext/libcouchbase/tests/iotests/t_syncmode.cc +64 -0
- data/ext/libcouchbase/tests/iotests/t_views.cc +417 -0
- data/ext/libcouchbase/tests/iotests/testutil.cc +251 -0
- data/ext/libcouchbase/tests/iotests/testutil.h +163 -0
- data/ext/libcouchbase/tests/mc/mctest.h +119 -0
- data/ext/libcouchbase/tests/mc/pktmaker.h +101 -0
- data/ext/libcouchbase/tests/mc/t_alloc.cc +269 -0
- data/ext/libcouchbase/tests/mc/t_context.cc +100 -0
- data/ext/libcouchbase/tests/mc/t_flush.cc +185 -0
- data/ext/libcouchbase/tests/mc/t_forward.cc +239 -0
- data/ext/libcouchbase/tests/mc/t_ioflush.cc +102 -0
- data/ext/libcouchbase/tests/mc/t_iovcursor.cc +173 -0
- data/ext/libcouchbase/tests/mocksupport/procutil.c +305 -0
- data/ext/libcouchbase/tests/mocksupport/procutil.h +89 -0
- data/ext/libcouchbase/tests/mocksupport/server.c +391 -0
- data/ext/libcouchbase/tests/mocksupport/server.h +72 -0
- data/ext/libcouchbase/tests/mocksupport/timeout.c +69 -0
- data/ext/libcouchbase/tests/nonio_tests.cc +23 -0
- data/ext/libcouchbase/tests/rdb/rdbtest.h +133 -0
- data/ext/libcouchbase/tests/rdb/t_basic.cc +128 -0
- data/ext/libcouchbase/tests/rdb/t_bigalloc.cc +93 -0
- data/ext/libcouchbase/tests/rdb/t_refs.cc +112 -0
- data/ext/libcouchbase/tests/socktests/socktest.cc +344 -0
- data/ext/libcouchbase/tests/socktests/socktest.h +447 -0
- data/ext/libcouchbase/tests/socktests/t_basic.cc +143 -0
- data/ext/libcouchbase/tests/socktests/t_ctx.cc +73 -0
- data/ext/libcouchbase/tests/socktests/t_manager.cc +159 -0
- data/ext/libcouchbase/tests/socktests/t_putex.cc +256 -0
- data/ext/libcouchbase/tests/socktests/t_read.cc +187 -0
- data/ext/libcouchbase/tests/socktests/t_reentrant.cc +143 -0
- data/ext/libcouchbase/tests/socktests/t_ssl.cc +80 -0
- data/ext/libcouchbase/tests/socktests/t_write.cc +95 -0
- data/ext/libcouchbase/tests/start_mock.bat +15 -0
- data/ext/libcouchbase/tests/start_mock.sh +42 -0
- data/ext/libcouchbase/tests/unit_tests.cc +43 -0
- data/ext/libcouchbase/tests/vbucket/confdata/bad.json +101 -0
- data/ext/libcouchbase/tests/vbucket/confdata/full_25.json +363 -0
- data/ext/libcouchbase/tests/vbucket/confdata/ketama_expected.json +2562 -0
- data/ext/libcouchbase/tests/vbucket/confdata/map_node_present_nodesext_missing_nodes.json +94 -0
- data/ext/libcouchbase/tests/vbucket/confdata/memd_25.json +90 -0
- data/ext/libcouchbase/tests/vbucket/confdata/memd_30.json +1 -0
- data/ext/libcouchbase/tests/vbucket/confdata/memd_45.json +1 -0
- data/ext/libcouchbase/tests/vbucket/confdata/memd_ketama_config.json +31 -0
- data/ext/libcouchbase/tests/vbucket/confdata/terse_25.json +291 -0
- data/ext/libcouchbase/tests/vbucket/confdata/terse_30.json +1 -0
- data/ext/libcouchbase/tests/vbucket/t_config.cc +386 -0
- data/ext/libcouchbase/tools/CMakeLists.txt +80 -0
- data/ext/libcouchbase/tools/cbc-handlers.h +636 -0
- data/ext/libcouchbase/tools/cbc-n1qlback.cc +496 -0
- data/ext/libcouchbase/tools/cbc-pillowfight.cc +1230 -0
- data/ext/libcouchbase/tools/cbc-proxy.cc +534 -0
- data/ext/libcouchbase/tools/cbc-subdoc.cc +825 -0
- data/ext/libcouchbase/tools/cbc.cc +1928 -0
- data/ext/libcouchbase/tools/common/histogram.cc +44 -0
- data/ext/libcouchbase/tools/common/histogram.h +23 -0
- data/ext/libcouchbase/tools/common/options.cc +451 -0
- data/ext/libcouchbase/tools/common/options.h +90 -0
- data/ext/libcouchbase/tools/docgen/docgen.h +495 -0
- data/ext/libcouchbase/tools/docgen/loc.h +211 -0
- data/ext/libcouchbase/tools/docgen/placeholders.h +211 -0
- data/ext/libcouchbase/tools/docgen/seqgen.h +122 -0
- data/ext/libcouchbase/tools/extract-packets.rb +110 -0
- data/ext/libcouchbase/tools/linenoise/linenoise.c +1199 -0
- data/ext/libcouchbase/tools/linenoise/linenoise.h +73 -0
- data/lib/mt-libcouchbase/bucket.rb +825 -0
- data/lib/mt-libcouchbase/callbacks.rb +69 -0
- data/lib/mt-libcouchbase/connection.rb +896 -0
- data/lib/mt-libcouchbase/design_docs.rb +92 -0
- data/lib/mt-libcouchbase/error.rb +68 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdbase.rb +23 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdcounter.rb +36 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdendure.rb +26 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdfts.rb +24 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdget.rb +30 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdgetreplica.rb +49 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdhttp.rb +58 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdn1ql.rb +40 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdobseqno.rb +33 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdobserve.rb +30 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdstore.rb +40 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdstoredur.rb +45 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdsubdoc.rb +61 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdverbosity.rb +29 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/cmdviewquery.rb +61 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/contigbuf.rb +14 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/create_st.rb +15 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/create_st0.rb +23 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/create_st1.rb +26 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/create_st2.rb +32 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/create_st3.rb +26 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/crst_u.rb +20 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/durability_opts_st_v.rb +11 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/durability_opts_t.rb +14 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/durabilityopt_sv0.rb +63 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/enums.rb +1007 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/fragbuf.rb +18 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/ftshandle.rb +7 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/histogram.rb +34 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/http_request_t.rb +7 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/keybuf.rb +20 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/multicmd_ctx.rb +30 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/mutation_token.rb +17 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/n1qlhandle.rb +7 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/n1qlparams.rb +7 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respbase.rb +29 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respcounter.rb +32 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respendure.rb +49 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respfts.rb +40 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respget.rb +44 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/resphttp.rb +48 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respmcversion.rb +38 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respn1ql.rb +41 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respobseqno.rb +52 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respobserve.rb +41 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respserverbase.rb +32 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respstats.rb +38 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respstore.rb +32 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respstoredur.rb +38 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respsubdoc.rb +35 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/respviewquery.rb +67 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/sdentry.rb +22 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/sdspec.rb +31 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/t.rb +7 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/valbuf.rb +22 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/valbuf_u_buf.rb +14 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase/viewhandle.rb +7 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase.rb +1175 -0
- data/lib/mt-libcouchbase/ext/mt-libcouchbase_libuv.rb +22 -0
- data/lib/mt-libcouchbase/ext/tasks.rb +39 -0
- data/lib/mt-libcouchbase/n1ql.rb +80 -0
- data/lib/mt-libcouchbase/query_full_text.rb +147 -0
- data/lib/mt-libcouchbase/query_n1ql.rb +123 -0
- data/lib/mt-libcouchbase/query_view.rb +135 -0
- data/lib/mt-libcouchbase/results_fiber.rb +281 -0
- data/lib/mt-libcouchbase/results_native.rb +220 -0
- data/lib/mt-libcouchbase/subdoc_request.rb +139 -0
- data/lib/mt-libcouchbase/version.rb +5 -0
- data/lib/mt-libcouchbase.rb +40 -0
- data/mt-libcouchbase.gemspec +68 -0
- data/spec/bucket_spec.rb +290 -0
- data/spec/connection_spec.rb +257 -0
- data/spec/design_docs_spec.rb +31 -0
- data/spec/error_spec.rb +26 -0
- data/spec/fts_spec.rb +135 -0
- data/spec/n1ql_spec.rb +260 -0
- data/spec/results_libuv_spec.rb +244 -0
- data/spec/results_native_spec.rb +259 -0
- data/spec/seed/2016-10-25T043505Z/2016-10-25T043505Z-full/bucket-default/design.json +1 -0
- data/spec/seed/2016-10-25T043505Z/2016-10-25T043505Z-full/bucket-default/node-127.0.0.1%3A8091/data-0000.cbb +0 -0
- data/spec/seed/2016-10-25T043505Z/2016-10-25T043505Z-full/bucket-default/node-127.0.0.1%3A8091/failover.json +1 -0
- data/spec/seed/2016-10-25T043505Z/2016-10-25T043505Z-full/bucket-default/node-127.0.0.1%3A8091/meta.json +1 -0
- data/spec/seed/2016-10-25T043505Z/2016-10-25T043505Z-full/bucket-default/node-127.0.0.1%3A8091/seqno.json +1 -0
- data/spec/seed/2016-10-25T043505Z/2016-10-25T043505Z-full/bucket-default/node-127.0.0.1%3A8091/snapshot_markers.json +1 -0
- data/spec/subdoc_spec.rb +192 -0
- data/spec/view_spec.rb +201 -0
- data/windows_build.md +36 -0
- metadata +873 -0
|
@@ -0,0 +1,1175 @@
|
|
|
1
|
+
require 'ffi'
|
|
2
|
+
require 'mt-libcouchbase/ext/mt-libcouchbase/enums'
|
|
3
|
+
|
|
4
|
+
module MTLibcouchbase::Ext
|
|
5
|
+
extend FFI::Library
|
|
6
|
+
if FFI::Platform.windows?
|
|
7
|
+
ffi_lib ::File.expand_path("../../../../ext/libcouchbase.dll", __FILE__)
|
|
8
|
+
else
|
|
9
|
+
ffi_lib ::File.expand_path("../../../../ext/libcouchbase/build/lib/libcouchbase.#{FFI::Platform::LIBSUFFIX}", __FILE__)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
require 'mt-libcouchbase/ext/mt-libcouchbase_libuv'
|
|
13
|
+
|
|
14
|
+
autoload :T, 'mt-libcouchbase/ext/mt-libcouchbase/t'
|
|
15
|
+
autoload :HttpRequestT, 'mt-libcouchbase/ext/mt-libcouchbase/http_request_t'
|
|
16
|
+
autoload :CONTIGBUF, 'mt-libcouchbase/ext/mt-libcouchbase/contigbuf'
|
|
17
|
+
autoload :KEYBUF, 'mt-libcouchbase/ext/mt-libcouchbase/keybuf'
|
|
18
|
+
autoload :FRAGBUF, 'mt-libcouchbase/ext/mt-libcouchbase/fragbuf'
|
|
19
|
+
autoload :VALBUFUBuf, 'mt-libcouchbase/ext/mt-libcouchbase/valbuf_u_buf'
|
|
20
|
+
autoload :VALBUF, 'mt-libcouchbase/ext/mt-libcouchbase/valbuf'
|
|
21
|
+
autoload :CreateSt0, 'mt-libcouchbase/ext/mt-libcouchbase/create_st0'
|
|
22
|
+
autoload :CreateSt1, 'mt-libcouchbase/ext/mt-libcouchbase/create_st1'
|
|
23
|
+
autoload :CreateSt2, 'mt-libcouchbase/ext/mt-libcouchbase/create_st2'
|
|
24
|
+
autoload :CreateSt3, 'mt-libcouchbase/ext/mt-libcouchbase/create_st3'
|
|
25
|
+
autoload :CRSTU, 'mt-libcouchbase/ext/mt-libcouchbase/crst_u'
|
|
26
|
+
autoload :CreateSt, 'mt-libcouchbase/ext/mt-libcouchbase/create_st'
|
|
27
|
+
autoload :CMDBASE, 'mt-libcouchbase/ext/mt-libcouchbase/cmdbase'
|
|
28
|
+
autoload :RESPBASE, 'mt-libcouchbase/ext/mt-libcouchbase/respbase'
|
|
29
|
+
autoload :RESPSERVERBASE, 'mt-libcouchbase/ext/mt-libcouchbase/respserverbase'
|
|
30
|
+
autoload :MUTATIONTOKEN, 'mt-libcouchbase/ext/mt-libcouchbase/mutation_token'
|
|
31
|
+
autoload :CMDGET, 'mt-libcouchbase/ext/mt-libcouchbase/cmdget'
|
|
32
|
+
autoload :RESPGET, 'mt-libcouchbase/ext/mt-libcouchbase/respget'
|
|
33
|
+
autoload :CMDGETREPLICA, 'mt-libcouchbase/ext/mt-libcouchbase/cmdgetreplica'
|
|
34
|
+
autoload :CMDSTORE, 'mt-libcouchbase/ext/mt-libcouchbase/cmdstore'
|
|
35
|
+
autoload :RESPSTORE, 'mt-libcouchbase/ext/mt-libcouchbase/respstore'
|
|
36
|
+
autoload :MULTICMDCTX, 'mt-libcouchbase/ext/mt-libcouchbase/multicmd_ctx'
|
|
37
|
+
autoload :DURABILITYOPTSv0, 'mt-libcouchbase/ext/mt-libcouchbase/durabilityopt_sv0'
|
|
38
|
+
autoload :DurabilityOptsStV, 'mt-libcouchbase/ext/mt-libcouchbase/durability_opts_st_v'
|
|
39
|
+
autoload :DurabilityOptsT, 'mt-libcouchbase/ext/mt-libcouchbase/durability_opts_t'
|
|
40
|
+
autoload :CMDENDURE, 'mt-libcouchbase/ext/mt-libcouchbase/cmdendure'
|
|
41
|
+
autoload :RESPENDURE, 'mt-libcouchbase/ext/mt-libcouchbase/respendure'
|
|
42
|
+
autoload :CMDSTOREDUR, 'mt-libcouchbase/ext/mt-libcouchbase/cmdstoredur'
|
|
43
|
+
autoload :RESPSTOREDUR, 'mt-libcouchbase/ext/mt-libcouchbase/respstoredur'
|
|
44
|
+
autoload :CMDOBSERVE, 'mt-libcouchbase/ext/mt-libcouchbase/cmdobserve'
|
|
45
|
+
autoload :RESPOBSERVE, 'mt-libcouchbase/ext/mt-libcouchbase/respobserve'
|
|
46
|
+
autoload :CMDOBSEQNO, 'mt-libcouchbase/ext/mt-libcouchbase/cmdobseqno'
|
|
47
|
+
autoload :RESPOBSEQNO, 'mt-libcouchbase/ext/mt-libcouchbase/respobseqno'
|
|
48
|
+
autoload :CMDCOUNTER, 'mt-libcouchbase/ext/mt-libcouchbase/cmdcounter'
|
|
49
|
+
autoload :RESPCOUNTER, 'mt-libcouchbase/ext/mt-libcouchbase/respcounter'
|
|
50
|
+
autoload :RESPSTATS, 'mt-libcouchbase/ext/mt-libcouchbase/respstats'
|
|
51
|
+
autoload :RESPMCVERSION, 'mt-libcouchbase/ext/mt-libcouchbase/respmcversion'
|
|
52
|
+
autoload :CMDVERBOSITY, 'mt-libcouchbase/ext/mt-libcouchbase/cmdverbosity'
|
|
53
|
+
autoload :CMDHTTP, 'mt-libcouchbase/ext/mt-libcouchbase/cmdhttp'
|
|
54
|
+
autoload :RESPHTTP, 'mt-libcouchbase/ext/mt-libcouchbase/resphttp'
|
|
55
|
+
autoload :HISTOGRAM, 'mt-libcouchbase/ext/mt-libcouchbase/histogram'
|
|
56
|
+
autoload :SDSPEC, 'mt-libcouchbase/ext/mt-libcouchbase/sdspec'
|
|
57
|
+
autoload :CMDSUBDOC, 'mt-libcouchbase/ext/mt-libcouchbase/cmdsubdoc'
|
|
58
|
+
autoload :RESPSUBDOC, 'mt-libcouchbase/ext/mt-libcouchbase/respsubdoc'
|
|
59
|
+
autoload :SDENTRY, 'mt-libcouchbase/ext/mt-libcouchbase/sdentry'
|
|
60
|
+
autoload :VIEWHANDLE, 'mt-libcouchbase/ext/mt-libcouchbase/viewhandle'
|
|
61
|
+
autoload :CMDVIEWQUERY, 'mt-libcouchbase/ext/mt-libcouchbase/cmdviewquery'
|
|
62
|
+
autoload :RESPVIEWQUERY, 'mt-libcouchbase/ext/mt-libcouchbase/respviewquery'
|
|
63
|
+
autoload :N1QLHANDLE, 'mt-libcouchbase/ext/mt-libcouchbase/n1qlhandle'
|
|
64
|
+
autoload :N1QLPARAMS, 'mt-libcouchbase/ext/mt-libcouchbase/n1qlparams'
|
|
65
|
+
autoload :CMDN1QL, 'mt-libcouchbase/ext/mt-libcouchbase/cmdn1ql'
|
|
66
|
+
autoload :RESPN1QL, 'mt-libcouchbase/ext/mt-libcouchbase/respn1ql'
|
|
67
|
+
autoload :RESPFTS, 'mt-libcouchbase/ext/mt-libcouchbase/respfts'
|
|
68
|
+
autoload :FTSHANDLE, 'mt-libcouchbase/ext/mt-libcouchbase/ftshandle'
|
|
69
|
+
autoload :CMDFTS, 'mt-libcouchbase/ext/mt-libcouchbase/cmdfts'
|
|
70
|
+
|
|
71
|
+
attach_function :create_io_ops, :lcb_create_io_ops, [:pointer, :pointer], ErrorT
|
|
72
|
+
|
|
73
|
+
# (Not documented)
|
|
74
|
+
#
|
|
75
|
+
# @method `callback_errmap_callback`(error_t, instance)
|
|
76
|
+
# @param [T] error_t
|
|
77
|
+
# @param [Integer] instance
|
|
78
|
+
# @return [ErrorT]
|
|
79
|
+
# @scope class
|
|
80
|
+
#
|
|
81
|
+
callback :errmap_callback, [T.by_ref, :ushort], ErrorT
|
|
82
|
+
|
|
83
|
+
# (Not documented)
|
|
84
|
+
#
|
|
85
|
+
# @method `callback_bootstrap_callback`(instance, err)
|
|
86
|
+
# @param [T] instance
|
|
87
|
+
# @param [ErrorT] err
|
|
88
|
+
# @return [nil]
|
|
89
|
+
# @scope class
|
|
90
|
+
#
|
|
91
|
+
callback :bootstrap_callback, [T.by_ref, ErrorT], :void
|
|
92
|
+
|
|
93
|
+
# (Not documented)
|
|
94
|
+
#
|
|
95
|
+
# @method `callback_respcallback`(instance, cbtype, resp)
|
|
96
|
+
# @param [T] instance
|
|
97
|
+
# @param [Integer] cbtype
|
|
98
|
+
# @param [RESPBASE] resp
|
|
99
|
+
# @return [nil]
|
|
100
|
+
# @scope class
|
|
101
|
+
#
|
|
102
|
+
callback :respcallback, [T.by_ref, :int, RESPBASE.by_ref], :void
|
|
103
|
+
|
|
104
|
+
# (Not documented)
|
|
105
|
+
#
|
|
106
|
+
# @method `callback_destroy_callback`(cookie)
|
|
107
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
108
|
+
# @return [nil]
|
|
109
|
+
# @scope class
|
|
110
|
+
#
|
|
111
|
+
callback :destroy_callback, [:pointer], :void
|
|
112
|
+
|
|
113
|
+
# (Not documented)
|
|
114
|
+
#
|
|
115
|
+
# @method `callback_timings_callback`(instance, cookie, timeunit, min, max, total, maxtotal)
|
|
116
|
+
# @param [T] instance
|
|
117
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
118
|
+
# @param [TimeunitT] timeunit
|
|
119
|
+
# @param [Integer] min
|
|
120
|
+
# @param [Integer] max
|
|
121
|
+
# @param [Integer] total
|
|
122
|
+
# @param [Integer] maxtotal
|
|
123
|
+
# @return [nil]
|
|
124
|
+
# @scope class
|
|
125
|
+
#
|
|
126
|
+
callback :timings_callback, [T.by_ref, :pointer, TimeunitT, :uint, :uint, :uint, :uint], :void
|
|
127
|
+
|
|
128
|
+
# (Not documented)
|
|
129
|
+
#
|
|
130
|
+
# @method `callback_histogram_callback`(cookie, timeunit, min, max, total, maxtotal)
|
|
131
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
132
|
+
# @param [TimeunitT] timeunit
|
|
133
|
+
# @param [Integer] min
|
|
134
|
+
# @param [Integer] max
|
|
135
|
+
# @param [Integer] total
|
|
136
|
+
# @param [Integer] maxtotal
|
|
137
|
+
# @return [nil]
|
|
138
|
+
# @scope class
|
|
139
|
+
#
|
|
140
|
+
callback :histogram_callback, [:pointer, TimeunitT, :uint, :uint, :uint, :uint], :void
|
|
141
|
+
|
|
142
|
+
# (Not documented)
|
|
143
|
+
#
|
|
144
|
+
# @method `callback_viewquerycallback`(instance, cbtype, row)
|
|
145
|
+
# @param [T] instance
|
|
146
|
+
# @param [Integer] cbtype
|
|
147
|
+
# @param [RESPVIEWQUERY] row
|
|
148
|
+
# @return [nil]
|
|
149
|
+
# @scope class
|
|
150
|
+
#
|
|
151
|
+
callback :viewquerycallback, [T.by_ref, :int, RESPVIEWQUERY.by_ref], :void
|
|
152
|
+
|
|
153
|
+
# (Not documented)
|
|
154
|
+
#
|
|
155
|
+
# @method `callback_n1qlcallback`(, , )
|
|
156
|
+
# @param [T]
|
|
157
|
+
# @param [Integer]
|
|
158
|
+
# @param [RESPN1QL]
|
|
159
|
+
# @return [nil]
|
|
160
|
+
# @scope class
|
|
161
|
+
#
|
|
162
|
+
callback :n1qlcallback, [T.by_ref, :int, RESPN1QL.by_ref], :void
|
|
163
|
+
|
|
164
|
+
# (Not documented)
|
|
165
|
+
#
|
|
166
|
+
# @method `callback_ftscallback`(, , )
|
|
167
|
+
# @param [T]
|
|
168
|
+
# @param [Integer]
|
|
169
|
+
# @param [RESPFTS]
|
|
170
|
+
# @return [nil]
|
|
171
|
+
# @scope class
|
|
172
|
+
#
|
|
173
|
+
callback :ftscallback, [T.by_ref, :int, RESPFTS.by_ref], :void
|
|
174
|
+
|
|
175
|
+
# (Not documented)
|
|
176
|
+
#
|
|
177
|
+
# @method get_errtype(err)
|
|
178
|
+
# @param [ErrorT] err
|
|
179
|
+
# @return [Integer]
|
|
180
|
+
# @scope class
|
|
181
|
+
#
|
|
182
|
+
attach_function :get_errtype, :lcb_get_errtype, [ErrorT], :int
|
|
183
|
+
|
|
184
|
+
# (Not documented)
|
|
185
|
+
#
|
|
186
|
+
# @method strerror(instance, error)
|
|
187
|
+
# @param [T] instance
|
|
188
|
+
# @param [ErrorT] error
|
|
189
|
+
# @return [String]
|
|
190
|
+
# @scope class
|
|
191
|
+
#
|
|
192
|
+
attach_function :strerror, :lcb_strerror, [T.by_ref, ErrorT], :string
|
|
193
|
+
|
|
194
|
+
# (Not documented)
|
|
195
|
+
#
|
|
196
|
+
# @method errmap_default(instance, code)
|
|
197
|
+
# @param [T] instance
|
|
198
|
+
# @param [Integer] code
|
|
199
|
+
# @return [ErrorT]
|
|
200
|
+
# @scope class
|
|
201
|
+
#
|
|
202
|
+
attach_function :errmap_default, :lcb_errmap_default, [T.by_ref, :ushort], ErrorT
|
|
203
|
+
|
|
204
|
+
# (Not documented)
|
|
205
|
+
#
|
|
206
|
+
# @method set_errmap_callback(t, errmap_callback)
|
|
207
|
+
# @param [T] t
|
|
208
|
+
# @param [Proc(callback_errmap_callback)] errmap_callback
|
|
209
|
+
# @return [Proc(callback_errmap_callback)]
|
|
210
|
+
# @scope class
|
|
211
|
+
#
|
|
212
|
+
attach_function :set_errmap_callback, :lcb_set_errmap_callback, [T.by_ref, :errmap_callback], :errmap_callback
|
|
213
|
+
|
|
214
|
+
# (Not documented)
|
|
215
|
+
#
|
|
216
|
+
# @method create(instance, options)
|
|
217
|
+
# @param [FFI::Pointer(*T)] instance
|
|
218
|
+
# @param [CreateSt] options
|
|
219
|
+
# @return [ErrorT]
|
|
220
|
+
# @scope class
|
|
221
|
+
#
|
|
222
|
+
attach_function :create, :lcb_create, [:pointer, CreateSt.by_ref], ErrorT, :blocking => true
|
|
223
|
+
|
|
224
|
+
# (Not documented)
|
|
225
|
+
#
|
|
226
|
+
# @method connect(instance)
|
|
227
|
+
# @param [T] instance
|
|
228
|
+
# @return [ErrorT]
|
|
229
|
+
# @scope class
|
|
230
|
+
#
|
|
231
|
+
attach_function :connect, :lcb_connect, [T.by_ref], ErrorT, :blocking => true
|
|
232
|
+
|
|
233
|
+
# (Not documented)
|
|
234
|
+
#
|
|
235
|
+
# @method set_bootstrap_callback(instance, callback)
|
|
236
|
+
# @param [T] instance
|
|
237
|
+
# @param [Proc(callback_bootstrap_callback)] callback
|
|
238
|
+
# @return [Proc(callback_bootstrap_callback)]
|
|
239
|
+
# @scope class
|
|
240
|
+
#
|
|
241
|
+
attach_function :set_bootstrap_callback, :lcb_set_bootstrap_callback, [T.by_ref, :bootstrap_callback], :bootstrap_callback
|
|
242
|
+
|
|
243
|
+
# (Not documented)
|
|
244
|
+
#
|
|
245
|
+
# @method get_bootstrap_status(instance)
|
|
246
|
+
# @param [T] instance
|
|
247
|
+
# @return [ErrorT]
|
|
248
|
+
# @scope class
|
|
249
|
+
#
|
|
250
|
+
attach_function :get_bootstrap_status, :lcb_get_bootstrap_status, [T.by_ref], ErrorT
|
|
251
|
+
|
|
252
|
+
# (Not documented)
|
|
253
|
+
#
|
|
254
|
+
# @method install_callback3(instance, cbtype, cb)
|
|
255
|
+
# @param [T] instance
|
|
256
|
+
# @param [Integer] cbtype
|
|
257
|
+
# @param [Proc(callback_respcallback)] cb
|
|
258
|
+
# @return [Proc(callback_respcallback)]
|
|
259
|
+
# @scope class
|
|
260
|
+
#
|
|
261
|
+
attach_function :install_callback3, :lcb_install_callback3, [T.by_ref, :int, :respcallback], :respcallback
|
|
262
|
+
|
|
263
|
+
# (Not documented)
|
|
264
|
+
#
|
|
265
|
+
# @method get_callback3(instance, cbtype)
|
|
266
|
+
# @param [T] instance
|
|
267
|
+
# @param [Integer] cbtype
|
|
268
|
+
# @return [Proc(callback_respcallback)]
|
|
269
|
+
# @scope class
|
|
270
|
+
#
|
|
271
|
+
attach_function :get_callback3, :lcb_get_callback3, [T.by_ref, :int], :respcallback
|
|
272
|
+
|
|
273
|
+
# (Not documented)
|
|
274
|
+
#
|
|
275
|
+
# @method strcbtype(cbtype)
|
|
276
|
+
# @param [Integer] cbtype
|
|
277
|
+
# @return [String]
|
|
278
|
+
# @scope class
|
|
279
|
+
#
|
|
280
|
+
attach_function :strcbtype, :lcb_strcbtype, [:int], :string
|
|
281
|
+
|
|
282
|
+
# (Not documented)
|
|
283
|
+
#
|
|
284
|
+
# @method get3(instance, cookie, cmd)
|
|
285
|
+
# @param [T] instance
|
|
286
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
287
|
+
# @param [CMDGET] cmd
|
|
288
|
+
# @return [ErrorT]
|
|
289
|
+
# @scope class
|
|
290
|
+
#
|
|
291
|
+
attach_function :get3, :lcb_get3, [T.by_ref, :pointer, CMDGET.by_ref], ErrorT, :blocking => true
|
|
292
|
+
|
|
293
|
+
# (Not documented)
|
|
294
|
+
#
|
|
295
|
+
# @method rget3(instance, cookie, cmd)
|
|
296
|
+
# @param [T] instance
|
|
297
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
298
|
+
# @param [CMDGETREPLICA] cmd
|
|
299
|
+
# @return [ErrorT]
|
|
300
|
+
# @scope class
|
|
301
|
+
#
|
|
302
|
+
attach_function :rget3, :lcb_rget3, [T.by_ref, :pointer, CMDGETREPLICA.by_ref], ErrorT, :blocking => true
|
|
303
|
+
|
|
304
|
+
# (Not documented)
|
|
305
|
+
#
|
|
306
|
+
# @method store3(instance, cookie, cmd)
|
|
307
|
+
# @param [T] instance
|
|
308
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
309
|
+
# @param [CMDSTORE] cmd
|
|
310
|
+
# @return [ErrorT]
|
|
311
|
+
# @scope class
|
|
312
|
+
#
|
|
313
|
+
attach_function :store3, :lcb_store3, [T.by_ref, :pointer, CMDSTORE.by_ref], ErrorT, :blocking => true
|
|
314
|
+
|
|
315
|
+
# (Not documented)
|
|
316
|
+
#
|
|
317
|
+
# @method remove3(instance, cookie, cmd)
|
|
318
|
+
# @param [T] instance
|
|
319
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
320
|
+
# @param [CMDBASE] cmd
|
|
321
|
+
# @return [ErrorT]
|
|
322
|
+
# @scope class
|
|
323
|
+
#
|
|
324
|
+
attach_function :remove3, :lcb_remove3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true
|
|
325
|
+
|
|
326
|
+
# (Not documented)
|
|
327
|
+
#
|
|
328
|
+
# @method endure3_ctxnew(instance, options, err)
|
|
329
|
+
# @param [T] instance
|
|
330
|
+
# @param [DurabilityOptsT] options
|
|
331
|
+
# @param [FFI::Pointer(*ErrorT)] err
|
|
332
|
+
# @return [MULTICMDCTX]
|
|
333
|
+
# @scope class
|
|
334
|
+
#
|
|
335
|
+
attach_function :endure3_ctxnew, :lcb_endure3_ctxnew, [T.by_ref, DurabilityOptsT.by_ref, :pointer], MULTICMDCTX.by_ref, :blocking => true
|
|
336
|
+
|
|
337
|
+
# (Not documented)
|
|
338
|
+
#
|
|
339
|
+
# @method storedur3(instance, cookie, cmd)
|
|
340
|
+
# @param [T] instance
|
|
341
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
342
|
+
# @param [CMDSTOREDUR] cmd
|
|
343
|
+
# @return [ErrorT]
|
|
344
|
+
# @scope class
|
|
345
|
+
#
|
|
346
|
+
attach_function :storedur3, :lcb_storedur3, [T.by_ref, :pointer, CMDSTOREDUR.by_ref], ErrorT, :blocking => true
|
|
347
|
+
|
|
348
|
+
# (Not documented)
|
|
349
|
+
#
|
|
350
|
+
# @method durability_validate(instance, persist_to, replicate_to, options)
|
|
351
|
+
# @param [T] instance
|
|
352
|
+
# @param [FFI::Pointer(*U16)] persist_to
|
|
353
|
+
# @param [FFI::Pointer(*U16)] replicate_to
|
|
354
|
+
# @param [Integer] options
|
|
355
|
+
# @return [ErrorT]
|
|
356
|
+
# @scope class
|
|
357
|
+
#
|
|
358
|
+
attach_function :durability_validate, :lcb_durability_validate, [T.by_ref, :pointer, :pointer, :int], ErrorT, :blocking => true
|
|
359
|
+
|
|
360
|
+
# (Not documented)
|
|
361
|
+
#
|
|
362
|
+
# @method observe3_ctxnew(instance)
|
|
363
|
+
# @param [T] instance
|
|
364
|
+
# @return [MULTICMDCTX]
|
|
365
|
+
# @scope class
|
|
366
|
+
#
|
|
367
|
+
attach_function :observe3_ctxnew, :lcb_observe3_ctxnew, [T.by_ref], MULTICMDCTX.by_ref, :blocking => true
|
|
368
|
+
|
|
369
|
+
# (Not documented)
|
|
370
|
+
#
|
|
371
|
+
# @method observe_seqno3(instance, cookie, cmd)
|
|
372
|
+
# @param [T] instance
|
|
373
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
374
|
+
# @param [CMDOBSEQNO] cmd
|
|
375
|
+
# @return [ErrorT]
|
|
376
|
+
# @scope class
|
|
377
|
+
#
|
|
378
|
+
attach_function :observe_seqno3, :lcb_observe_seqno3, [T.by_ref, :pointer, CMDOBSEQNO.by_ref], ErrorT, :blocking => true
|
|
379
|
+
|
|
380
|
+
# (Not documented)
|
|
381
|
+
#
|
|
382
|
+
# @method resp_get_mutation_token(cbtype, rb)
|
|
383
|
+
# @param [Integer] cbtype
|
|
384
|
+
# @param [RESPBASE] rb
|
|
385
|
+
# @return [MUTATIONTOKEN]
|
|
386
|
+
# @scope class
|
|
387
|
+
#
|
|
388
|
+
attach_function :resp_get_mutation_token, :lcb_resp_get_mutation_token, [:int, RESPBASE.by_ref], MUTATIONTOKEN.by_ref, :blocking => true
|
|
389
|
+
|
|
390
|
+
# (Not documented)
|
|
391
|
+
#
|
|
392
|
+
# @method get_mutation_token(instance, kb, errp)
|
|
393
|
+
# @param [T] instance
|
|
394
|
+
# @param [KEYBUF] kb
|
|
395
|
+
# @param [FFI::Pointer(*ErrorT)] errp
|
|
396
|
+
# @return [MUTATIONTOKEN]
|
|
397
|
+
# @scope class
|
|
398
|
+
#
|
|
399
|
+
attach_function :get_mutation_token, :lcb_get_mutation_token, [T.by_ref, KEYBUF.by_ref, :pointer], MUTATIONTOKEN.by_ref, :blocking => true
|
|
400
|
+
|
|
401
|
+
# (Not documented)
|
|
402
|
+
#
|
|
403
|
+
# @method counter3(instance, cookie, cmd)
|
|
404
|
+
# @param [T] instance
|
|
405
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
406
|
+
# @param [CMDCOUNTER] cmd
|
|
407
|
+
# @return [ErrorT]
|
|
408
|
+
# @scope class
|
|
409
|
+
#
|
|
410
|
+
attach_function :counter3, :lcb_counter3, [T.by_ref, :pointer, CMDCOUNTER.by_ref], ErrorT, :blocking => true
|
|
411
|
+
|
|
412
|
+
# (Not documented)
|
|
413
|
+
#
|
|
414
|
+
# @method unlock3(instance, cookie, cmd)
|
|
415
|
+
# @param [T] instance
|
|
416
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
417
|
+
# @param [CMDBASE] cmd
|
|
418
|
+
# @return [ErrorT]
|
|
419
|
+
# @scope class
|
|
420
|
+
#
|
|
421
|
+
attach_function :unlock3, :lcb_unlock3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true
|
|
422
|
+
|
|
423
|
+
# (Not documented)
|
|
424
|
+
#
|
|
425
|
+
# @method touch3(instance, cookie, cmd)
|
|
426
|
+
# @param [T] instance
|
|
427
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
428
|
+
# @param [CMDBASE] cmd
|
|
429
|
+
# @return [ErrorT]
|
|
430
|
+
# @scope class
|
|
431
|
+
#
|
|
432
|
+
attach_function :touch3, :lcb_touch3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true
|
|
433
|
+
|
|
434
|
+
# (Not documented)
|
|
435
|
+
#
|
|
436
|
+
# @method stats3(instance, cookie, cmd)
|
|
437
|
+
# @param [T] instance
|
|
438
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
439
|
+
# @param [CMDBASE] cmd
|
|
440
|
+
# @return [ErrorT]
|
|
441
|
+
# @scope class
|
|
442
|
+
#
|
|
443
|
+
attach_function :stats3, :lcb_stats3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true
|
|
444
|
+
|
|
445
|
+
# (Not documented)
|
|
446
|
+
#
|
|
447
|
+
# @method server_versions3(instance, cookie, cmd)
|
|
448
|
+
# @param [T] instance
|
|
449
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
450
|
+
# @param [CMDBASE] cmd
|
|
451
|
+
# @return [ErrorT]
|
|
452
|
+
# @scope class
|
|
453
|
+
#
|
|
454
|
+
attach_function :server_versions3, :lcb_server_versions3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true
|
|
455
|
+
|
|
456
|
+
# (Not documented)
|
|
457
|
+
#
|
|
458
|
+
# @method server_verbosity3(instance, cookie, cmd)
|
|
459
|
+
# @param [T] instance
|
|
460
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
461
|
+
# @param [CMDVERBOSITY] cmd
|
|
462
|
+
# @return [ErrorT]
|
|
463
|
+
# @scope class
|
|
464
|
+
#
|
|
465
|
+
attach_function :server_verbosity3, :lcb_server_verbosity3, [T.by_ref, :pointer, CMDVERBOSITY.by_ref], ErrorT, :blocking => true
|
|
466
|
+
|
|
467
|
+
# (Not documented)
|
|
468
|
+
#
|
|
469
|
+
# @method cbflush3(instance, cookie, cmd)
|
|
470
|
+
# @param [T] instance
|
|
471
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
472
|
+
# @param [CMDBASE] cmd
|
|
473
|
+
# @return [ErrorT]
|
|
474
|
+
# @scope class
|
|
475
|
+
#
|
|
476
|
+
attach_function :cbflush3, :lcb_cbflush3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true
|
|
477
|
+
|
|
478
|
+
# (Not documented)
|
|
479
|
+
#
|
|
480
|
+
# @method flush3(instance, cookie, cmd)
|
|
481
|
+
# @param [T] instance
|
|
482
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
483
|
+
# @param [CMDBASE] cmd
|
|
484
|
+
# @return [ErrorT]
|
|
485
|
+
# @scope class
|
|
486
|
+
#
|
|
487
|
+
attach_function :flush3, :lcb_flush3, [T.by_ref, :pointer, CMDBASE.by_ref], ErrorT, :blocking => true
|
|
488
|
+
|
|
489
|
+
# (Not documented)
|
|
490
|
+
#
|
|
491
|
+
# @method http3(instance, cookie, cmd)
|
|
492
|
+
# @param [T] instance
|
|
493
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
494
|
+
# @param [CMDHTTP] cmd
|
|
495
|
+
# @return [ErrorT]
|
|
496
|
+
# @scope class
|
|
497
|
+
#
|
|
498
|
+
attach_function :http3, :lcb_http3, [T.by_ref, :pointer, CMDHTTP.by_ref], ErrorT, :blocking => true
|
|
499
|
+
|
|
500
|
+
# (Not documented)
|
|
501
|
+
#
|
|
502
|
+
# @method cancel_http_request(instance, request)
|
|
503
|
+
# @param [T] instance
|
|
504
|
+
# @param [HttpRequestT] request
|
|
505
|
+
# @return [nil]
|
|
506
|
+
# @scope class
|
|
507
|
+
#
|
|
508
|
+
attach_function :cancel_http_request, :lcb_cancel_http_request, [T.by_ref, HttpRequestT.by_ref], :void, :blocking => true
|
|
509
|
+
|
|
510
|
+
# (Not documented)
|
|
511
|
+
#
|
|
512
|
+
# @method set_cookie(instance, cookie)
|
|
513
|
+
# @param [T] instance
|
|
514
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
515
|
+
# @return [nil]
|
|
516
|
+
# @scope class
|
|
517
|
+
#
|
|
518
|
+
attach_function :set_cookie, :lcb_set_cookie, [T.by_ref, :pointer], :void
|
|
519
|
+
|
|
520
|
+
# (Not documented)
|
|
521
|
+
#
|
|
522
|
+
# @method get_cookie(instance)
|
|
523
|
+
# @param [T] instance
|
|
524
|
+
# @return [FFI::Pointer(*Void)]
|
|
525
|
+
# @scope class
|
|
526
|
+
#
|
|
527
|
+
attach_function :get_cookie, :lcb_get_cookie, [T.by_ref], :pointer
|
|
528
|
+
|
|
529
|
+
# (Not documented)
|
|
530
|
+
#
|
|
531
|
+
# @method wait(instance)
|
|
532
|
+
# @param [T] instance
|
|
533
|
+
# @return [ErrorT]
|
|
534
|
+
# @scope class
|
|
535
|
+
#
|
|
536
|
+
attach_function :wait, :lcb_wait, [T.by_ref], ErrorT, :blocking => true
|
|
537
|
+
|
|
538
|
+
# (Not documented)
|
|
539
|
+
#
|
|
540
|
+
# @method tick_nowait(instance)
|
|
541
|
+
# @param [T] instance
|
|
542
|
+
# @return [ErrorT]
|
|
543
|
+
# @scope class
|
|
544
|
+
#
|
|
545
|
+
attach_function :tick_nowait, :lcb_tick_nowait, [T.by_ref], ErrorT, :blocking => true
|
|
546
|
+
|
|
547
|
+
# (Not documented)
|
|
548
|
+
#
|
|
549
|
+
# @method wait3(instance, flags)
|
|
550
|
+
# @param [T] instance
|
|
551
|
+
# @param [WAITFLAGS] flags
|
|
552
|
+
# @return [nil]
|
|
553
|
+
# @scope class
|
|
554
|
+
#
|
|
555
|
+
attach_function :wait3, :lcb_wait3, [T.by_ref, WAITFLAGS], :void, :blocking => true
|
|
556
|
+
|
|
557
|
+
# (Not documented)
|
|
558
|
+
#
|
|
559
|
+
# @method breakout(instance)
|
|
560
|
+
# @param [T] instance
|
|
561
|
+
# @return [nil]
|
|
562
|
+
# @scope class
|
|
563
|
+
#
|
|
564
|
+
attach_function :breakout, :lcb_breakout, [T.by_ref], :void, :blocking => true
|
|
565
|
+
|
|
566
|
+
# (Not documented)
|
|
567
|
+
#
|
|
568
|
+
# @method is_waiting(instance)
|
|
569
|
+
# @param [T] instance
|
|
570
|
+
# @return [Integer]
|
|
571
|
+
# @scope class
|
|
572
|
+
#
|
|
573
|
+
attach_function :is_waiting, :lcb_is_waiting, [T.by_ref], :int, :blocking => true
|
|
574
|
+
|
|
575
|
+
# (Not documented)
|
|
576
|
+
#
|
|
577
|
+
# @method refresh_config(instance)
|
|
578
|
+
# @param [T] instance
|
|
579
|
+
# @return [nil]
|
|
580
|
+
# @scope class
|
|
581
|
+
#
|
|
582
|
+
attach_function :refresh_config, :lcb_refresh_config, [T.by_ref], :void, :blocking => true
|
|
583
|
+
|
|
584
|
+
# (Not documented)
|
|
585
|
+
#
|
|
586
|
+
# @method sched_enter(instance)
|
|
587
|
+
# @param [T] instance
|
|
588
|
+
# @return [nil]
|
|
589
|
+
# @scope class
|
|
590
|
+
#
|
|
591
|
+
attach_function :sched_enter, :lcb_sched_enter, [T.by_ref], :void, :blocking => true
|
|
592
|
+
|
|
593
|
+
# (Not documented)
|
|
594
|
+
#
|
|
595
|
+
# @method sched_leave(instance)
|
|
596
|
+
# @param [T] instance
|
|
597
|
+
# @return [nil]
|
|
598
|
+
# @scope class
|
|
599
|
+
#
|
|
600
|
+
attach_function :sched_leave, :lcb_sched_leave, [T.by_ref], :void, :blocking => true
|
|
601
|
+
|
|
602
|
+
# (Not documented)
|
|
603
|
+
#
|
|
604
|
+
# @method sched_fail(instance)
|
|
605
|
+
# @param [T] instance
|
|
606
|
+
# @return [nil]
|
|
607
|
+
# @scope class
|
|
608
|
+
#
|
|
609
|
+
attach_function :sched_fail, :lcb_sched_fail, [T.by_ref], :void, :blocking => true
|
|
610
|
+
|
|
611
|
+
# (Not documented)
|
|
612
|
+
#
|
|
613
|
+
# @method sched_flush(instance)
|
|
614
|
+
# @param [T] instance
|
|
615
|
+
# @return [nil]
|
|
616
|
+
# @scope class
|
|
617
|
+
#
|
|
618
|
+
attach_function :sched_flush, :lcb_sched_flush, [T.by_ref], :void, :blocking => true
|
|
619
|
+
|
|
620
|
+
# (Not documented)
|
|
621
|
+
#
|
|
622
|
+
# @method destroy(instance)
|
|
623
|
+
# @param [T] instance
|
|
624
|
+
# @return [nil]
|
|
625
|
+
# @scope class
|
|
626
|
+
#
|
|
627
|
+
attach_function :destroy, :lcb_destroy, [T.by_ref], :void, :blocking => true
|
|
628
|
+
|
|
629
|
+
# (Not documented)
|
|
630
|
+
#
|
|
631
|
+
# @method set_destroy_callback(t, destroy_callback)
|
|
632
|
+
# @param [T] t
|
|
633
|
+
# @param [Proc(callback_destroy_callback)] destroy_callback
|
|
634
|
+
# @return [Proc(callback_destroy_callback)]
|
|
635
|
+
# @scope class
|
|
636
|
+
#
|
|
637
|
+
attach_function :set_destroy_callback, :lcb_set_destroy_callback, [T.by_ref, :destroy_callback], :destroy_callback
|
|
638
|
+
|
|
639
|
+
# (Not documented)
|
|
640
|
+
#
|
|
641
|
+
# @method destroy_async(instance, arg)
|
|
642
|
+
# @param [T] instance
|
|
643
|
+
# @param [FFI::Pointer(*Void)] arg
|
|
644
|
+
# @return [nil]
|
|
645
|
+
# @scope class
|
|
646
|
+
#
|
|
647
|
+
attach_function :destroy_async, :lcb_destroy_async, [T.by_ref, :pointer], :void, :blocking => true
|
|
648
|
+
|
|
649
|
+
# (Not documented)
|
|
650
|
+
#
|
|
651
|
+
# @method get_node(instance, type, index)
|
|
652
|
+
# @param [T] instance
|
|
653
|
+
# @param [GETNODETYPE] type
|
|
654
|
+
# @param [Integer] index
|
|
655
|
+
# @return [String]
|
|
656
|
+
# @scope class
|
|
657
|
+
#
|
|
658
|
+
attach_function :get_node, :lcb_get_node, [T.by_ref, GETNODETYPE, :uint], :string, :blocking => true
|
|
659
|
+
|
|
660
|
+
# (Not documented)
|
|
661
|
+
#
|
|
662
|
+
# @method get_keynode(instance, key, nkey)
|
|
663
|
+
# @param [T] instance
|
|
664
|
+
# @param [FFI::Pointer(*Void)] key
|
|
665
|
+
# @param [Integer] nkey
|
|
666
|
+
# @return [String]
|
|
667
|
+
# @scope class
|
|
668
|
+
#
|
|
669
|
+
attach_function :get_keynode, :lcb_get_keynode, [T.by_ref, :pointer, :ulong], :string, :blocking => true
|
|
670
|
+
|
|
671
|
+
# (Not documented)
|
|
672
|
+
#
|
|
673
|
+
# @method get_num_replicas(instance)
|
|
674
|
+
# @param [T] instance
|
|
675
|
+
# @return [Integer]
|
|
676
|
+
# @scope class
|
|
677
|
+
#
|
|
678
|
+
attach_function :get_num_replicas, :lcb_get_num_replicas, [T.by_ref], :int
|
|
679
|
+
|
|
680
|
+
# (Not documented)
|
|
681
|
+
#
|
|
682
|
+
# @method get_num_nodes(instance)
|
|
683
|
+
# @param [T] instance
|
|
684
|
+
# @return [Integer]
|
|
685
|
+
# @scope class
|
|
686
|
+
#
|
|
687
|
+
attach_function :get_num_nodes, :lcb_get_num_nodes, [T.by_ref], :int
|
|
688
|
+
|
|
689
|
+
# (Not documented)
|
|
690
|
+
#
|
|
691
|
+
# @method get_server_list(instance)
|
|
692
|
+
# @param [T] instance
|
|
693
|
+
# @return [FFI::Pointer(**CharS)]
|
|
694
|
+
# @scope class
|
|
695
|
+
#
|
|
696
|
+
attach_function :get_server_list, :lcb_get_server_list, [T.by_ref], :pointer, :blocking => true
|
|
697
|
+
|
|
698
|
+
# (Not documented)
|
|
699
|
+
#
|
|
700
|
+
# @method dump(instance, fp, flags)
|
|
701
|
+
# @param [T] instance
|
|
702
|
+
# @param [FFI::Pointer(*FILE)] fp
|
|
703
|
+
# @param [Integer] flags
|
|
704
|
+
# @return [nil]
|
|
705
|
+
# @scope class
|
|
706
|
+
#
|
|
707
|
+
attach_function :dump, :lcb_dump, [T.by_ref, :pointer, :uint], :void, :blocking => true
|
|
708
|
+
|
|
709
|
+
# (Not documented)
|
|
710
|
+
#
|
|
711
|
+
# @method cntl(instance, mode, cmd, arg)
|
|
712
|
+
# @param [T] instance
|
|
713
|
+
# @param [Integer] mode
|
|
714
|
+
# @param [Integer] cmd
|
|
715
|
+
# @param [FFI::Pointer(*Void)] arg
|
|
716
|
+
# @return [ErrorT]
|
|
717
|
+
# @scope class
|
|
718
|
+
#
|
|
719
|
+
attach_function :cntl, :lcb_cntl, [T.by_ref, :int, :int, :pointer], ErrorT, :blocking => true
|
|
720
|
+
|
|
721
|
+
# (Not documented)
|
|
722
|
+
#
|
|
723
|
+
# @method cntl_string(instance, key, value)
|
|
724
|
+
# @param [T] instance
|
|
725
|
+
# @param [String] key
|
|
726
|
+
# @param [String] value
|
|
727
|
+
# @return [ErrorT]
|
|
728
|
+
# @scope class
|
|
729
|
+
#
|
|
730
|
+
attach_function :cntl_string, :lcb_cntl_string, [T.by_ref, :string, :string], ErrorT, :blocking => true
|
|
731
|
+
|
|
732
|
+
# (Not documented)
|
|
733
|
+
#
|
|
734
|
+
# @method cntl_setu32(instance, cmd, arg)
|
|
735
|
+
# @param [T] instance
|
|
736
|
+
# @param [Integer] cmd
|
|
737
|
+
# @param [Integer] arg
|
|
738
|
+
# @return [ErrorT]
|
|
739
|
+
# @scope class
|
|
740
|
+
#
|
|
741
|
+
attach_function :cntl_setu32, :lcb_cntl_setu32, [T.by_ref, :int, :uint], ErrorT, :blocking => true
|
|
742
|
+
|
|
743
|
+
# (Not documented)
|
|
744
|
+
#
|
|
745
|
+
# @method cntl_getu32(instance, cmd)
|
|
746
|
+
# @param [T] instance
|
|
747
|
+
# @param [Integer] cmd
|
|
748
|
+
# @return [Integer]
|
|
749
|
+
# @scope class
|
|
750
|
+
#
|
|
751
|
+
attach_function :cntl_getu32, :lcb_cntl_getu32, [T.by_ref, :int], :uint, :blocking => true
|
|
752
|
+
|
|
753
|
+
# (Not documented)
|
|
754
|
+
#
|
|
755
|
+
# @method cntl_exists(ctl)
|
|
756
|
+
# @param [Integer] ctl
|
|
757
|
+
# @return [Integer]
|
|
758
|
+
# @scope class
|
|
759
|
+
#
|
|
760
|
+
attach_function :cntl_exists, :lcb_cntl_exists, [:int], :int, :blocking => true
|
|
761
|
+
|
|
762
|
+
# (Not documented)
|
|
763
|
+
#
|
|
764
|
+
# @method enable_timings(instance)
|
|
765
|
+
# @param [T] instance
|
|
766
|
+
# @return [ErrorT]
|
|
767
|
+
# @scope class
|
|
768
|
+
#
|
|
769
|
+
attach_function :enable_timings, :lcb_enable_timings, [T.by_ref], ErrorT, :blocking => true
|
|
770
|
+
|
|
771
|
+
# (Not documented)
|
|
772
|
+
#
|
|
773
|
+
# @method disable_timings(instance)
|
|
774
|
+
# @param [T] instance
|
|
775
|
+
# @return [ErrorT]
|
|
776
|
+
# @scope class
|
|
777
|
+
#
|
|
778
|
+
attach_function :disable_timings, :lcb_disable_timings, [T.by_ref], ErrorT, :blocking => true
|
|
779
|
+
|
|
780
|
+
# (Not documented)
|
|
781
|
+
#
|
|
782
|
+
# @method get_timings(instance, cookie, callback)
|
|
783
|
+
# @param [T] instance
|
|
784
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
785
|
+
# @param [Proc(callback_timings_callback)] callback
|
|
786
|
+
# @return [ErrorT]
|
|
787
|
+
# @scope class
|
|
788
|
+
#
|
|
789
|
+
attach_function :get_timings, :lcb_get_timings, [T.by_ref, :pointer, :timings_callback], ErrorT, :blocking => true
|
|
790
|
+
|
|
791
|
+
# (Not documented)
|
|
792
|
+
#
|
|
793
|
+
# @method get_version(version)
|
|
794
|
+
# @param [FFI::Pointer(*U32)] version
|
|
795
|
+
# @return [String]
|
|
796
|
+
# @scope class
|
|
797
|
+
#
|
|
798
|
+
attach_function :get_version, :lcb_get_version, [:pointer], :string, :blocking => true
|
|
799
|
+
|
|
800
|
+
# (Not documented)
|
|
801
|
+
#
|
|
802
|
+
# @method supports_feature(n)
|
|
803
|
+
# @param [Integer] n
|
|
804
|
+
# @return [Integer]
|
|
805
|
+
# @scope class
|
|
806
|
+
#
|
|
807
|
+
attach_function :supports_feature, :lcb_supports_feature, [:int], :int, :blocking => true
|
|
808
|
+
|
|
809
|
+
# (Not documented)
|
|
810
|
+
#
|
|
811
|
+
# @method mem_alloc(size)
|
|
812
|
+
# @param [Integer] size
|
|
813
|
+
# @return [FFI::Pointer(*Void)]
|
|
814
|
+
# @scope class
|
|
815
|
+
#
|
|
816
|
+
attach_function :mem_alloc, :lcb_mem_alloc, [:ulong], :pointer, :blocking => true
|
|
817
|
+
|
|
818
|
+
# (Not documented)
|
|
819
|
+
#
|
|
820
|
+
# @method mem_free(ptr)
|
|
821
|
+
# @param [FFI::Pointer(*Void)] ptr
|
|
822
|
+
# @return [nil]
|
|
823
|
+
# @scope class
|
|
824
|
+
#
|
|
825
|
+
attach_function :mem_free, :lcb_mem_free, [:pointer], :void, :blocking => true
|
|
826
|
+
|
|
827
|
+
# (Not documented)
|
|
828
|
+
#
|
|
829
|
+
# @method run_loop(instance)
|
|
830
|
+
# @param [T] instance
|
|
831
|
+
# @return [nil]
|
|
832
|
+
# @scope class
|
|
833
|
+
#
|
|
834
|
+
attach_function :run_loop, :lcb_run_loop, [T.by_ref], :void, :blocking => true
|
|
835
|
+
|
|
836
|
+
# (Not documented)
|
|
837
|
+
#
|
|
838
|
+
# @method stop_loop(instance)
|
|
839
|
+
# @param [T] instance
|
|
840
|
+
# @return [nil]
|
|
841
|
+
# @scope class
|
|
842
|
+
#
|
|
843
|
+
attach_function :stop_loop, :lcb_stop_loop, [T.by_ref], :void, :blocking => true
|
|
844
|
+
|
|
845
|
+
# (Not documented)
|
|
846
|
+
#
|
|
847
|
+
# @method nstime()
|
|
848
|
+
# @return [Integer]
|
|
849
|
+
# @scope class
|
|
850
|
+
#
|
|
851
|
+
attach_function :nstime, :lcb_nstime, [], :ulong_long, :blocking => true
|
|
852
|
+
|
|
853
|
+
# (Not documented)
|
|
854
|
+
#
|
|
855
|
+
# @method histogram_create()
|
|
856
|
+
# @return [HISTOGRAM]
|
|
857
|
+
# @scope class
|
|
858
|
+
#
|
|
859
|
+
attach_function :histogram_create, :lcb_histogram_create, [], HISTOGRAM.by_ref, :blocking => true
|
|
860
|
+
|
|
861
|
+
# (Not documented)
|
|
862
|
+
#
|
|
863
|
+
# @method histogram_destroy(hg)
|
|
864
|
+
# @param [HISTOGRAM] hg
|
|
865
|
+
# @return [nil]
|
|
866
|
+
# @scope class
|
|
867
|
+
#
|
|
868
|
+
attach_function :histogram_destroy, :lcb_histogram_destroy, [HISTOGRAM.by_ref], :void, :blocking => true
|
|
869
|
+
|
|
870
|
+
# (Not documented)
|
|
871
|
+
#
|
|
872
|
+
# @method histogram_record(hg, duration)
|
|
873
|
+
# @param [HISTOGRAM] hg
|
|
874
|
+
# @param [Integer] duration
|
|
875
|
+
# @return [nil]
|
|
876
|
+
# @scope class
|
|
877
|
+
#
|
|
878
|
+
attach_function :histogram_record, :lcb_histogram_record, [HISTOGRAM.by_ref, :ulong_long], :void, :blocking => true
|
|
879
|
+
|
|
880
|
+
# (Not documented)
|
|
881
|
+
#
|
|
882
|
+
# @method histogram_read(hg, cookie, cb)
|
|
883
|
+
# @param [HISTOGRAM] hg
|
|
884
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
885
|
+
# @param [Proc(callback_histogram_callback)] cb
|
|
886
|
+
# @return [nil]
|
|
887
|
+
# @scope class
|
|
888
|
+
#
|
|
889
|
+
attach_function :histogram_read, :lcb_histogram_read, [HISTOGRAM.by_ref, :pointer, :histogram_callback], :void, :blocking => true
|
|
890
|
+
|
|
891
|
+
# (Not documented)
|
|
892
|
+
#
|
|
893
|
+
# @method histogram_print(hg, stream)
|
|
894
|
+
# @param [HISTOGRAM] hg
|
|
895
|
+
# @param [FFI::Pointer(*FILE)] stream
|
|
896
|
+
# @return [nil]
|
|
897
|
+
# @scope class
|
|
898
|
+
#
|
|
899
|
+
attach_function :histogram_print, :lcb_histogram_print, [HISTOGRAM.by_ref, :pointer], :void, :blocking => true
|
|
900
|
+
|
|
901
|
+
# (Not documented)
|
|
902
|
+
#
|
|
903
|
+
# @method subdoc3(instance, cookie, cmd)
|
|
904
|
+
# @param [T] instance
|
|
905
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
906
|
+
# @param [CMDSUBDOC] cmd
|
|
907
|
+
# @return [ErrorT]
|
|
908
|
+
# @scope class
|
|
909
|
+
#
|
|
910
|
+
attach_function :subdoc3, :lcb_subdoc3, [T.by_ref, :pointer, CMDSUBDOC.by_ref], ErrorT, :blocking => true
|
|
911
|
+
|
|
912
|
+
# (Not documented)
|
|
913
|
+
#
|
|
914
|
+
# @method sdresult_next(resp, out, iter)
|
|
915
|
+
# @param [RESPSUBDOC] resp
|
|
916
|
+
# @param [SDENTRY] out
|
|
917
|
+
# @param [FFI::Pointer(*SizeT)] iter
|
|
918
|
+
# @return [Integer]
|
|
919
|
+
# @scope class
|
|
920
|
+
#
|
|
921
|
+
attach_function :sdresult_next, :lcb_sdresult_next, [RESPSUBDOC.by_ref, SDENTRY.by_ref, :pointer], :int, :blocking => true
|
|
922
|
+
|
|
923
|
+
# (Not documented)
|
|
924
|
+
#
|
|
925
|
+
# @method view_query(instance, cookie, cmd)
|
|
926
|
+
# @param [T] instance
|
|
927
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
928
|
+
# @param [CMDVIEWQUERY] cmd
|
|
929
|
+
# @return [ErrorT]
|
|
930
|
+
# @scope class
|
|
931
|
+
#
|
|
932
|
+
attach_function :view_query, :lcb_view_query, [T.by_ref, :pointer, CMDVIEWQUERY.by_ref], ErrorT, :blocking => true
|
|
933
|
+
|
|
934
|
+
# (Not documented)
|
|
935
|
+
#
|
|
936
|
+
# @method view_query_initcmd(vq, design, view, options, callback)
|
|
937
|
+
# @param [CMDVIEWQUERY] vq
|
|
938
|
+
# @param [String] design
|
|
939
|
+
# @param [String] view
|
|
940
|
+
# @param [String] options
|
|
941
|
+
# @param [Proc(callback_viewquerycallback)] callback
|
|
942
|
+
# @return [nil]
|
|
943
|
+
# @scope class
|
|
944
|
+
#
|
|
945
|
+
attach_function :view_query_initcmd, :lcb_view_query_initcmd, [CMDVIEWQUERY.by_ref, :string, :string, :string, :viewquerycallback], :void
|
|
946
|
+
|
|
947
|
+
# (Not documented)
|
|
948
|
+
#
|
|
949
|
+
# @method view_cancel(instance, handle)
|
|
950
|
+
# @param [T] instance
|
|
951
|
+
# @param [VIEWHANDLE] handle
|
|
952
|
+
# @return [nil]
|
|
953
|
+
# @scope class
|
|
954
|
+
#
|
|
955
|
+
attach_function :view_cancel, :lcb_view_cancel, [T.by_ref, VIEWHANDLE.by_ref], :void, :blocking => true
|
|
956
|
+
|
|
957
|
+
# (Not documented)
|
|
958
|
+
#
|
|
959
|
+
# @method n1p_new()
|
|
960
|
+
# @return [N1QLPARAMS]
|
|
961
|
+
# @scope class
|
|
962
|
+
#
|
|
963
|
+
attach_function :n1p_new, :lcb_n1p_new, [], N1QLPARAMS.by_ref
|
|
964
|
+
|
|
965
|
+
# (Not documented)
|
|
966
|
+
#
|
|
967
|
+
# @method n1p_reset(params)
|
|
968
|
+
# @param [N1QLPARAMS] params
|
|
969
|
+
# @return [nil]
|
|
970
|
+
# @scope class
|
|
971
|
+
#
|
|
972
|
+
attach_function :n1p_reset, :lcb_n1p_reset, [N1QLPARAMS.by_ref], :void
|
|
973
|
+
|
|
974
|
+
# (Not documented)
|
|
975
|
+
#
|
|
976
|
+
# @method n1p_free(params)
|
|
977
|
+
# @param [N1QLPARAMS] params
|
|
978
|
+
# @return [nil]
|
|
979
|
+
# @scope class
|
|
980
|
+
#
|
|
981
|
+
attach_function :n1p_free, :lcb_n1p_free, [N1QLPARAMS.by_ref], :void
|
|
982
|
+
|
|
983
|
+
# (Not documented)
|
|
984
|
+
#
|
|
985
|
+
# @method n1p_setquery(params, qstr, nqstr, type)
|
|
986
|
+
# @param [N1QLPARAMS] params
|
|
987
|
+
# @param [String] qstr
|
|
988
|
+
# @param [Integer] nqstr
|
|
989
|
+
# @param [Integer] type
|
|
990
|
+
# @return [ErrorT]
|
|
991
|
+
# @scope class
|
|
992
|
+
#
|
|
993
|
+
attach_function :n1p_setquery, :lcb_n1p_setquery, [N1QLPARAMS.by_ref, :string, :ulong, :int], ErrorT
|
|
994
|
+
|
|
995
|
+
# (Not documented)
|
|
996
|
+
#
|
|
997
|
+
# @method n1p_namedparam(params, name, n_name, value, n_value)
|
|
998
|
+
# @param [N1QLPARAMS] params
|
|
999
|
+
# @param [String] name
|
|
1000
|
+
# @param [Integer] n_name
|
|
1001
|
+
# @param [String] value
|
|
1002
|
+
# @param [Integer] n_value
|
|
1003
|
+
# @return [ErrorT]
|
|
1004
|
+
# @scope class
|
|
1005
|
+
#
|
|
1006
|
+
attach_function :n1p_namedparam, :lcb_n1p_namedparam, [N1QLPARAMS.by_ref, :string, :ulong, :string, :ulong], ErrorT
|
|
1007
|
+
|
|
1008
|
+
# (Not documented)
|
|
1009
|
+
#
|
|
1010
|
+
# @method n1p_posparam(params, value, n_value)
|
|
1011
|
+
# @param [N1QLPARAMS] params
|
|
1012
|
+
# @param [String] value
|
|
1013
|
+
# @param [Integer] n_value
|
|
1014
|
+
# @return [ErrorT]
|
|
1015
|
+
# @scope class
|
|
1016
|
+
#
|
|
1017
|
+
attach_function :n1p_posparam, :lcb_n1p_posparam, [N1QLPARAMS.by_ref, :string, :ulong], ErrorT
|
|
1018
|
+
|
|
1019
|
+
# (Not documented)
|
|
1020
|
+
#
|
|
1021
|
+
# @method n1p_readonly(params, readonly)
|
|
1022
|
+
# @param [N1QLPARAMS] params
|
|
1023
|
+
# @param [Integer] readonly if non-zero, the query will be read-only
|
|
1024
|
+
# @return [ErrorT]
|
|
1025
|
+
# @scope class
|
|
1026
|
+
#
|
|
1027
|
+
attach_function :n1p_readonly, :lcb_n1p_readonly, [N1QLPARAMS.by_ref, :int], ErrorT
|
|
1028
|
+
|
|
1029
|
+
# (Not documented)
|
|
1030
|
+
#
|
|
1031
|
+
# @method n1p_readonly(params, readonly)
|
|
1032
|
+
# @param [N1QLPARAMS] params
|
|
1033
|
+
# @param [Integer] Sets maximum buffered channel size. Use 0 or a negative number to disable.
|
|
1034
|
+
# @return [ErrorT]
|
|
1035
|
+
# @scope class
|
|
1036
|
+
#
|
|
1037
|
+
attach_function :n1p_scancap, :lcb_n1p_scancap, [N1QLPARAMS.by_ref, :int], ErrorT
|
|
1038
|
+
|
|
1039
|
+
# (Not documented)
|
|
1040
|
+
#
|
|
1041
|
+
# @method n1p_readonly(params, readonly)
|
|
1042
|
+
# @param [N1QLPARAMS] params
|
|
1043
|
+
# @param [Integer] maximum number of items each execution operator can buffer between operators.
|
|
1044
|
+
# @return [ErrorT]
|
|
1045
|
+
# @scope class
|
|
1046
|
+
#
|
|
1047
|
+
attach_function :n1p_pipelinecap, :lcb_n1p_pipelinecap, [N1QLPARAMS.by_ref, :int], ErrorT
|
|
1048
|
+
|
|
1049
|
+
# (Not documented)
|
|
1050
|
+
#
|
|
1051
|
+
# @method n1p_readonly(params, readonly)
|
|
1052
|
+
# @param [N1QLPARAMS] params
|
|
1053
|
+
# @param [Integer] number of items execution operators can batch for fetch from the KV
|
|
1054
|
+
# @return [ErrorT]
|
|
1055
|
+
# @scope class
|
|
1056
|
+
#
|
|
1057
|
+
attach_function :n1p_pipelinebatch, :lcb_n1p_pipelinebatch, [N1QLPARAMS.by_ref, :int], ErrorT
|
|
1058
|
+
|
|
1059
|
+
# (Not documented)
|
|
1060
|
+
#
|
|
1061
|
+
# @method n1p_setopt(params, name, n_name, value, n_value)
|
|
1062
|
+
# @param [N1QLPARAMS] params
|
|
1063
|
+
# @param [String] name
|
|
1064
|
+
# @param [Integer] n_name
|
|
1065
|
+
# @param [String] value
|
|
1066
|
+
# @param [Integer] n_value
|
|
1067
|
+
# @return [ErrorT]
|
|
1068
|
+
# @scope class
|
|
1069
|
+
#
|
|
1070
|
+
attach_function :n1p_setopt, :lcb_n1p_setopt, [N1QLPARAMS.by_ref, :string, :ulong, :string, :ulong], ErrorT
|
|
1071
|
+
|
|
1072
|
+
# (Not documented)
|
|
1073
|
+
#
|
|
1074
|
+
# @method n1p_setconsistency(params, mode)
|
|
1075
|
+
# @param [N1QLPARAMS] params
|
|
1076
|
+
# @param [Integer] mode
|
|
1077
|
+
# @return [ErrorT]
|
|
1078
|
+
# @scope class
|
|
1079
|
+
#
|
|
1080
|
+
attach_function :n1p_setconsistency, :lcb_n1p_setconsistency, [N1QLPARAMS.by_ref, :int], ErrorT
|
|
1081
|
+
|
|
1082
|
+
# (Not documented)
|
|
1083
|
+
#
|
|
1084
|
+
# @method n1p_setconsistent_token(params, keyspace, st)
|
|
1085
|
+
# @param [N1QLPARAMS] params
|
|
1086
|
+
# @param [String] keyspace
|
|
1087
|
+
# @param [MUTATIONTOKEN] st
|
|
1088
|
+
# @return [ErrorT]
|
|
1089
|
+
# @scope class
|
|
1090
|
+
#
|
|
1091
|
+
attach_function :n1p_setconsistent_token, :lcb_n1p_setconsistent_token, [N1QLPARAMS.by_ref, :string, MUTATIONTOKEN.by_ref], ErrorT
|
|
1092
|
+
|
|
1093
|
+
# (Not documented)
|
|
1094
|
+
#
|
|
1095
|
+
# @method n1p_setconsistent_handle(params, instance)
|
|
1096
|
+
# @param [N1QLPARAMS] params
|
|
1097
|
+
# @param [T] instance
|
|
1098
|
+
# @return [ErrorT]
|
|
1099
|
+
# @scope class
|
|
1100
|
+
#
|
|
1101
|
+
attach_function :n1p_setconsistent_handle, :lcb_n1p_setconsistent_handle, [N1QLPARAMS.by_ref, T.by_ref], ErrorT
|
|
1102
|
+
|
|
1103
|
+
# (Not documented)
|
|
1104
|
+
#
|
|
1105
|
+
# @method n1p_encode(params, rc)
|
|
1106
|
+
# @param [N1QLPARAMS] params
|
|
1107
|
+
# @param [FFI::Pointer(*ErrorT)] rc
|
|
1108
|
+
# @return [String]
|
|
1109
|
+
# @scope class
|
|
1110
|
+
#
|
|
1111
|
+
attach_function :n1p_encode, :lcb_n1p_encode, [N1QLPARAMS.by_ref, :pointer], :string
|
|
1112
|
+
|
|
1113
|
+
# (Not documented)
|
|
1114
|
+
#
|
|
1115
|
+
# @method n1p_mkcmd(params, cmd)
|
|
1116
|
+
# @param [N1QLPARAMS] params
|
|
1117
|
+
# @param [CMDN1QL] cmd
|
|
1118
|
+
# @return [ErrorT]
|
|
1119
|
+
# @scope class
|
|
1120
|
+
#
|
|
1121
|
+
attach_function :n1p_mkcmd, :lcb_n1p_mkcmd, [N1QLPARAMS.by_ref, CMDN1QL.by_ref], ErrorT
|
|
1122
|
+
|
|
1123
|
+
# (Not documented)
|
|
1124
|
+
#
|
|
1125
|
+
# @method n1ql_query(instance, cookie, cmd)
|
|
1126
|
+
# @param [T] instance
|
|
1127
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
1128
|
+
# @param [CMDN1QL] cmd
|
|
1129
|
+
# @return [ErrorT]
|
|
1130
|
+
# @scope class
|
|
1131
|
+
#
|
|
1132
|
+
attach_function :n1ql_query, :lcb_n1ql_query, [T.by_ref, :pointer, CMDN1QL.by_ref], ErrorT, :blocking => true
|
|
1133
|
+
|
|
1134
|
+
# (Not documented)
|
|
1135
|
+
#
|
|
1136
|
+
# @method n1ql_cancel(instance, handle)
|
|
1137
|
+
# @param [T] instance
|
|
1138
|
+
# @param [N1QLHANDLE] handle
|
|
1139
|
+
# @return [nil]
|
|
1140
|
+
# @scope class
|
|
1141
|
+
#
|
|
1142
|
+
attach_function :n1ql_cancel, :lcb_n1ql_cancel, [T.by_ref, N1QLHANDLE.by_ref], :void, :blocking => true
|
|
1143
|
+
|
|
1144
|
+
# @volatile
|
|
1145
|
+
# Issue a full-text query. The callback (lcb_CMDFTS::callback) will be invoked
|
|
1146
|
+
# for each hit. It will then be invoked one last time with the result
|
|
1147
|
+
# metadata (including any facets) and the lcb_RESPFTS::rflags field having
|
|
1148
|
+
# the @ref LCB_RESP_F_FINAL bit set
|
|
1149
|
+
#
|
|
1150
|
+
# @param instance the instance
|
|
1151
|
+
# @param cookie opaque user cookie to be set in the response object
|
|
1152
|
+
# @param cmd command containing the query and callback
|
|
1153
|
+
#
|
|
1154
|
+
# @method fts_query(instance, cookie, cmd)
|
|
1155
|
+
# @param [T] instance
|
|
1156
|
+
# @param [FFI::Pointer(*Void)] cookie
|
|
1157
|
+
# @param [CMDFTS] cmd
|
|
1158
|
+
# @return [ErrorT]
|
|
1159
|
+
# @scope class
|
|
1160
|
+
#
|
|
1161
|
+
attach_function :fts_query, :lcb_fts_query, [T.by_ref, :pointer, CMDFTS.by_ref], ErrorT, :blocking => true
|
|
1162
|
+
|
|
1163
|
+
# @volatile
|
|
1164
|
+
# Cancel a full-text query in progress. The handle is usually obtained via the
|
|
1165
|
+
# lcb_CMDFTS::handle pointer.
|
|
1166
|
+
#
|
|
1167
|
+
# @method fts_cancel(t, ftshandle)
|
|
1168
|
+
# @param [T] t
|
|
1169
|
+
# @param [FTSHANDLE] ftshandle
|
|
1170
|
+
# @return [nil]
|
|
1171
|
+
# @scope class
|
|
1172
|
+
#
|
|
1173
|
+
attach_function :fts_cancel, :lcb_fts_cancel, [T.by_ref, FTSHANDLE.by_ref], :void, :blocking => true
|
|
1174
|
+
|
|
1175
|
+
end
|