lib/pq — pull request #223 by johto (2014-01-16 21:06:52+00:00)
Title: Add ErrorCode.Class()

Hi,

Here's a simple feature I could've used today. Example usage:

```
if pge.Code.Class().Name() == "constraint_violation" {
// do something
}
```

Any thoughts?