Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.04 KB

README.ja.md

File metadata and controls

30 lines (23 loc) · 1.04 KB

EN | JA

License Language Test


AWS Chains

AWS Chains は boto3 をメソッドチェーンで記述するためのラッパーです。

DynamoChain

使い方

  1. DynamoDB にクエリ
    result = (
        Query(table)
        .partition_key_exp(Key("ForumName").eq("Amazon S3"))
        .sort_key_exp(Key("Subject").gte("S3 Thread 2"))
        .filter_exp(Attr("LastPostedBy").eq("User A"))
        .filter_exp(Attr("Views").eq(1))
        .projection_exp("ForumName, Subject, Message")
        .projection_exp("LastPostedBy, LastPostedDateTime, Views")
        .desc()
        .run()
    )