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

[WIP] Adds DynamoDB Adapter #333

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add string int and index limits for dynamodb
  • Loading branch information
ajwad-shaikh committed Oct 8, 2023
commit 14c27d0bc640db3127a79bcef7ae0e78a2cc037f
11 changes: 8 additions & 3 deletions src/Database/Adapter/DynamoDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -673,22 +673,26 @@ public function getSizeOfCollection(string $collection): int

/**
* Get max STRING limit
*
* DynamoDb string limits are governed by item size limit at 400 Kb - using MariaDB Limit for now.
*
* @return int
*/
public function getLimitForString(): int
{
return 0;
return 4294967295;
}

/**
* Get max INT limit
*
* The actual limit is 9.9999999999999999999999999999999999999E+125 but the PHP Limit is obviously much less.
*
* @return int
*/
public function getLimitForInt(): int
{
return 0;
return PHP_INT_MAX;
}

/**
Expand All @@ -705,11 +709,12 @@ public function getLimitForAttributes(): int
/**
* Get maximum index limit.
*
* DynamoDb limit for Global Secondary Indexes.
* @return int
*/
public function getLimitForIndexes(): int
{
return 0;
return 20;
}

/**
Expand Down