Sha256: f5be7dec70c75d98c5c0c6b53c8381d3ce1cf2554b0c5e0b777be42a2cc67514

Contents?: true

Size: 1.34 KB

Versions: 4

Compression:

Stored size: 1.34 KB

Contents

module MTLibcouchbase::Ext
  # (Not documented)
  #
  # ## Fields:
  # :cmdflags ::
  #   (Integer)
  # :query ::
  #   (String) Query to be placed in the POST request. The library will not perform
  #   any conversions or validation on this string, so it is up to the user
  #   (or wrapping library) to ensure that the string is well formed.
  #
  #   If using the @ref lcb_N1QLPARAMS structure, the lcb_n1p_mkcmd() function
  #   will properly populate this field.
  #
  #   In general the string should either be JSON (in which case, the
  #   #content_type field should be `application/json`) or url-encoded
  #   (in which case the #content_type field should be
  #   `application/x-www-form-urlencoded`)
  # :nquery ::
  #   (Integer) Length of the query data
  # :host ::
  #   (String) Ignored since version 2.5.3
  # :content_type ::
  #   (String) Ignored since version 2.5.3
  # :callback ::
  #   (Proc(callback_n1qlcallback)) Callback to be invoked for each row
  # :handle ::
  #   (FFI::Pointer(*N1QLHANDLE)) Request handle. Will be set to the handle which may be passed to
  #   lcb_n1ql_cancel()
  class CMDN1QL < FFI::Struct
    layout :cmdflags, :uint,
           :query, :string,
           :nquery, :ulong,
           :host, :string,
           :content_type, :string,
           :callback, :n1qlcallback,
           :handle, :pointer
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mt-libcouchbase-1.4.03 lib/mt-libcouchbase/ext/mt-libcouchbase/cmdn1ql.rb
mt-libcouchbase-1.4.02 lib/mt-libcouchbase/ext/mt-libcouchbase/cmdn1ql.rb
mt-libcouchbase-1.4.01 lib/mt-libcouchbase/ext/mt-libcouchbase/cmdn1ql.rb
mt-libcouchbase-1.4.0 lib/mt-libcouchbase/ext/mt-libcouchbase/cmdn1ql.rb