Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions src/Database/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,19 @@ abstract public function getDocument(string $collection, string $id, array $quer
*/
abstract public function createDocument(string $collection, Document $document): Document;

/**
* Create Documents in batches
*
* @param string $collection
* @param array<Document> $documents
* @param int $batchSize
*
* @return array<Document>
*
* @throws DatabaseException
*/
abstract public function createDocuments(string $collection, array $documents, int $batchSize): array;

/**
* Update Document
*
Expand All @@ -438,6 +451,19 @@ abstract public function createDocument(string $collection, Document $document):
*/
abstract public function updateDocument(string $collection, Document $document): Document;

/**
* Update Documents in batches
*
* @param string $collection
* @param array<Document> $documents
* @param int $batchSize
*
* @return array<Document>
*
* @throws DatabaseException
*/
abstract public function updateDocuments(string $collection, array $documents, int $batchSize): array;

/**
* Delete Document
*
Expand Down
Loading