
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@serverless-seoul/dynamorm
Advanced tools
Dynamorm is a native Typescript ORM for AWS DynamoDB
Written in Typescript from scratch, Fully support typing through template / decorator syntax
This is hard fork of dynamo-types, for active maintenance reason
npm install @serverless-seoul/dynamorm
import {
Config,
Decorator,
Query,
Table,
} from "@serverless-seoul/dynamorm";
@Decorator.Table({ name: `your_table_name_on_aws_dynamodb` })
export class BlogPost extends Table {
@Decorator.HashPrimaryKey("id")
public static readonly primaryKey: Query.HashPrimaryKey<BlogPost, number>;
@Decorator.Attribute({ name: "id" })
public id: string!;
@Decorator.Attribute({ name: "title" })
public title: string!;
@Decorator.Attribute({ name: "body" })
public body: Array<
| { type: "text", text: string }
| { type: "image", url: string, width: number, height: number }
> = [];
@Decorator.Attribute()
public viewCount: number = 0;
@Decorator.Attribute()
public author: {
name: string;
profileImageURL: string;
}
}
Dynamorm supports all dynamodb query / scan / update / delete interface, and...
... and more!
you need to run dynamodb locally in order to run unit tests
brew cask install docker
docker pull amazon/dynamodb-local
docker run --rm --name catch-dynamo -p 8000:8000 -d amazon/dynamodb-local
running test
DYNAMO_TYPES_ENDPOINT=http://127.0.0.1:8000 npm run test
FAQs
AWS DynamoDB ORM for Typescript
We found that @serverless-seoul/dynamorm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.