pgroll/pkg/state
Andrew Farries 2429a6be6e
Ping after creating connection (#195)
Ping the database after establishing a connection for better error
messages.

Without this change, an error establishing a connection would be
prefixed with the message from the next failure.

**before**:
```
Error: unable to set pgroll.internal to true: dial tcp [::1]:7432: connect: connection refused
```

**after**:
```
Error: dial tcp [::1]:7432: connect: connection refused 
```

Fixes https://github.com/xataio/pgroll/issues/133
2023-11-02 10:48:07 +00:00
..
errors.go License check in github actions (#123) 2023-09-22 10:31:49 +00:00
state_test.go Set project name to pgroll (#124) 2023-09-22 12:50:31 +02:00
state.go Ping after creating connection (#195) 2023-11-02 10:48:07 +00:00