getmoto / py-partiql-parser

Python Parser for PartiQL
MIT License
7 stars 2 forks source link

Rework DynamoDB parser to expect DynamoDB's format #12

Closed bblommers closed 11 months ago

bblommers commented 11 months ago

The DynamoDBStatementParser now expects a document in the DynamoDB format: {"a1": {"S": "b1"}, "a2": {"S": "b2"}}

This should simplify the invocation, as we no longer need to transform this data to regular JSON on Moto's side. It also opens the door for support for WHERE-clauses such as attribute_type(\"FreeTier\", 'N')

Adds validation for tables that start with a number Adds support for queries that have a table name surrounded by quotes