Skip to content

Commit 0302d50

Browse files
authored
couchbase-lice-C 3.1.10 (#17)
New release linked to this ticket: [https://support.couchbase.com/hc/en-us/requests/63755](https://support.couchbase.com/hc/en-us/requests/63755) The replication could take a lot of time to start (up to 200 seconds) in 3.1.7.
1 parent 46c2d77 commit 0302d50

File tree

36 files changed

+66
-41
lines changed

36 files changed

+66
-41
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "couchbase_lite"
3-
version = "3.1.7-0"
3+
version = "3.1.10-0"
44
# The first three numbers correspond to the Couchbase Lite C release, the fourth number corresponds to the Doctolib release
55

66
[dependencies]

libcblite-3.0.3/.DS_Store

0 Bytes
Binary file not shown.

libcblite-3.0.3/include/cbl++/Database.hh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ namespace cbl {
159159

160160
/** Returns the names of all existing scopes in the database.
161161
The scope exists when there is at least one collection created under the scope.
162-
The default scope is exceptional in that it will always exists even there are no collections under it.
162+
@note The default scope will always exist, containing at least the default collection.
163163
@return The names of all existing scopes in the database, or throws if an error occurred. */
164164
fleece::MutableArray getScopeNames() const {
165165
CBLError error {};
@@ -207,17 +207,15 @@ namespace cbl {
207207
}
208208

209209
/** Delete an existing collection.
210+
@note The default collection cannot be deleted.
210211
@param collectionName The name of the collection.
211212
@param scopeName The name of the scope. */
212213
inline void deleteCollection(slice collectionName, slice scopeName =kCBLDefaultScopeName) {
213214
CBLError error {};
214215
check(CBLDatabase_DeleteCollection(ref(), collectionName, scopeName, &error), error);
215216
}
216217

217-
/** Returns the default collection.
218-
@note The default collection may not exist if it was deleted.
219-
Also, the default collection cannot be recreated after being deleted.
220-
@return A \ref Collection instance, or NULL if the default collection doesn't exist, or throws if an error occurred. */
218+
/** Returns the default collection. */
221219
inline Collection getDefaultCollection() const {
222220
CBLError error {};
223221
return Collection::adopt(CBLDatabase_DefaultCollection(ref(), &error), &error) ;

libcblite-3.0.3/include/cbl/CBLCollection.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ CBL_PUBLIC extern const FLString kCBLDefaultCollectionName;
7373

7474
/** Returns the names of all existing scopes in the database.
7575
The scope exists when there is at least one collection created under the scope.
76-
The default scope is exceptional in that it will always exists even there are no collections under it.
77-
@note You are responsible for releasing the returned array.
76+
@note The default scope will always exist, containing at least the default collection.
77+
@note You are responsible for releasing the returned array.
7878
@param db The database.
7979
@param outError On failure, the error will be written here.
8080
@return The names of all existing scopes in the database, or NULL if an error occurred. */
@@ -93,8 +93,8 @@ FLMutableArray _cbl_nullable CBLDatabase_CollectionNames(const CBLDatabase* db,
9393

9494
/** Returns an existing scope with the given name.
9595
The scope exists when there is at least one collection created under the scope.
96-
The default scope is exception in that it will always exists even there are no collections under it.
97-
@note You are responsible for releasing the returned scope.
96+
@note The default scope will always exist, containing at least the default collection.
97+
@note You are responsible for releasing the returned scope.
9898
@param db The database.
9999
@param scopeName The name of the scope.
100100
@param outError On failure, the error will be written here.
@@ -146,7 +146,6 @@ bool CBLDatabase_DeleteCollection(CBLDatabase* db,
146146
CBLError* _cbl_nullable outError) CBLAPI;
147147

148148
/** Returns the default scope.
149-
@note The default scope always exist even there are no collections under it.
150149
@note You are responsible for releasing the returned scope.
151150
@param db The database.
152151
@param outError On failure, the error will be written here.

libcblite-3.0.3/include/cbl/CBLDatabase.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ typedef struct {
5858
#ifdef COUCHBASE_ENTERPRISE
5959
CBLEncryptionKey encryptionKey; ///< The database's encryption key (if any)
6060
#endif
61+
/** As Couchbase Lite normally configures its databases, There is a very
62+
small (though non-zero) chance that a power failure at just the wrong
63+
time could cause the most recently committed transaction's changes to
64+
be lost. This would cause the database to appear as it did immediately
65+
before that transaction.
66+
67+
Setting this mode true ensures that an operating system crash or
68+
power failure will not cause the loss of any data. FULL synchronous
69+
is very safe but it is also dramatically slower. */
70+
bool fullSync;
6171
} CBLDatabaseConfiguration;
6272

6373
/** Returns the default database configuration. */

libcblite-3.0.3/include/cbl/CBL_Edition.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#define COUCHBASE_ENTERPRISE
2121
#endif
2222

23-
#define CBLITE_VERSION "3.1.7"
24-
#define CBLITE_VERSION_NUMBER 3001007
25-
#define CBLITE_BUILD_NUMBER 5
26-
#define CBLITE_SOURCE_ID "036da58+b89b125"
27-
#define CBLITE_BUILD_TIMESTAMP "2024-04-23T18:33:20Z"
23+
#define CBLITE_VERSION "3.1.10"
24+
#define CBLITE_VERSION_NUMBER 3001010
25+
#define CBLITE_BUILD_NUMBER 52760
26+
#define CBLITE_SOURCE_ID "036da58+f7cfc38"
27+
#define CBLITE_BUILD_TIMESTAMP "2024-09-30T21:11:23Z"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

libcblite-3.0.3/lib/ios/.DS_Store

0 Bytes
Binary file not shown.

libcblite-3.0.3/lib/ios/CouchbaseLite.xcframework/ios-arm64/CouchbaseLite.framework/Headers/CBLCollection.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ CBL_PUBLIC extern const FLString kCBLDefaultCollectionName;
7373

7474
/** Returns the names of all existing scopes in the database.
7575
The scope exists when there is at least one collection created under the scope.
76-
The default scope is exceptional in that it will always exists even there are no collections under it.
77-
@note You are responsible for releasing the returned array.
76+
@note The default scope will always exist, containing at least the default collection.
77+
@note You are responsible for releasing the returned array.
7878
@param db The database.
7979
@param outError On failure, the error will be written here.
8080
@return The names of all existing scopes in the database, or NULL if an error occurred. */
@@ -93,8 +93,8 @@ FLMutableArray _cbl_nullable CBLDatabase_CollectionNames(const CBLDatabase* db,
9393

9494
/** Returns an existing scope with the given name.
9595
The scope exists when there is at least one collection created under the scope.
96-
The default scope is exception in that it will always exists even there are no collections under it.
97-
@note You are responsible for releasing the returned scope.
96+
@note The default scope will always exist, containing at least the default collection.
97+
@note You are responsible for releasing the returned scope.
9898
@param db The database.
9999
@param scopeName The name of the scope.
100100
@param outError On failure, the error will be written here.
@@ -146,7 +146,6 @@ bool CBLDatabase_DeleteCollection(CBLDatabase* db,
146146
CBLError* _cbl_nullable outError) CBLAPI;
147147

148148
/** Returns the default scope.
149-
@note The default scope always exist even there are no collections under it.
150149
@note You are responsible for releasing the returned scope.
151150
@param db The database.
152151
@param outError On failure, the error will be written here.

libcblite-3.0.3/lib/ios/CouchbaseLite.xcframework/ios-arm64/CouchbaseLite.framework/Headers/CBLDatabase.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ typedef struct {
5858
#ifdef COUCHBASE_ENTERPRISE
5959
CBLEncryptionKey encryptionKey; ///< The database's encryption key (if any)
6060
#endif
61+
/** As Couchbase Lite normally configures its databases, There is a very
62+
small (though non-zero) chance that a power failure at just the wrong
63+
time could cause the most recently committed transaction's changes to
64+
be lost. This would cause the database to appear as it did immediately
65+
before that transaction.
66+
67+
Setting this mode true ensures that an operating system crash or
68+
power failure will not cause the loss of any data. FULL synchronous
69+
is very safe but it is also dramatically slower. */
70+
bool fullSync;
6171
} CBLDatabaseConfiguration;
6272

6373
/** Returns the default database configuration. */

libcblite-3.0.3/lib/ios/CouchbaseLite.xcframework/ios-arm64/CouchbaseLite.framework/Headers/CBL_Edition.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#define COUCHBASE_ENTERPRISE
2121
#endif
2222

23-
#define CBLITE_VERSION "3.1.7"
24-
#define CBLITE_VERSION_NUMBER 3001007
25-
#define CBLITE_BUILD_NUMBER 5
26-
#define CBLITE_SOURCE_ID "036da58+b89b125"
27-
#define CBLITE_BUILD_TIMESTAMP "2024-04-23T18:55:12Z"
23+
#define CBLITE_VERSION "3.1.10"
24+
#define CBLITE_VERSION_NUMBER 3001010
25+
#define CBLITE_BUILD_NUMBER 52760
26+
#define CBLITE_SOURCE_ID "036da58+f7cfc38"
27+
#define CBLITE_BUILD_TIMESTAMP "2024-09-30T21:15:22Z"

libcblite-3.0.3/lib/ios/CouchbaseLite.xcframework/ios-arm64/dSYMs/CouchbaseLite.framework.dSYM/Contents/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<key>CFBundleSignature</key>
1414
<string>????</string>
1515
<key>CFBundleShortVersionString</key>
16-
<string>3.1.7</string>
16+
<string>3.1.10</string>
1717
<key>CFBundleVersion</key>
18-
<string>5</string>
18+
<string>52760</string>
1919
</dict>
2020
</plist>

libcblite-3.0.3/lib/ios/CouchbaseLite.xcframework/ios-arm64_x86_64-simulator/CouchbaseLite.framework/Headers/CBLCollection.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ CBL_PUBLIC extern const FLString kCBLDefaultCollectionName;
7373

7474
/** Returns the names of all existing scopes in the database.
7575
The scope exists when there is at least one collection created under the scope.
76-
The default scope is exceptional in that it will always exists even there are no collections under it.
77-
@note You are responsible for releasing the returned array.
76+
@note The default scope will always exist, containing at least the default collection.
77+
@note You are responsible for releasing the returned array.
7878
@param db The database.
7979
@param outError On failure, the error will be written here.
8080
@return The names of all existing scopes in the database, or NULL if an error occurred. */
@@ -93,8 +93,8 @@ FLMutableArray _cbl_nullable CBLDatabase_CollectionNames(const CBLDatabase* db,
9393

9494
/** Returns an existing scope with the given name.
9595
The scope exists when there is at least one collection created under the scope.
96-
The default scope is exception in that it will always exists even there are no collections under it.
97-
@note You are responsible for releasing the returned scope.
96+
@note The default scope will always exist, containing at least the default collection.
97+
@note You are responsible for releasing the returned scope.
9898
@param db The database.
9999
@param scopeName The name of the scope.
100100
@param outError On failure, the error will be written here.
@@ -146,7 +146,6 @@ bool CBLDatabase_DeleteCollection(CBLDatabase* db,
146146
CBLError* _cbl_nullable outError) CBLAPI;
147147

148148
/** Returns the default scope.
149-
@note The default scope always exist even there are no collections under it.
150149
@note You are responsible for releasing the returned scope.
151150
@param db The database.
152151
@param outError On failure, the error will be written here.

0 commit comments

Comments
 (0)