tsynamo
tsynamo copied to clipboard
Type-friendly TypeScript DynamoDB query builder!
API support for doing DynamoDB operations in transaction. See: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb/command/TransactWriteItemsCommand/
This PR adds a type and module resolution for prs. It runs [arethetypeswrong](https://github.com/arethetypeswrong/arethetypeswrong.github.io/tree/main) -tool in CI, which reports if your types or module resolution fails when using esm or csj....
Example: ```ts const cmd = tsynamoClient .query("myTable") .keyCondition("userId", "=", "123") .index("myIndex") .compile(); ``` compiles to QueryCommand with `"IndexName": "myIndex"` The problem is, need to figure out how to täsä when...
Add support for specifying index in QueryQueryBuilder Mostly copy-pastaed the code for `limit`
Currently in tsynamo: ```ts const trx = tsynamoClient.createWriteTransaction(); trx.addItem({ Put: tsynamoClient .putItem("myTable") .item({ userId: "313", dataTimestamp: 1 }), }); trx.addItem({ Update: tsynamoClient .updateItem("myTable") .keys({ userId: "313", dataTimestamp: 2 }) .set("tags",...