Search Shortcut cmd + k | ctrl + k
dynamodb

Adds a dynamodb_scan function that enables querying DynamoDB tables.

Maintainer(s): lukaswelsch

Installing and Loading

INSTALL dynamodb FROM community;
LOAD dynamodb;

Example

-- Create a DynamoDB secret based on the credential_chain
CREATE OR REPLACE SECRET dynamo_secret (
  TYPE dynamodb
);

-- Query a DynamoDB table called 'orders'. The table has a GSI on status, to which this query restricts results. 
FROM dynamodb_scan('orders')
WHERE status='ACTIVE';

-- Perform a SUM aggregation on a full table, without a GSI or PK. This requires setting allow_full_scan to true.
SELECT SUM(amount) 
FROM dynamodb_scan('orders', allow_full_scan=True) 
WHERE createdAt::timestamp > '2026-05-01 00:00:00'::TIMESTAMP;

Added Functions

function_name function_type description comment examples
dynamodb_scan table Scan a DynamoDB table directly NULL [FROM dynamodb_scan('orders')]

Overloaded Functions

This extension does not add any function overloads.

Added Types

This extension does not add any types.

Added Settings

This extension does not add any settings.