scylladb / cql-stress

8 stars 4 forks source link

c-s: parser refactor #47

Closed muzarski closed 10 months ago

muzarski commented 10 months ago

Motivation

Before the changes, the parser would only validate the input, returning the validated string to the user (which still needs to be parsed to the according type).

Changes

This PR introduces the changes that address this issue. The major change is the introduction of Parsable trait described in the code. The SimpleParam is now generic over Parsable trait.

Most of the changes include adjusting the rest of the code to Parsable trait + some fixups.

muzarski commented 10 months ago

v2: