Skip to content

Commit 61e72e9

Browse files
authored
Merge pull request #56 from alxsabo/v5.2
Sync with JVM client 5.2.4
2 parents 0fafc79 + dab44dd commit 61e72e9

File tree

417 files changed

+2358
-961
lines changed

Some content is hidden

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

417 files changed

+2358
-961
lines changed

.github/workflows/RavenClient.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313

14+
strategy:
15+
matrix:
16+
php-versions: [ "8.1", "8.2" ]
17+
serverVersion: [ "5.2", "5.4" ]
18+
fail-fast: false
19+
1420
env:
1521
RAVENDB_BUILD_TYPE: nightly
1622
RAVEN_License: ${{ secrets.RAVEN_LICENSE }}
@@ -21,12 +27,8 @@ jobs:
2127
RAVENDB_PHP_TEST_CA_PATH: "/usr/local/share/ca-certificates/ca.crt"
2228
RAVENDB_TEST_CLIENT_CERT_PATH: "./certs/java.pem"
2329

30+
SERVER_VERSION: ${{ matrix.serverVersion }}
2431

25-
strategy:
26-
matrix:
27-
php-versions: [ "8.1", "8.2" ]
28-
serverVersion: [ "5.2", "5.4" ]
29-
fail-fast: false
3032

3133
steps:
3234
- name: Check out repository code
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
namespace RavenDB\Documents\BulkInsert;
4+
5+
class BulkInsertOptions
6+
{
7+
private bool $useCompression = false;
8+
private bool $skipOverwriteIfUnchanged = false;
9+
10+
public function isUseCompression(): bool
11+
{
12+
return $this->useCompression;
13+
}
14+
15+
public function setUseCompression(bool $useCompression): void
16+
{
17+
$this->useCompression = $useCompression;
18+
}
19+
20+
/**
21+
* Determines whether we should skip overwriting a document when it is updated by exactly the same document (by comparing the content and the metadata)
22+
*
23+
* @return bool
24+
*/
25+
public function isSkipOverwriteIfUnchanged(): bool
26+
{
27+
return $this->skipOverwriteIfUnchanged;
28+
}
29+
30+
/**
31+
* Determines whether we should skip overwriting a document when it is updated by exactly the same document (by comparing the content and the metadata)
32+
*
33+
* @param bool $skipOverwriteIfUnchanged
34+
*/
35+
public function setSkipOverwriteIfUnchanged(bool $skipOverwriteIfUnchanged): void
36+
{
37+
$this->skipOverwriteIfUnchanged = $skipOverwriteIfUnchanged;
38+
}
39+
}

src/Documents/Commands/Batches/BatchPatchCommandData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Commands that patches multiple documents using same patch script
1616
* CAUTION: This command does not update session state after .saveChanges() call
1717
*/
18-
// !status: DONE
18+
1919
class BatchPatchCommandData implements CommandDataInterface
2020
{
2121
private StringSet $seenIds;

src/Documents/Commands/Batches/ClusterWideBatchCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
use RavenDB\Documents\Session\TransactionMode;
77
use RavenDB\Http\RaftCommandInterface;
88
use RavenDB\Utils\RaftIdGenerator;
9-
10-
// !status: DONE
119
class ClusterWideBatchCommand extends SingleNodeBatchCommand implements RaftCommandInterface
1210
{
1311
private ?bool $disableAtomicDocumentWrites = null;

src/Documents/Commands/Batches/CommandType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use RavenDB\Exceptions\IllegalArgumentException;
66

7-
// !status: DONE
87
class CommandType
98
{
109
const NONE = 'None';

src/Documents/Commands/Batches/CopyAttachmentCommandData.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use RavenDB\Exceptions\IllegalArgumentException;
88
use RavenDB\Utils\StringUtils;
99

10-
// !status: DONE
1110
class CopyAttachmentCommandData implements CommandDataInterface
1211
{
1312
private ?string $id = null;

src/Documents/Commands/Batches/DeleteCommandData.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use RavenDB\Documents\Session\InMemoryDocumentSessionOperations;
88
use RavenDB\Exceptions\IllegalArgumentException;
99

10-
// !status: DONE
1110
class DeleteCommandData implements CommandDataInterface
1211
{
1312
private string $id;

src/Documents/Commands/Batches/DeleteCompareExchangeCommandData.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use RavenDB\Documents\Conventions\DocumentConventions;
66
use RavenDB\Documents\Session\InMemoryDocumentSessionOperations;
77

8-
// !status: DONE
98
class DeleteCompareExchangeCommandData implements CommandDataInterface
109
{
1110
public ?int $index;

src/Documents/Commands/Batches/IdAndChangeVector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace RavenDB\Documents\Commands\Batches;
44

5-
// !status: DONE
65
class IdAndChangeVector
76
{
87
private ?string $id = null;

src/Documents/Commands/Batches/IdAndChangeVectorList.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use RavenDB\Type\TypedList;
66

7-
// !status: DONE
87
class IdAndChangeVectorList extends TypedList
98
{
109
public function __construct()

0 commit comments

Comments
 (0)