Ping pings the instance.
(ctx context.Context)
| 78 | |
| 79 | // Ping pings the instance. |
| 80 | func (d *Driver) Ping(ctx context.Context) error { |
| 81 | q := d.client.Query("SELECT 1") |
| 82 | if _, err := q.Read(ctx); err != nil { |
| 83 | return err |
| 84 | } |
| 85 | return nil |
| 86 | } |
| 87 | |
| 88 | // GetDB gets the database. |
| 89 | func (*Driver) GetDB() *sql.DB { |
nothing calls this directly
no test coverage detected