You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.
Postgres errors and "notice" (informational) messages contain a key-value pair of "fields". Currently, we parse the keys, but we don't parse the values.
Each field has a particular semantic, so the value needs to be parsed according to the key.
The possible keys and their meaning is listed here
Postgres errors and "notice" (informational) messages contain a key-value pair of "fields". Currently, we parse the keys, but we don't parse the values.
Each field has a particular semantic, so the value needs to be parsed according to the key.
The possible keys and their meaning is listed here
Their corresponding representation is here
The task is to add parsing for some fields, specifically:
Severity
: to extract error vs. warning, etcCode
: to extract the "sql state", which is defined hereOnce a parser exists, tests should be added:
MessageDecoderSpec
: to test the proper decoding of the valuesSimpleQuerySpec
: test that various error codes produce the correct severity and sql state valuesThe text was updated successfully, but these errors were encountered: