Socket
Book a DemoInstallSign in
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
Package was removed
Sorry, it seems this package was removed from the registry

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

DynamoDB Integration for the Shopware App Server SDK

1.0.1
unpublished
latest
npmnpm
Version published
Maintainers
0
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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.