Tynamo

Create tynamo connection

Define the connection of dynamodb.

const tynamo: Tynamo = new Tynamo({
    region: "ap-northeast-2",
    endpoint: "http://localhost:8000"
});
circle-info

This design is derived from AWS.DynamoDB.ClientConfiguration.

Check herearrow-up-right for more information.

Create tynamo table

Define one table inside dynamodb. Manipulate tables or data through this object.

@DynamoEntity()
class Entity {
    ...
}

const tynamo: Tynamo = new Tynamo({...})
const entityTable: TynamoTable<Entity> = tynamo.getTableOf(Entity);

Last updated