Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopware-ag/app-server-sdk-dynamodb

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopware-ag/app-server-sdk-dynamodb

DynamoDB Integration for the Shopware App Server SDK

  • 1.0.1
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

DynamoDB storage for the App Server SDK

This package provides a DynamoDB storage implementation for the App Server SDK.

Installation

npm install @shopware-ag/app-server-sdk-dynamodb --save

Usage


import { DynamoDBRepository } from '@shopware-ag/app-server-sdk-dynamodb';

import { DynamoDBClient } from "@aws-sdk/client-dynamodb"

const client = new DynamoDBClient();

const repository = new DynamoDBRepository(client, '<table-name>');

// Pass the repository to the AppServerSdk using constructor of AppServer or configureAppserver with Hono

Table configuration

The table should have the following schema:

  • id (String): The primary key of the table

primeryIndex: hashKey: id

or as SST config:

const table = new sst.aws.Dynamo("shop", {
      fields: {
        id: "string"
      },
      primaryIndex: { hashKey: "id" }
});

FAQs

Package last updated on 30 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc