Close - Close postgresql instance
()
| 193 | |
| 194 | // Close - Close postgresql instance |
| 195 | func (p *Postgres) Close() error { |
| 196 | p.ReadPool.Close() |
| 197 | p.WritePool.Close() |
| 198 | return nil |
| 199 | } |
| 200 | |
| 201 | // IsReady - Check if database is ready |
| 202 | func (p *Postgres) IsReady(ctx context.Context) (bool, error) { |