Skip to content

Commit 8598915

Browse files
committed
Update to libcouchbase 3.0.0-beta.1 APIs
Change-Id: I1ead46971ff49d17d18b0a0219ee75b8d4d6b95d Reviewed-on: http://review.couchbase.org/116304 Tested-by: Build Bot <[email protected]> Reviewed-by: Sergey Avseyev <[email protected]>
1 parent 2c4b7f3 commit 8598915

File tree

127 files changed

+6808
-10766
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+6808
-10766
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
*~
77
.deps
88
.libs/
9+
/.idea/
10+
/cmake-build-debug/
911
/*.out
1012
/Debug/
1113
/config.nice.bat

CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
cmake_minimum_required(VERSION 3.14)
2+
project(couchbase C)
3+
4+
set(CMAKE_C_STANDARD 99)
5+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb -O0 -Wall -std=gnu99 -fvisibility=hidden")
6+
7+
get_filename_component(PHP_SRC_PATH "~/code/php/php-src" ABSOLUTE)
8+
9+
include_directories(
10+
"${PHP_SRC_PATH}"
11+
"${PHP_SRC_PATH}/main"
12+
"${PHP_SRC_PATH}/Zend"
13+
"${PHP_SRC_PATH}/TSRM"
14+
"${PHP_SRC_PATH}/ext"
15+
"${PHP_SRC_PATH}/sapi"
16+
"${PROJECT_SOURCE_DIR}"
17+
)
18+
19+
file(GLOB SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/**/**/*.c ${PROJECT_SOURCE_DIR}/src/**/*.c ${PROJECT_SOURCE_DIR}/*.c)
20+
list(FILTER SOURCE_FILES EXCLUDE REGEX "crypto.c")
21+
22+
add_library(couchbase ${SOURCE_FILES})

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ into the bucket and then retrieving its contents:
7777

7878
```php
7979
$cluster = new \Couchbase\Cluster('localhost');
80-
$db = $cluster->openBucket('default');
80+
$db = $cluster->bucket('default');
8181
$db->upsert('testdoc', array('name'=>'Frank'));
8282
$res = $db->get('testdoc');
8383
var_dump($res->value);

0 commit comments

Comments
 (0)