Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 3.2.1 RC2 to master #3338

Merged
merged 50 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
097c396
CBL-5524 : Add all keys to the Privacy Manifest file (#3258)
pasin Mar 15, 2024
cb1f0f2
CBL-5541 : Update vector search test per changes in v1.8 (#3260)
pasin Mar 19, 2024
f12c86d
CouchbaseLite 3.2.0 Beta 1 package + readme (#3264)
velicuvlad Mar 27, 2024
9b6e07d
Set API Doc Version in generate release zip script (#3267)
pasin Mar 28, 2024
80fbdf2
Update LiteCore and VS version (#3269)
velicuvlad Apr 4, 2024
61cbaee
CBL-5365: Remove CBLErrors.h from Swift Public API (#3271)
velicuvlad Apr 18, 2024
fe22205
CBL-5508: Update Min macOS Support Version to 12.0 (#3272)
velicuvlad Apr 24, 2024
c574ff7
CBL-5693 : Fix missing exported symbols (#3281)
pasin May 3, 2024
b78033e
CBL-5222: MutableDocument should be usable before creating a database…
velicuvlad May 6, 2024
986803e
CBL-5613: Swift API docs for Scope using Obj-c reference (#3284)
velicuvlad May 15, 2024
ec83376
CBL-5710: Add note that the replicator cannot be started in the inBat…
velicuvlad May 15, 2024
87d307b
CBL-5514: Swift MutableDocument's collection is not set when a new do…
velicuvlad May 20, 2024
39f749d
Update LiteCore to 3.2.0-189 (#3288)
pasin Jun 3, 2024
12dfb61
CBL-5660 : Fix a released query context may be used in observer callb…
pasin Jun 3, 2024
f5063c6
CBL-5668: Get Code Coverage at least 80% (#3289)
velicuvlad Jun 5, 2024
e652471
CBL-3385: Allow null expression parameter for Function.count(expressi…
velicuvlad Jun 6, 2024
b1c5ce6
sometimes query becomes nil before is stopped (#3292)
velicuvlad Jun 7, 2024
1e9a1ce
CBL-5750 + CBL-5757 Lazy Index - ObjC (#3291)
velicuvlad Jun 14, 2024
a38b879
Change PR Validation (#3293)
velicuvlad Jun 14, 2024
affb1b3
CBL-5811 : Support Vector Dimension to 4096 and Vector in Base64 Stri…
pasin Jun 22, 2024
fbdac56
CBL-5803 : Implement Lazy Vector Index and Test for Swift (#3295)
pasin Jun 24, 2024
19d3dbf
CBL-5567 : Implement log replicator heiroglyphics (#3296)
pasin Jun 24, 2024
58ad341
CBL-5859 : Allow explicitly enable vector search (#3297)
pasin Jun 25, 2024
c22c095
CBL-5886: Add missing numProbes and correct min/maxTrainingSize defau…
velicuvlad Jul 1, 2024
6cff97b
CBL-5932: Update default constants and public symbols (#3299)
velicuvlad Jul 2, 2024
6b109de
CBL-5928 : CBLErrors.h is not included in the umbrella header (#3301)
pasin Jul 2, 2024
9cf63e0
CBL-5927 : Fix Duplicate CBLQueryIndex Interface Definition (#3300)
pasin Jul 2, 2024
3de150c
CBL-5893: Throw exception for everything if finish() was successfully…
velicuvlad Jul 8, 2024
9b939f3
CBL-5956: Update DistanceMetric (#3303)
velicuvlad Jul 9, 2024
670ba90
CBL-5690 : Update Distance Metric Enum and VS SQL in Tests (#3304)
pasin Jul 11, 2024
000d542
CBL-5990 : Fix _kCBLDefaultLogFileUsePlaintext symbol (#3305)
pasin Jul 11, 2024
42c172d
Update LiteCore 3.2.0-219 (#3306)
pasin Jul 12, 2024
a9390ca
Update LiteCore to 3.2.0-220 (#3307)
pasin Jul 22, 2024
554a301
CBL-6070: Implement Database Full-Sync Option (#3318)
velicuvlad Aug 5, 2024
49b5114
CBL-6144: Add testConcurrentCreateAndQuery to verify query's lock (#3…
velicuvlad Aug 9, 2024
f0872ec
CBL-6191 : Fix null URL for proxy CONNECT request (#3324)
pasin Aug 28, 2024
5c5a608
update to LiteCore 3.2.0-224 (#3325)
velicuvlad Aug 28, 2024
a49f7db
CouchbaseLite CE SPM 3.2.0 (#3326)
velicuvlad Aug 30, 2024
804a927
CBL-5180: Implement Array Index API (#3327)
velicuvlad Sep 23, 2024
e2c459c
CBL-5181: Array Index API tests and adjustments (#3330)
velicuvlad Oct 7, 2024
d05c46b
Proxy CONNECT request replace false with NULL (#3332)
velicuvlad Oct 14, 2024
e2ea8b2
fix ArrayIndexConfiguration constructor (#3334)
velicuvlad Oct 18, 2024
8331d3d
CBL-6307: Database MMap Configuration API and tests (#3333)
velicuvlad Oct 18, 2024
9334e45
CBL-6349: Implement Document's getRevisionHistory() for E2E Test Serv…
velicuvlad Oct 24, 2024
39b36fb
LiteCore 3.2.1-18 (#3336)
velicuvlad Oct 25, 2024
f8609d6
Update LiteCore to 3.2.1-19 (#3337)
velicuvlad Oct 30, 2024
e116c7c
Merge 3.2.1 RC 2
velicuvlad Nov 1, 2024
80342dc
LiteCore 3.2.1-19
velicuvlad Nov 1, 2024
4e8765a
Export symbol for mmap constant (#3341)
velicuvlad Nov 5, 2024
e9dfc05
ArrayIndexConfiguration explicit expressions arg on set (#3342)
velicuvlad Nov 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 42 additions & 2 deletions CouchbaseLite.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions Objective-C/CBLArrayIndexConfiguration.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
//
// CBLArrayIndexConfiguration.h
// CouchbaseLite
//
// Copyright (c) 2024 Couchbase, Inc All rights reserved.
//
// 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.
//

#import <Foundation/Foundation.h>
#import <CouchbaseLite/CBLIndexConfiguration.h>

NS_ASSUME_NONNULL_BEGIN

/**
Configuration for indexing property values within nested arrays in documents,
intended for use with the UNNEST query.
*/

@interface CBLArrayIndexConfiguration : CBLIndexConfiguration

/**
Path to the array, which can be nested.
*/

@property (nonatomic, readonly) NSString* path;

/**
The expressions representing the values within the array to be indexed.
*/

@property (nonatomic, readonly, nullable) NSArray<NSString*>* expressions;

/**
Initializes the configuration with paths to the nested array
and the optional expressions for the values within the arrays to be indexed.
@param path Path to the array, which can be nested to be indexed.
@note Use "[]" to represent a property that is an array of each nested
array level. For a single array or the last level array, the "[]" is optional.

For instance, use "contacts[].phones" to specify an array of phones within
each contact.
@param expressions An optional array of strings, where each string
represents an expression defining the values within the array
to be indexed. If the array specified by the path contains
scalar values, this parameter can be null.

@return The CBLArrayIndexConfiguration object.
*/

- (instancetype) initWithPath: (NSString*)path
expressions: (nullable NSArray<NSString*>*)expressions;

@end

NS_ASSUME_NONNULL_END
60 changes: 60 additions & 0 deletions Objective-C/CBLArrayIndexConfiguration.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
//
// CBLArrayIndexConfiguration.m
// CouchbaseLite
//
// Copyright (c) 2024 Couchbase, Inc All rights reserved.
//
// 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.
//

#import "CBLArrayIndexConfiguration.h"
#import "CBLIndexConfiguration+Internal.h"

@implementation CBLArrayIndexConfiguration

@synthesize path=_path, expressions=_expressions;

- (instancetype) initWithPath: (NSString*) path
expressions: (nullable NSArray<NSString*>*)expressions {

if(!expressions) {
self = [super initWithIndexType: kC4ArrayIndex
expressions: @[@""]];
} else if ([expressions count] == 0 || [expressions[0] length] == 0) {
[NSException raise: NSInvalidArgumentException format:
@"Empty expressions is not allowed, use nil instead"];
} else {
self = [super initWithIndexType: kC4ArrayIndex
expressions: expressions];
}

if (self) {
_path = path;
_expressions = expressions;
}

return self;
}

- (instancetype) initWithPath: (NSString*)path {
self = [self initWithPath: path expressions: nil];
return self;
}

- (C4IndexOptions) indexOptions {
C4IndexOptions c4options = { };
c4options.unnestPath = [_path UTF8String];
return c4options;
}

@end
Loading
Loading