jygan
July 4, 2013, 5:43am
1
Hello,
what’s the C API to access view. Has libcouchbase_make_couch_request been deprecated?
I found sample here
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2011 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Example program using libcouchbase_view_execute.
*
This file has been truncated. show original
but get compile error. cannot find type libcouchbase_couch_request_t, declaration of libcouchbase_make_couch_request
which header I should include in my cpp? I already included
#include <libcouchbase/couchbase.h>
#include <libcouchbase/types.h>
thanks in advance!
Hi,
Between 1.x and 2.x releases the C API has changed a lot and it is not backward compatible.
The function libcouchbase_make_couch_request was renamed to lcb_make_http_request.
So If you are using libcouchbase-2.x you should check these examples:
Damian
September 30, 2013, 3:59pm
3
Hi,
I can see that the C examples refer to pillowfight which does not longer exist.
Docloader
=============
We use this tool to upload a bunch of json documents into Couchbase Server.
Build
-------
After you clone the project from `git@github.com:couchbase/couchbase-examples.git`, run the following command:
config/autorun.sh
To build the package, run
make bdist
Run command
------------
cbdocloader OPTIONS DOCUMENTS
This file has been truncated. show original